/* SuLi editorial layer. Loaded after the Meridian foundation. */

:root {
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --step--2: 0.72rem;
  --step--1: 0.88rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: 2.55rem;
  --step-4: 3.7rem;
  --step-5: 5rem;
  --step-6: 6.5rem;
  --step-7: 8.2rem;
  --radius: 5px;
}

*,
*::before,
*::after {
  letter-spacing: 0 !important;
}

body {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, calc((100vw - (2 * var(--pad))) / 12) 100%;
  background-position: 0 0, var(--pad) 0;
  background-attachment: fixed;
}

main,
.ftr {
  background: var(--bg);
}

.display {
  line-height: 0.96;
}

.display em {
  color: var(--accent);
}

.grain {
  opacity: 0.025;
}

.vignette {
  background: none;
}

.hero__orb,
.cta__glow {
  display: none !important;
}

.hdr {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.brand__mark {
  border-radius: 50%;
}

.brand__mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fg);
  z-index: 2;
}

.drawer__base {
  justify-content: space-between;
}

.hero {
  min-height: 88svh;
  padding-top: 7.25rem;
  padding-bottom: 2rem;
}

.hero__head {
  padding-top: 1rem;
}

.hero__title {
  max-width: 13ch;
}

.hero__title .indent {
  padding-left: 1.2em;
}

.hero__title .outline {
  -webkit-text-stroke: 1px var(--fg);
}

.hero__meta {
  margin-top: 3rem;
}

.hero__index {
  display: grid;
  gap: 0.5rem;
}

.hero__index span {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.65rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--step--2);
  text-transform: uppercase;
}

.hero__index strong {
  color: var(--fg);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
}

.hero__status {
  gap: 0.7rem;
}

.hero-photo {
  position: absolute;
  z-index: 1;
  top: 19%;
  right: var(--pad);
  width: 13.5rem;
  padding: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  transform: rotate(1.5deg);
  box-shadow: 0 1.5rem 3rem rgba(6, 6, 10, 0.12);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

[data-theme="dark"] .hero-photo img {
  filter: brightness(1.35) saturate(1.08);
}

.hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.55rem;
  color: var(--muted);
}

.marquee {
  background: var(--surface);
}

[data-theme="light"] .marquee {
  background: #e9e5dd;
}

.marquee--outline .marquee__item {
  color: var(--muted);
  -webkit-text-stroke: 0;
}

.intro-section {
  padding-top: 8rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.intro-copy {
  grid-column: 1 / span 5;
}

.intro-body {
  max-width: 49ch;
}

.intro-detail {
  align-self: flex-end;
  width: 58%;
  margin: 5.5rem 0 0 auto;
}

.intro-detail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.intro-detail figcaption,
.intro-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}

.intro-visual {
  grid-column: 7 / -1;
  position: relative;
  padding-right: 7%;
}

.intro-visual figure {
  position: relative;
  z-index: 1;
}

.intro-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.intro-visual__rule {
  position: absolute;
  top: 12%;
  right: 0;
  bottom: -9%;
  width: 34%;
  border-top: 12px solid var(--ember);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.section-aside {
  max-width: 28ch;
}

.work-strip-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.strip {
  padding-inline: var(--pad);
}

.strip__track {
  gap: 1.25rem;
  padding-bottom: 1rem;
}

.strip__card {
  width: 22.5rem;
  transition: transform 0.55s var(--e-out);
}

.strip__card:hover {
  transform: translateY(-8px);
}

.project-cover {
  --project-bg: #2fcba1;
  --project-ink: #071912;
  position: relative;
  padding: 1rem;
  isolation: isolate;
  background: var(--project-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.project-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.27), transparent 43%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(0, 0, 0, 0.08) 31px 32px);
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #111218;
  border: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transition: transform 0.8s var(--e-out);
}

.project-cover:hover img {
  transform: scale(1.025);
}

.project-cover__tint {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  height: 4px;
  background: var(--project-ink);
}

.project-cover__mark {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 6;
  max-width: calc(100% - 2.2rem);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  background: rgba(6, 6, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 0.65rem;
}

.project-cover--jade {
  --project-bg: #28c99b;
  --project-ink: #082b22;
}

.project-cover--amber {
  --project-bg: #f0b43d;
  --project-ink: #392506;
}

.project-cover--magenta {
  --project-bg: #d74d8a;
  --project-ink: #3c0b21;
}

.project-cover--coral {
  --project-bg: #f26a4f;
  --project-ink: #3b1008;
}

.project-cover--blue {
  --project-bg: #4b8ce8;
  --project-ink: #071a37;
}

.project-cover--violet {
  --project-bg: #7662d4;
  --project-ink: #190f42;
}

.fcard__body {
  padding-top: 1.1rem;
}

.fcard__title span,
.wcell__t span {
  color: var(--muted);
  font-style: italic;
}

.fcard__meta {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.note-peek {
  --peek: #2fcba1;
  width: 100%;
  height: 100%;
  background: var(--peek);
  color: #07100d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.note-peek::after {
  content: "";
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: absolute;
  right: -36%;
  bottom: -12%;
}

.note-peek span {
  font-family: var(--display);
  font-size: 5rem;
  line-height: 1;
}

.note-peek strong {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  max-width: 12ch;
}

.note-peek--magenta {
  --peek: #d74d8a;
}

.note-peek--coral {
  --peek: #f26a4f;
}

.note-peek--blue {
  --peek: #4b8ce8;
}

.lab-section {
  border-bottom: 1px solid var(--line);
}

.lab-section__head {
  display: grid;
  grid-template-columns: 1fr minmax(15rem, 26rem);
  gap: var(--gap);
  align-items: end;
  margin-bottom: 3rem;
}

.lab-console {
  display: grid;
  grid-template-columns: minmax(17rem, 0.82fr) minmax(0, 1.5fr);
  min-height: 34rem;
  background: #0d0e13;
  color: #f0ede7;
  border: 1px solid rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.lab-tabs {
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.lab-tab {
  width: 100%;
  min-height: 8.5rem;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.35rem 0.8rem;
  align-content: center;
  text-align: left;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #8f919a;
  transition: color 0.35s, background-color 0.35s, padding-left 0.45s var(--e-out);
}

.lab-tab:last-child {
  border-bottom: 0;
}

.lab-tab span,
.lab-tab i {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-style: normal;
  text-transform: uppercase;
}

.lab-tab strong {
  min-width: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.lab-tab i {
  grid-column: 2;
  color: #656770;
}

.lab-tab:hover,
.lab-tab.active {
  color: #fff;
  background: #171820;
  padding-left: 1.8rem;
}

.lab-tab.active span {
  color: #38d6a4;
}

.lab-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 2rem;
  position: relative;
}

.lab-panel__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  color: #7d7f88;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.lab-panel__head i {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.lab-panel__number {
  margin-top: 4rem;
  color: #38d6a4;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.lab-panel h3 {
  max-width: 12ch;
  margin-top: 0.8rem;
  font-family: var(--display);
  font-size: 3.35rem;
  font-weight: 300;
  line-height: 1;
  overflow-wrap: anywhere;
}

.lab-panel__body {
  max-width: 43ch;
  margin-top: 1.5rem;
  color: #a9abb2;
}

.lab-wave {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 6rem;
  margin-top: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.lab-wave i {
  flex: 1;
  height: var(--h, 48%);
  max-height: 85%;
  background: #38d6a4;
  opacity: 0.72;
  transform-origin: bottom;
  animation: labSignal 2.4s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}

@keyframes labSignal {
  0% { transform: scaleY(0.42); opacity: 0.38; }
  55% { transform: scaleY(1); opacity: 0.9; }
  100% { transform: scaleY(0.68); opacity: 0.58; }
}

.lab-panel__readout {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  color: #666872;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.photo-notes {
  padding-top: 8rem;
}

.photo-notes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.82fr);
  gap: var(--gap);
  align-items: start;
}

.photo-notes__grid figure:last-child {
  margin-top: 7rem;
}

.photo-notes__grid img {
  width: 100%;
  object-fit: cover;
}

.photo-notes__grid figure:first-child img {
  aspect-ratio: 16 / 10;
}

.photo-notes__grid figure:last-child img {
  aspect-ratio: 4 / 5;
}

.photo-notes__grid figcaption {
  margin-top: 0.7rem;
}

.cta {
  background: var(--surface);
}

.page-hero {
  min-height: 42rem;
  padding-top: 11rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
}

.page-hero__copy {
  grid-column: 1 / span 8;
}

.page-hero__aside {
  grid-column: 10 / -1;
}

.page-hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--step--2);
}

.work-page-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gap);
  align-items: end;
  padding-bottom: 2.5rem;
}

.wgrid {
  gap: 5rem var(--gap);
}

.wcell__head {
  align-items: flex-start;
}

.wcell__t {
  max-width: 17ch;
}

.wcell .project-cover {
  transition: transform 0.65s var(--e-out);
}

.wcell:hover .project-cover {
  transform: translateY(-5px);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-grid article {
  min-height: 18rem;
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.method-grid article:last-child {
  border-right: 0;
}

.method-grid span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--step--2);
}

.method-grid h3 {
  margin-top: 5rem;
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 300;
}

.method-grid p {
  margin-top: 1rem;
  color: var(--muted);
}

.writing-feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.writing-feature .fcard--wide {
  grid-column: 1 / span 8;
}

.writing-feature-copy {
  grid-column: 9 / -1;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
}

.writing-cover {
  position: relative;
  padding: 0.9rem;
  background: #f0b43d;
}

.writing-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04);
}

.writing-cover i {
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--gap);
  margin-bottom: 2.2rem;
}

.about-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.about-photo {
  grid-column: 1 / span 5;
  position: relative;
  padding-right: 2rem;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-photo::after {
  content: "";
  position: absolute;
  right: 0;
  top: 12%;
  width: 2rem;
  height: 46%;
  background: #4b8ce8;
}

.about-copy {
  grid-column: 7 / -1;
}

.about-copy .lede {
  max-width: 34ch;
}

.about-paragraphs {
  display: grid;
  gap: 1.25rem;
  max-width: 54ch;
  margin-top: 3rem;
  color: var(--muted);
}

.discipline-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.discipline-ledger article {
  min-height: 15rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.discipline-ledger article:last-child {
  border-right: 0;
}

.discipline-ledger span {
  font-family: var(--mono);
  font-size: var(--step--2);
  color: var(--accent);
}

.discipline-ledger h3 {
  margin-top: 4.5rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 300;
}

.about-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.about-projects a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.about-projects a:nth-child(odd) {
  padding-right: 1.5rem;
}

.about-projects a:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.about-projects span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--step--2);
}

.contact-stage {
  min-height: calc(100svh - 6rem);
  padding-top: 10rem;
  padding-bottom: 6rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
}

.contact-stage__copy {
  grid-column: 1 / span 7;
}

.contact-stage__photo {
  grid-column: 9 / -1;
  align-self: start;
  margin-top: 2rem;
}

.contact-stage__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.contact-stage__links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 3rem;
}

.contact-stage__links a,
.contact-stage__links div {
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  transition: background-color 0.4s, color 0.4s;
}

.contact-stage__links > :last-child {
  border-right: 0;
}

.contact-stage__links a:hover {
  background: var(--accent);
  color: #fff;
}

.contact-stage__links span {
  font-family: var(--mono);
  font-size: var(--step--2);
  color: var(--muted);
}

.contact-stage__links strong {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 300;
  overflow-wrap: anywhere;
}

.back-link {
  display: inline-flex;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
}

.back-link:hover {
  color: var(--accent);
}

.case-hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
}

.case-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
  margin-top: 4rem;
}

.case-hero__copy {
  grid-column: 1 / span 6;
}

.case-hero__copy h1 {
  font-size: 4.9rem;
  max-width: 100%;
}

.case-hero__subtitle {
  margin-top: 0.8rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 2rem;
  font-style: italic;
}

.case-actions {
  flex-wrap: wrap;
}

.case-hero__media {
  grid-column: 7 / -1;
  min-height: 31rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  position: relative;
  background: var(--accent);
}

.case-hero__media.r-clip {
  clip-path: none;
}

.case-hero__media img {
  width: 100%;
  max-height: 34rem;
  object-fit: contain;
  background: #111218;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.case-hero__media figcaption {
  position: absolute;
  right: 1.6rem;
  bottom: 1.6rem;
  padding: 0.45rem 0.65rem;
  color: #fff;
  background: rgba(6, 6, 10, 0.72);
}

.case-accent--jade {
  --accent: #28c99b;
}

.case-accent--amber {
  --accent: #f0b43d;
}

.case-accent--magenta {
  --accent: #d74d8a;
}

.case-accent--coral {
  --accent: #f26a4f;
}

.case-accent--blue {
  --accent: #4b8ce8;
}

.case-accent--violet {
  --accent: #7662d4;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.case-facts div {
  min-width: 0;
  padding: 1.5rem var(--pad);
  border-right: 1px solid var(--line);
}

.case-facts div:last-child {
  border-right: 0;
}

.case-facts span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--step--2);
}

.case-facts strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.7fr);
  gap: 5rem;
  align-items: start;
}

.case-signals {
  border-top: 1px solid var(--line);
}

.case-signals div {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.case-signals span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--step--2);
}

.case-signals strong {
  font-weight: 400;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.principle {
  min-height: 20rem;
  padding: 1.7rem;
  border-right: 1px solid var(--line);
}

.principle:last-child {
  border-right: 0;
}

.principle > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--step--2);
}

.principle h3 {
  margin-top: 5rem;
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 300;
}

.principle p {
  margin-top: 1.2rem;
  color: var(--muted);
}

.case-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.case-gallery__grid figure {
  padding: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.case-gallery__grid figure:nth-child(3n + 2) {
  margin-top: 4rem;
}

.case-gallery__wide {
  grid-column: 1 / -1;
}

.case-gallery__grid img {
  width: 100%;
  max-height: 48rem;
  object-fit: contain;
  background: #111218;
}

.case-gallery__grid figcaption {
  margin-top: 0.7rem;
}

.case-boundary {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--gap);
  padding-block: 2rem;
  margin-bottom: 7rem;
  border-block: 1px solid var(--line);
}

.case-boundary span {
  color: var(--accent);
}

.article-hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
}

.article-hero h1 {
  max-width: 12ch;
}

.article-hero .lede {
  max-width: 42ch;
}

.article-layout {
  padding-top: 3rem;
}

.prose {
  font-size: 1.08rem;
}

.article-aside__box {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.next-post__t {
  display: block;
  margin-top: 1.2rem;
}

.nf {
  padding: 8rem var(--pad) 4rem;
}

.nf__num {
  font-size: 16rem;
}

.nf__photo {
  position: absolute;
  width: 16rem;
  right: 8%;
  top: 15%;
  transform: rotate(4deg);
  z-index: -1;
  opacity: 0.72;
}

.nf__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 1180px) {
  :root {
    --step-5: 4.5rem;
    --step-6: 5.5rem;
    --step-7: 6.8rem;
  }

  .hero__meta > *:nth-child(1) {
    grid-column: 1 / span 5;
  }

  .hero__meta > *:nth-child(2) {
    grid-column: 7 / span 3;
  }

  .hero__meta > *:nth-child(3) {
    grid-column: 10 / -1;
  }
}

@media (max-width: 1100px) {
  .hero-photo {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --step-3: 2.25rem;
    --step-4: 3.1rem;
    --step-5: 3.8rem;
    --step-6: 4.7rem;
    --step-7: 5.4rem;
  }

  .hero {
    min-height: 86svh;
    padding-top: 7rem;
  }

  .hero-photo {
    display: none;
  }

  .hero__meta > *:nth-child(1) {
    grid-column: 1 / span 7;
  }

  .hero__meta > *:nth-child(2) {
    grid-column: 8 / -1;
  }

  .hero__meta > *:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: left;
  }

  .hero__index {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__index span {
    justify-content: flex-start;
  }

  .intro-copy {
    grid-column: 1 / span 6;
  }

  .intro-visual {
    grid-column: 7 / -1;
    padding-right: 0;
  }

  .intro-visual__rule {
    display: none;
  }

  .lab-console {
    grid-template-columns: 1fr;
  }

  .lab-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .lab-tab {
    min-height: 7rem;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
  }

  .lab-panel {
    min-height: 29rem;
  }

  .page-hero {
    min-height: 36rem;
  }

  .page-hero__copy {
    grid-column: 1 / span 8;
  }

  .page-hero__aside {
    grid-column: 9 / -1;
  }

  .writing-feature .fcard--wide,
  .writing-feature-copy {
    grid-column: 1 / -1;
  }

  .writing-feature-copy {
    padding-top: 1.5rem;
  }

  .case-hero__copy {
    grid-column: 1 / span 6;
  }

  .case-hero__copy h1 {
    font-size: 4.35rem;
  }

  .case-hero__media {
    grid-column: 7 / -1;
    min-height: 25rem;
  }

  .case-intro {
    gap: 3rem;
  }

  .discipline-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discipline-ledger article:nth-child(2) {
    border-right: 0;
  }

  .discipline-ledger article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .contact-stage__copy {
    grid-column: 1 / span 8;
  }

  .contact-stage__photo {
    grid-column: 9 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --step-1: 1.12rem;
    --step-2: 1.5rem;
    --step-3: 2rem;
    --step-4: 2.55rem;
    --step-5: 3rem;
    --step-6: 3.45rem;
    --step-7: 3.75rem;
  }

  body {
    background-image: none;
  }

  .hdr [data-clock] {
    display: none;
  }

  .brand__cn {
    display: none;
  }

  .hero {
    min-height: 82svh;
    padding-top: 6rem;
    padding-bottom: 1.5rem;
  }

  .hero__title .indent {
    padding-left: 0.35em;
  }

  .hero__title .outline {
    color: var(--fg);
    -webkit-text-stroke: 0;
  }

  .hero__meta {
    gap: 1.5rem;
  }

  .hero__meta > *:nth-child(1),
  .hero__meta > *:nth-child(2),
  .hero__meta > *:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero__meta > *:nth-child(2) {
    display: none;
  }

  .hero__index {
    grid-template-columns: 1fr;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .marquee__item {
    font-size: 2.5rem;
  }

  .intro-section,
  .photo-notes {
    padding-top: 5rem;
  }

  .intro-copy,
  .intro-visual {
    grid-column: 1 / -1;
  }

  .intro-visual {
    margin-top: 2rem;
  }

  .intro-detail {
    width: 48%;
    margin-top: 3rem;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat__n {
    font-size: 2rem;
  }

  .strip {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .strip::-webkit-scrollbar {
    display: none;
  }

  .strip__track {
    width: max-content;
    transform: none !important;
  }

  .strip__card {
    width: min(82vw, 20rem);
    scroll-snap-align: start;
  }

  .lab-section__head {
    grid-template-columns: 1fr;
  }

  .lab-tabs {
    grid-template-columns: 1fr;
  }

  .lab-tab {
    min-height: 5.8rem;
    border-right: 0;
  }

  .lab-panel {
    min-height: 31rem;
    padding: 1.3rem;
  }

  .lab-panel__number {
    margin-top: 2.5rem;
  }

  .lab-panel h3 {
    font-size: 2.45rem;
  }

  .lab-panel__readout {
    flex-direction: column;
    gap: 0.25rem;
  }

  .photo-notes__grid {
    grid-template-columns: 1fr;
  }

  .photo-notes__grid figure:last-child {
    width: 72%;
    margin: 2rem 0 0 auto;
  }

  .page-hero {
    min-height: 31rem;
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .page-hero__copy,
  .page-hero__aside {
    grid-column: 1 / -1;
  }

  .page-hero__aside {
    margin-top: 2rem;
  }

  .work-page-intro,
  .archive-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .filters {
    gap: 0.35rem;
  }

  .filters button {
    padding: 0.55rem 0.75rem;
  }

  .wgrid {
    gap: 3.5rem;
  }

  .method-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article,
  .principle {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-grid article:last-child,
  .principle:last-child {
    border-bottom: 0;
  }

  .method-grid h3,
  .principle h3 {
    margin-top: 2.5rem;
  }

  .about-photo,
  .about-copy {
    grid-column: 1 / -1;
  }

  .about-photo {
    width: 78%;
  }

  .about-copy {
    margin-top: 3rem;
  }

  .discipline-ledger {
    grid-template-columns: 1fr;
  }

  .discipline-ledger article {
    min-height: 11rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .discipline-ledger article:last-child {
    border-bottom: 0;
  }

  .discipline-ledger h3 {
    margin-top: 2.5rem;
  }

  .about-projects {
    grid-template-columns: 1fr;
  }

  .about-projects a:nth-child(odd),
  .about-projects a:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }

  .contact-stage {
    padding-top: 8rem;
  }

  .contact-stage__copy,
  .contact-stage__photo {
    grid-column: 1 / -1;
  }

  .contact-stage__photo {
    width: 58%;
    margin: 1rem 0 0 auto;
  }

  .contact-stage__links {
    grid-template-columns: 1fr;
  }

  .contact-stage__links a,
  .contact-stage__links div {
    min-height: 7rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-stage__links > :last-child {
    border-bottom: 0;
  }

  .case-hero {
    padding-top: 8rem;
  }

  .case-hero__grid {
    margin-top: 3rem;
  }

  .case-hero__copy,
  .case-hero__media {
    grid-column: 1 / -1;
  }

  .case-hero__copy h1 {
    font-size: 3.45rem;
  }

  .case-hero__media {
    min-height: 22rem;
    margin-top: 2rem;
    transform: none !important;
  }

  .case-facts {
    grid-template-columns: 1fr;
  }

  .case-facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-facts div:last-child {
    border-bottom: 0;
  }

  .case-intro {
    grid-template-columns: 1fr;
  }

  .case-gallery__grid {
    grid-template-columns: 1fr;
  }

  .case-gallery__wide {
    grid-column: auto;
  }

  .case-gallery__grid figure:nth-child(3n + 2) {
    margin-top: 0;
  }

  .case-boundary {
    grid-template-columns: 1fr;
    margin-bottom: 4rem;
  }

  .article-hero {
    padding-top: 8rem;
  }

  .article-hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .prose {
    font-size: 1rem;
  }

  .next-post__t {
    font-size: 3rem;
  }

  .nf__num {
    font-size: 9rem;
  }

  .nf__photo {
    width: 10rem;
    right: -2rem;
    top: 23%;
  }
}

/* Moments page: a familiar WeChat-like shell for life-only posts. */
body[data-page="moments"] {
  background: #eeeeec;
}

body[data-page="moments"] .hdr:not(.pinned) {
  color: #fff;
}

body[data-page="moments"] .hdr:not(.pinned) .brand__mark {
  border-color: #fff;
}

body[data-page="moments"] .hdr:not(.pinned) .brand__cn,
body[data-page="moments"] .hdr:not(.pinned) .nav a,
body[data-page="moments"] .hdr:not(.pinned) .dim {
  color: rgba(255, 255, 255, 0.76);
}

body[data-page="moments"] .hdr:not(.pinned) .nav a:hover,
body[data-page="moments"] .hdr:not(.pinned) .nav a[aria-current="page"] {
  color: #fff;
}

body[data-page="moments"] .hdr:not(.pinned) .icon-btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

body[data-page="moments"] .hdr:not(.pinned) .burger i {
  background: #fff;
}

body[data-page="moments"] .moments-shell {
  width: min(100%, 37.5rem);
  margin: 0 auto;
  overflow: hidden;
  color: #191919;
  background: #fff;
  box-shadow: 0 0 4rem rgba(24, 24, 22, 0.08);
}

body[data-page="moments"] .moments-cover {
  position: relative;
  height: 21.25rem;
  min-height: 0;
  isolation: isolate;
  color: #fff;
  background: #333;
}

body[data-page="moments"] .moments-cover__image,
body[data-page="moments"] .moments-cover__veil {
  position: absolute;
  inset: 0;
}

body[data-page="moments"] .moments-cover__image {
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 53% 50%;
}

body[data-page="moments"] .moments-cover__veil {
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.4), transparent 6rem);
}

body[data-page="moments"] .moments-profile {
  position: absolute;
  right: 1.5rem;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: right;
}

body[data-page="moments"] .moments-profile__name {
  padding-bottom: 0.25rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

body[data-page="moments"] .moments-profile__name h1 {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0;
}

body[data-page="moments"] .moments-profile__bio {
  display: flex;
  min-height: 3.75rem;
  justify-content: flex-end;
  padding: 1.5rem 1.5rem 0.75rem;
  color: #b2b2b2;
  font-size: 0.75rem;
  text-align: right;
}

body[data-page="moments"] .moments-avatar,
body[data-page="moments"] .moment-card__avatar {
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: #1d2220;
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-family: var(--display);
  font-weight: 500;
}

body[data-page="moments"] .moments-avatar {
  width: 4rem;
  height: 4rem;
  transform: translateY(42%);
  border-width: 0;
  border-radius: 5px;
  font-size: 1.8rem;
  box-shadow: none;
}

body[data-page="moments"] .moments-avatar img,
body[data-page="moments"] .moment-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="moments"] .moments-feed {
  padding: 0 0 3rem;
}

body[data-page="moments"] .moments-stream {
  position: relative;
}

body[data-page="moments"] .moments-month {
  display: none;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.5rem;
  border-top: 0;
  border-bottom: 1px solid #ededed;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview)::before {
  content: none;
}

body[data-page="moments"] .moment-card__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 5px;
  background: #303936;
  font-size: 1.16rem;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-card__main {
  display: block;
}

body[data-page="moments"] .moment-card__identity {
  display: flex;
  align-items: center;
  min-height: 1.35rem;
}

body[data-page="moments"] .moment-card__identity strong {
  color: #576b95;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-card__text {
  max-width: 36rem;
  margin: 0.25rem 0 0;
  color: #191919;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-card__text.is-collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body[data-page="moments"] .moment-card__copy-toggle {
  margin-top: 0.375rem;
  color: #b2b2b2;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
}

body[data-page="moments"] .moment-card__copy-toggle:hover {
  color: #7f7f7f;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media {
  width: min(100%, 21.25rem);
  margin-top: 0.5rem;
  gap: 4px;
  overflow: visible;
  background: transparent;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media.is-single {
  width: min(100%, var(--moment-single-desktop-width, 20rem));
  aspect-ratio: var(--moment-single-ratio, 4 / 3);
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media.is-double,
body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media.is-quad {
  width: min(100%, 18.75rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media.is-double {
  aspect-ratio: 2 / 1;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media.is-quad {
  aspect-ratio: 1;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media.is-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  aspect-ratio: 3 / 1;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media__item {
  aspect-ratio: 1;
  border: 0;
  border-radius: 1px;
  background: #f4f4f4;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media.is-single .moment-media__item {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media__index {
  display: none;
}

body[data-page="moments"] .moment-card__place {
  margin-top: 0.5rem;
  color: #576b95;
  font-size: 0.875rem;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-card__footer {
  min-height: 1.5rem;
  margin-top: 0.5rem;
}

body[data-page="moments"] .moment-card__time {
  display: flex;
  gap: 0.65rem;
  color: #a1a1a1;
  font-size: 0.8125rem;
}

body[data-page="moments"] .moment-card__action-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

body[data-page="moments"] .moment-card__more {
  display: grid;
  width: 1.75rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 4px;
  color: #576b95;
  background: #f7f7f7;
  font-size: 0;
  line-height: 1;
}

body[data-page="moments"] .moment-card__more span {
  display: flex;
  gap: 3px;
  transform: none;
}

body[data-page="moments"] .moment-card__more span::before,
body[data-page="moments"] .moment-card__more span::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #576b95;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-actions {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.375rem);
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0;
  overflow: hidden;
  border-radius: 7px;
  color: #fff;
  background: #4c4c4c;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.16);
  transform: translateY(-50%);
  transform-origin: right center;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-actions[hidden] {
  display: none !important;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-action {
  min-width: 0;
  min-height: 2.375rem;
  gap: 0.42rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.9375rem;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-action + .moment-action {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-action svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #fff;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-action:hover,
body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-action.is-liked {
  color: #fff;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-action.is-liked svg {
  color: #fa5151;
  fill: currentColor;
}

body[data-page="moments"] .moment-response {
  position: relative;
  margin-top: 0.6rem;
  background: #f7f7f7;
}

body[data-page="moments"] .moment-response::before {
  content: "";
  position: absolute;
  top: -0.42rem;
  left: 0.75rem;
  border-right: 0.45rem solid transparent;
  border-bottom: 0.45rem solid #f7f7f7;
  border-left: 0.45rem solid transparent;
}

body[data-page="moments"] .moment-response__likes {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
  padding: 0.45rem 0.65rem;
  color: #576b95;
  font-size: 0.875rem;
}

body[data-page="moments"] .moment-response__likes > span {
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body[data-page="moments"] .moment-response__likes svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
}

body[data-page="moments"] .moment-response__likes b {
  font-weight: 650;
}

body[data-page="moments"] .moment-comments {
  margin: 0;
  padding: 0.55rem 0.65rem 0.65rem;
  border-top: 1px solid #e5e5e5;
}

body[data-page="moments"] .moment-comment {
  grid-template-columns: max-content minmax(0, 1fr);
  color: #333;
  font-size: 0.9375rem;
}

body[data-page="moments"] .moment-comment strong {
  color: #576b95;
}

body[data-page="moments"] .moment-comments__form {
  grid-template-columns: 5.4rem minmax(0, 1fr) 2rem;
}

body[data-page="moments"] .moment-comments__form input {
  padding: 0.52rem 0.55rem;
  border: 1px solid #dedede;
  color: #222;
  background: #fff;
  font-size: 0.72rem;
}

body[data-page="moments"] .moment-comments__form input:focus {
  border-color: #576b95;
}

body[data-page="moments"] .moment-comments__form button {
  border-color: #576b95;
  color: #576b95;
}

body[data-page="moments"] .moments-feed__end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 3.5rem 2rem 1rem;
  color: #b5b5b5;
  font-size: 0.64rem;
}

body[data-page="moments"] .moments-feed__end i {
  width: 2rem;
  height: 1px;
  background: #dedede;
}

body[data-page="moments"] .ftr {
  margin-top: 0;
}

[data-theme="dark"] body[data-page="moments"] .moments-shell {
  color: #e8e8e8;
  background: #171817;
}

[data-theme="dark"] body[data-page="moments"] .moment-card:not(.moment-card--preview) {
  border-color: #2a2b2a;
}

[data-theme="dark"] body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-card__text {
  color: #e8e8e8;
}

[data-theme="dark"] body[data-page="moments"] .moments-feed__intro {
  border-color: #2a2b2a;
}

[data-theme="dark"] body[data-page="moments"] .moment-card__more,
[data-theme="dark"] body[data-page="moments"] .moment-response {
  background: #242524;
}

[data-theme="dark"] body[data-page="moments"] .moment-response::before {
  border-bottom-color: #242524;
}

[data-theme="dark"] body[data-page="moments"] .moment-comments {
  border-color: #353635;
}

[data-theme="dark"] body[data-page="moments"] .moment-comments__form input {
  border-color: #404140;
  color: #eee;
  background: #1b1c1b;
}

@media (max-width: 720px) {
  body[data-page="moments"] {
    background: #fff;
  }

  body[data-page="moments"] .moments-shell {
    box-shadow: none;
  }

  body[data-page="moments"] .moments-cover {
    height: 20.9375rem;
    min-height: 0;
    max-height: none;
  }

  body[data-page="moments"] .moments-profile {
    right: 1rem;
    bottom: 0;
    gap: 0.75rem;
  }

  body[data-page="moments"] .moments-profile__name {
    padding-bottom: 0.25rem;
  }

  body[data-page="moments"] .moments-avatar {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.55rem;
  }

  body[data-page="moments"] .moments-profile__bio {
    min-height: 3.5rem;
    padding: 1.5rem 1rem 0.5rem;
  }

  body[data-page="moments"] .moments-feed {
    padding-top: 0;
  }

  body[data-page="moments"] .moment-card:not(.moment-card--preview) {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem;
    margin: 0;
    padding: 1rem;
  }

  body[data-page="moments"] .moment-card__avatar {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.05rem;
  }

  body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-card__text {
    font-size: 0.9375rem;
    line-height: 1.4375rem;
  }

  body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media {
    width: min(72vw, 16.875rem);
  }

  body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media.is-double,
  body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media.is-quad {
    width: min(60vw, 15rem);
  }

  body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media.is-single {
    width: min(100%, var(--moment-single-mobile-width, 17.5rem));
  }

  body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-card__text.is-collapsed {
    -webkit-line-clamp: 9;
  }

  body[data-page="moments"] .moment-comments__form {
    grid-template-columns: 1fr 2rem;
  }

  body[data-page="moments"] .moment-comments__form input[name="name"] {
    grid-column: 1 / -1;
  }
}

/* Personal magazine iteration. */

body.home .hdr:not(.pinned) {
  color: #fff;
}

body.home .hdr:not(.pinned) .brand__mark {
  border-color: rgba(255, 255, 255, 0.9);
}

body.home .hdr:not(.pinned) .brand__mark::before,
body.home .hdr:not(.pinned) .burger i {
  background: #fff;
}

body.home .hdr:not(.pinned) .brand__cn,
body.home .hdr:not(.pinned) .nav a,
body.home .hdr:not(.pinned) [data-clock] {
  color: rgba(255, 255, 255, 0.74);
}

body.home .hdr:not(.pinned) .nav a:hover,
body.home .hdr:not(.pinned) .nav a[aria-current="page"] {
  color: #fff;
}

body.home .hdr:not(.pinned) .icon-btn,
body.home .hdr:not(.pinned) .burger {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
}

.hero-magazine {
  min-height: 88svh;
  padding: 7.5rem 0 2.25rem;
  color: #fff;
  background: #10131a;
  isolation: isolate;
}

.hero-magazine__image,
.hero-magazine__wash {
  position: absolute;
  inset: 0;
}

.hero-magazine__image {
  z-index: -2;
}

.hero-magazine__image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 54%;
}

.hero-magazine__wash {
  z-index: -1;
  background: rgba(5, 8, 14, 0.34);
}

.hero-magazine__inner {
  min-height: calc(88svh - 9.75rem);
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-magazine .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.hero-brand {
  margin-top: auto;
  font-size: var(--step-7);
  line-height: 0.82;
  text-shadow: 0 0.12em 0.55em rgba(0, 0, 0, 0.22);
}

.hero-brand .line {
  display: block;
  overflow: hidden;
}

.hero-brand .line > span {
  display: block;
}

.hero-brand__universe {
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.86);
}

.hero-magazine__bottom {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
  margin-top: 2.8rem;
}

.hero-magazine__lede {
  grid-column: 1 / span 5;
  max-width: 38ch;
  font-size: 1.08rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-magazine__links {
  grid-column: 7 / span 3;
  display: grid;
}

.hero-magazine__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  transition: padding-left 0.45s var(--e-out), border-color 0.35s;
}

.hero-magazine__links a:hover {
  padding-left: 0.55rem;
  border-color: #fff;
}

.hero-magazine__links i {
  width: 0.42rem;
  height: 0.42rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.hero-magazine__issue {
  grid-column: 10 / -1;
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
}

.home-marquee {
  border-bottom: 1px solid var(--line);
}

.intro-detail,
.intro-visual figure,
.photo-notes figure,
.page-hero__image,
.article-cover {
  clip-path: none !important;
}

.intro-detail img,
.intro-visual img,
.photo-notes__grid img,
.photo-notes__spread img,
.page-hero__image img,
.article-cover img {
  display: block;
  opacity: 1;
}

.intro-detail {
  transform: rotate(-1.2deg);
}

.intro-detail img {
  object-position: 46% 50%;
}

.intro-visual figure {
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.intro-visual img {
  object-position: 50% 58%;
}

.writing-stage {
  padding-block: var(--section);
  background: #e2e7e3;
  color: #151719;
  overflow: hidden;
}

[data-theme="dark"] .writing-stage {
  background: #15191a;
  color: #f0ede7;
}

.writing-stage .dim {
  color: color-mix(in srgb, currentColor 62%, transparent);
}

.note-wall-host {
  margin-top: clamp(3.5rem, 6vw, 6.5rem);
}

.note-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(3.5rem, 6vw, 6.5rem);
  align-items: start;
}

.note-wall__item {
  --tilt: 0deg;
  min-width: 0;
  position: relative;
}

.note-wall__item:nth-child(1) {
  grid-column: 1 / span 4;
  grid-row: 1;
  --tilt: -1.15deg;
}

.note-wall__item:nth-child(2) {
  grid-column: 5 / span 3;
  grid-row: 1;
  margin-top: 6.75rem;
  --tilt: 1.25deg;
}

.note-wall__item:nth-child(3) {
  grid-column: 9 / span 4;
  grid-row: 1;
  margin-top: 1.4rem;
  --tilt: -0.55deg;
}

.note-wall__item:nth-child(4) {
  grid-column: 2 / span 3;
  grid-row: 2;
  margin-top: 0.5rem;
  --tilt: 1.1deg;
}

.note-wall__item:nth-child(5) {
  grid-column: 5 / span 4;
  grid-row: 2;
  margin-top: 5.25rem;
  --tilt: -0.9deg;
}

.note-wall__item:nth-child(6) {
  grid-column: 10 / span 3;
  grid-row: 2;
  --tilt: 1.4deg;
}

.note-wall__item:nth-child(7) {
  grid-column: 1 / span 4;
  grid-row: 3;
  margin-top: 1.5rem;
  --tilt: -0.75deg;
}

.note-wall__item:nth-child(8) {
  grid-column: 7 / span 4;
  grid-row: 3;
  margin-top: 5.5rem;
  --tilt: 0.85deg;
}

.editorial-card {
  --story-accent: #2ca47f;
  --story-ink: #17191b;
  min-height: 34rem;
  display: flex;
  flex-direction: column;
  position: relative;
  color: var(--story-ink);
  background: #f1eee6;
  border: 1px solid rgba(17, 19, 22, 0.2);
  box-shadow: 0 1rem 2.4rem rgba(25, 31, 31, 0.12);
  overflow: hidden;
  transform: rotate(var(--tilt));
  transform-origin: center;
  transition: transform 0.55s var(--e-out), box-shadow 0.55s var(--e-out);
}

.editorial-card::before {
  content: "";
  height: 0.25rem;
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  background: var(--story-accent);
}

.editorial-card:hover {
  z-index: 3;
  transform: translateY(-0.7rem) rotate(0deg);
  box-shadow: 0 1.7rem 3.2rem rgba(10, 12, 16, 0.2);
}

.editorial-card--amber {
  --story-accent: #d6aa31;
}

.editorial-card--magenta {
  --story-accent: #cf5689;
}

.editorial-card--coral {
  --story-accent: #ee634b;
}

.editorial-card--blue {
  --story-accent: #4e7fc4;
}

.editorial-card--violet {
  --story-accent: #7569bb;
}

.editorial-card--journal {
  background: #e7e0ed;
}

[data-theme="dark"] .editorial-card {
  color: #17191b;
  background: #eeeae1;
  border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .editorial-card--journal {
  background: #e7e0ed;
}

.editorial-card__masthead {
  min-height: 3.35rem;
  padding: 0.75rem 1rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--story-ink) 22%, transparent);
}

.editorial-card__masthead strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.editorial-card__masthead span {
  font-family: var(--mono);
  font-size: 0.58rem;
  white-space: nowrap;
  letter-spacing: 0;
}

.editorial-card__media {
  height: 13.5rem;
  margin: 0.9rem 0.9rem 0;
  position: relative;
  overflow: hidden;
  background: #17181d;
  border: 1px solid rgba(17, 19, 22, 0.18);
}

.editorial-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--e-out);
}

.editorial-card:hover .editorial-card__media img {
  transform: scale(1.045);
}

.editorial-card__stamp {
  position: absolute;
  inset: auto 0 0;
  min-height: 2.15rem;
  padding: 0.55rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  background: rgba(8, 9, 13, 0.78);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.editorial-card__stamp span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-card__body {
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem 1.15rem;
}

.editorial-card__date {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.editorial-card__date,
.editorial-card__read {
  font-family: var(--mono);
  font-size: 0.63rem;
  text-transform: uppercase;
  opacity: 0.68;
  letter-spacing: 0;
}

.editorial-card__body h3 {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 350;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: pretty;
}

.editorial-card__body p {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editorial-card__read {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--story-ink) 24%, transparent);
}

.editorial-card__read i {
  width: 0.48rem;
  height: 0.48rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.editorial-card--photo {
  min-height: 0;
  background: #f4f1e8;
}

.editorial-card--photo .editorial-card__masthead {
  min-height: 3rem;
  padding-inline: 0.8rem;
  border-bottom: 0;
}

.editorial-card--photo .editorial-card__masthead strong {
  font-size: 1.15rem;
}

.editorial-card--photo .editorial-card__media {
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0 0.72rem;
}

.editorial-card--photo .editorial-card__stamp {
  display: none;
}

.editorial-card--photo .editorial-card__body {
  min-height: 10.5rem;
  padding: 0.75rem 0.8rem 0.9rem;
}

.editorial-card--photo .editorial-card__body h3 {
  margin-top: 0.75rem;
  font-size: 1.52rem;
  line-height: 1.12;
}

.editorial-card--photo .editorial-card__body p {
  display: none;
}

.editorial-card--photo .editorial-card__read {
  padding-top: 0.7rem;
}

.work-shelf-section {
  background: var(--bg);
}

.home-projects {
  margin-top: clamp(4.5rem, 8vw, 8rem);
}

.project-showcase {
  border-top: 1px solid var(--line-strong);
}

.project-feature {
  --feature-accent: #38d6a4;
  color: inherit;
  position: relative;
}

.project-feature--amber { --feature-accent: #f0b43d; }
.project-feature--magenta { --feature-accent: #d74d8a; }
.project-feature--coral { --feature-accent: #f26a4f; }
.project-feature--blue { --feature-accent: #4b8ce8; }
.project-feature--violet { --feature-accent: #7662d4; }

.project-feature--lead {
  min-height: 42rem;
  padding: clamp(3rem, 6vw, 6rem) 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.project-feature--lead .project-feature__copy {
  grid-column: 1 / span 4;
}

.project-feature--lead .project-feature__media {
  grid-column: 6 / -1;
}

.project-feature__copy {
  min-width: 0;
}

.project-feature__kicker {
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-feature__kicker::before {
  content: "";
  width: 3.2rem;
  height: 2px;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--feature-accent);
}

.project-feature__copy h3 {
  margin-top: 2rem;
  font-family: var(--display);
  font-size: 3.35rem;
  font-weight: 350;
  line-height: 0.98;
  letter-spacing: 0;
}

.project-feature__copy h3 em {
  margin-top: 0.65rem;
  display: block;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
}

.project-feature__copy > p {
  max-width: 38ch;
  margin-top: 1.7rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.project-feature__signals {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0;
}

.project-feature__signals span + span::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--feature-accent);
}

.project-feature__link {
  margin-top: 2.4rem;
  padding-bottom: 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-feature__link i {
  width: 0.55rem;
  height: 0.55rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.project-feature__media {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-top: 3px solid var(--feature-accent);
}

.project-feature__media img {
  width: 100%;
  aspect-ratio: 8 / 5;
  display: block;
  object-fit: cover;
  object-position: top center;
  background: #0b0d10;
  border: 1px solid var(--line-strong);
  transition: transform 0.8s var(--e-out);
}

.project-feature:hover .project-feature__media img {
  transform: scale(1.018);
}

.project-feature__media figcaption {
  padding-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-showcase__duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.project-feature--compact {
  min-width: 0;
  padding: clamp(3rem, 5vw, 5rem) 0;
  display: flex;
  flex-direction: column;
}

.project-feature--compact:first-child {
  padding-right: clamp(2rem, 4vw, 4rem);
  border-right: 1px solid var(--line);
}

.project-feature--compact:last-child {
  padding-left: clamp(2rem, 4vw, 4rem);
}

.project-feature--compact .project-feature__media {
  order: -1;
}

.project-feature--compact .project-feature__copy {
  margin-top: 2.5rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-feature--compact .project-feature__copy h3 {
  font-size: 2.7rem;
}

.project-feature--compact .project-feature__copy > p {
  max-width: 44ch;
}

.project-feature--compact .project-feature__link {
  margin-top: auto;
  padding-top: 2.4rem;
}

.project-catalog__head {
  padding: clamp(4rem, 7vw, 7rem) 0 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-catalog {
  border-top: 1px solid var(--line-strong);
}

.project-row {
  --row-accent: #38d6a4;
  min-height: 8.5rem;
  display: grid;
  grid-template-columns: 3.25rem minmax(12rem, 1fr) minmax(18rem, 1.55fr) minmax(8.5rem, 0.55fr) 2rem;
  gap: var(--gap);
  align-items: center;
  padding: 1.25rem 0;
  position: relative;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--e-out), background-color 0.4s;
}

.project-row::before {
  content: "";
  width: 3px;
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  background: var(--row-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--e-out);
}

.project-row:hover {
  padding-inline: 1.1rem;
  background: var(--surface);
}

.project-row:hover::before {
  transform: scaleY(1);
}

.project-row--amber { --row-accent: #f0b43d; }
.project-row--magenta { --row-accent: #d74d8a; }
.project-row--coral { --row-accent: #f26a4f; }
.project-row--blue { --row-accent: #4b8ce8; }
.project-row--violet { --row-accent: #7662d4; }

.project-row__index,
.project-row__meta small {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  color: var(--muted);
}

.project-row__name {
  display: grid;
  min-width: 0;
}

.project-row__name strong {
  font-family: var(--display);
  font-size: 1.72rem;
  font-weight: 350;
  line-height: 1.05;
}

.project-row__name em {
  margin-top: 0.25rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.95rem;
}

.project-row__hook {
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-row__meta {
  display: grid;
  justify-items: start;
  gap: 0.38rem;
}

.project-row__arrow {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.45s var(--e-spring), color 0.35s, border-color 0.35s;
}

.project-row:hover .project-row__arrow {
  color: var(--row-accent);
  border-color: var(--row-accent);
  transform: rotate(45deg);
}

.learning-preview {
  min-height: 36rem;
  position: relative;
  display: flex;
  align-items: stretch;
  color: #fff;
  background: #171412;
  overflow: hidden;
}

.learning-preview__image {
  position: absolute;
  inset: 0;
}

.learning-preview__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 10, 8, 0.52);
}

.learning-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.learning-preview__inner {
  width: 100%;
  min-height: 36rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
  padding-block: 5rem;
  position: relative;
  z-index: 1;
}

.learning-preview__inner > :first-child {
  grid-column: 1 / span 6;
}

.learning-preview__entry {
  grid-column: 8 / -1;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.48);
}

.learning-preview__entry > span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.66rem;
}

.learning-preview__entry h3 {
  margin-top: 1.2rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 350;
}

.learning-preview__entry p {
  max-width: 42ch;
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.76);
}

.learning-preview .eyebrow,
.learning-preview .arrow-link {
  color: #fff;
}

.lab-panel {
  overflow: hidden;
}

.lab-panel::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 0;
  height: 1px;
  background: #38d6a4;
  opacity: 0.22;
  pointer-events: none;
  animation: labScan 5.5s linear infinite;
}

@keyframes labScan {
  0% { transform: translateY(4rem); opacity: 0; }
  12% { opacity: 0.26; }
  88% { opacity: 0.12; }
  100% { transform: translateY(28rem); opacity: 0; }
}

.photo-notes__spread {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(20rem, 0.9fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}

.photo-notes__spread figure {
  min-width: 0;
}

.photo-notes__spread img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.photo-notes__spread figcaption {
  margin-top: 0.65rem;
  font-size: 0.62rem;
  letter-spacing: 0;
}

.photo-notes__lead img {
  aspect-ratio: 16 / 10;
}

.photo-notes__cluster {
  aspect-ratio: 1 / 1.02;
  margin-top: clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.4vw, 1.35rem);
}

.photo-notes__cluster figure {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.photo-notes__portrait {
  grid-row: 1 / -1;
}

.photo-notes__portrait img {
  object-position: 72% 50%;
}

.photo-notes__cluster figure:nth-child(2) img {
  object-position: 42% 50%;
}

.cta--personal {
  color: #fff;
  background: #e85f42;
}

.cta--personal .dim {
  color: rgba(255, 255, 255, 0.76);
}

.cta--personal .btn--solid {
  color: #17181d;
  background: #fff;
}

.page-hero--writing .page-hero__aside {
  align-self: end;
}

.page-hero__image {
  width: 74%;
  margin: 0 0 2rem auto;
}

.page-hero__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.page-hero__image figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4rem var(--gap);
}

.writing-card {
  --writing-accent: #38d6a4;
  grid-column: span 4;
  min-width: 0;
  border-top: 4px solid var(--writing-accent);
}

.writing-card:nth-child(3n + 2) {
  margin-top: 2.5rem;
}

.writing-card--amber { --writing-accent: #f0b43d; }
.writing-card--magenta { --writing-accent: #d74d8a; }
.writing-card--coral { --writing-accent: #f26a4f; }
.writing-card--blue { --writing-accent: #4b8ce8; }
.writing-card--violet { --writing-accent: #7662d4; }

.writing-card__media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.writing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--e-out);
}

.writing-card:hover .writing-card__media img {
  transform: scale(1.045);
}

.writing-card__kind {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.38rem 0.54rem;
  color: #fff;
  background: rgba(8, 9, 13, 0.7);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.writing-card__body {
  padding-top: 1.1rem;
}

.writing-card__body h3 {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 350;
  line-height: 1.08;
  transition: color 0.35s;
}

.writing-card:hover .writing-card__body h3 {
  color: var(--writing-accent);
}

.writing-card__body p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

[data-tags].hide {
  display: none !important;
}

.learning-log-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  gap: calc(var(--gap) * 2);
  align-items: start;
}

.learning-log-list {
  border-top: 1px solid var(--line-strong);
}

.learning-entry {
  min-height: 10rem;
  display: grid;
  grid-template-columns: 4.5rem 1fr 2rem;
  gap: var(--gap);
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.45s var(--e-out), background-color 0.35s;
}

.learning-entry:hover {
  padding-inline: 1rem;
  background: var(--surface);
}

.learning-entry__number {
  color: #7662d4;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.learning-entry__body {
  display: grid;
}

.learning-entry__body > strong {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 350;
}

.learning-entry__body > span:last-child {
  margin-top: 0.65rem;
  color: var(--muted);
}

.learning-entry__arrow {
  font-size: 1.1rem;
}

.guestbook {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.guestbook__art {
  height: 12rem;
  overflow: hidden;
}

.guestbook__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.guestbook__body {
  padding: 1.5rem;
}

.guestbook__form,
.comments__form {
  display: grid;
  gap: 1rem;
}

.guestbook__form label,
.comments__form label {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.guestbook__form input,
.guestbook__form textarea,
.comments__form input,
.comments__form textarea {
  width: 100%;
  padding: 0.82rem 0;
  color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.5;
  text-transform: none;
  resize: vertical;
}

.guestbook__form input:focus,
.guestbook__form textarea:focus,
.comments__form input:focus,
.comments__form textarea:focus {
  outline: 0;
  border-color: var(--accent);
}

.guestbook__form .btn,
.comments__form .btn {
  justify-self: start;
}

.guestbook__entries,
.comments__entries {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.local-entry {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.local-entry > div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
}

.local-entry strong {
  font-size: 0.85rem;
  font-weight: 600;
}

.local-entry span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.local-entry button {
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  line-height: 1;
  transition: color 0.3s, border-color 0.3s;
}

.local-entry button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.local-entry p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.local-entry--empty {
  color: var(--muted);
}

.guestbook__local,
.comments__local {
  margin-top: 1.2rem;
  color: var(--dimmer);
  font-size: 0.6rem;
}

.article-cover {
  padding-bottom: 4rem;
}

.article-cover img {
  width: 100%;
  height: 36rem;
  object-fit: cover;
}

.article-cover figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.comments__head {
  display: grid;
  grid-template-columns: 1fr minmax(15rem, 27rem);
  gap: var(--gap);
  align-items: end;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-strong);
}

.comments__grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: calc(var(--gap) * 2);
  align-items: start;
  padding-top: 2rem;
}

.comments__entries {
  margin-top: 0;
}

.ftr {
  overflow: hidden;
}

.ftr__word {
  display: block;
  max-width: 100%;
  color: transparent;
  font-size: var(--step-7);
  line-height: 0.9;
  -webkit-text-stroke: 1px var(--line-strong);
  transition: color 0.45s, -webkit-text-stroke-color 0.45s;
}

.ftr__word:hover {
  color: var(--fg);
  -webkit-text-stroke-color: var(--fg);
}

@media (max-width: 1100px) {
  .hero-magazine__lede {
    grid-column: 1 / span 5;
  }

  .hero-magazine__links {
    grid-column: 7 / span 3;
  }

  .project-feature--lead .project-feature__copy {
    grid-column: 1 / span 5;
  }

  .project-feature--lead .project-feature__media {
    grid-column: 6 / -1;
  }

  .project-feature__copy h3 {
    font-size: 3rem;
  }

  .project-feature--compact .project-feature__copy h3 {
    font-size: 2.35rem;
  }

  .project-row {
    grid-template-columns: 3rem minmax(11rem, 0.9fr) minmax(15rem, 1.25fr) 7.5rem 2rem;
  }

  .writing-card {
    grid-column: span 6;
  }

  .writing-card:nth-child(3n + 2) {
    margin-top: 0;
  }

  .writing-card:nth-child(even) {
    margin-top: 2rem;
  }

  .note-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 6vw, 4.5rem);
    row-gap: clamp(2.5rem, 5vw, 4rem);
  }

  .note-wall__item {
    grid-column: auto !important;
    grid-row: auto !important;
    margin-top: 0 !important;
  }

  .note-wall__item:nth-child(even) {
    margin-top: 4rem !important;
  }
}

@media (max-width: 900px) {
  .hero-magazine {
    min-height: 86svh;
  }

  .hero-magazine__inner {
    min-height: calc(86svh - 9.75rem);
  }

  .hero-magazine__lede {
    grid-column: 1 / span 6;
  }

  .hero-magazine__links {
    grid-column: 7 / -1;
  }

  .hero-magazine__issue {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    justify-items: start;
    margin-top: 1rem;
  }

  .hero-magazine__issue span:last-child {
    justify-self: end;
  }

  .project-feature--lead {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .project-feature--lead .project-feature__copy,
  .project-feature--lead .project-feature__media {
    grid-column: 1;
  }

  .project-feature--lead .project-feature__media {
    margin-top: 3rem;
  }

  .project-showcase__duo {
    grid-template-columns: 1fr;
  }

  .project-feature--compact:first-child {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-feature--compact:last-child {
    padding-left: 0;
  }

  .project-row {
    grid-template-columns: 2.5rem minmax(10rem, 0.9fr) minmax(0, 1.25fr) 2rem;
  }

  .project-row__meta {
    display: none;
  }

  .learning-preview__inner > :first-child {
    grid-column: 1 / span 5;
  }

  .learning-preview__entry {
    grid-column: 7 / -1;
  }

  .photo-notes__spread {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .photo-notes__cluster {
    width: min(100%, 40rem);
    margin-top: 0;
    justify-self: end;
  }

  .learning-log-layout {
    grid-template-columns: 1fr;
  }

  .guestbook {
    display: grid;
    grid-template-columns: minmax(13rem, 0.7fr) minmax(0, 1fr);
  }

  .guestbook__art {
    height: 100%;
    min-height: 30rem;
  }

  .article-cover img {
    height: 30rem;
  }
}

@media (max-width: 720px) {
  .hero-magazine {
    min-height: 84svh;
    padding-top: 6.5rem;
    padding-bottom: 1.4rem;
  }

  .hero-magazine__image img {
    object-position: 58% 50%;
  }

  .hero-magazine__wash {
    background: rgba(5, 8, 14, 0.42);
  }

  .hero-magazine__inner {
    min-height: calc(84svh - 7.9rem);
  }

  .hero-brand {
    font-size: 3.1rem;
    line-height: 0.88;
  }

  .hero-brand__universe {
    -webkit-text-stroke-width: 1px;
  }

  .hero-magazine__bottom {
    margin-top: 2rem;
  }

  .hero-magazine__lede,
  .hero-magazine__links,
  .hero-magazine__issue {
    grid-column: 1 / -1;
  }

  .hero-magazine__links {
    margin-top: 1rem;
  }

  .hero-magazine__issue {
    display: none;
  }

  .intro-detail {
    width: 55%;
  }

  .home-projects {
    margin-top: 4rem;
  }

  .project-feature--lead,
  .project-feature--compact {
    padding-block: 3.25rem;
  }

  .project-feature__copy h3,
  .project-feature--compact .project-feature__copy h3 {
    font-size: 2.4rem;
  }

  .project-feature__copy > p {
    font-size: 0.94rem;
  }

  .project-feature__media figcaption {
    flex-direction: column;
    gap: 0.25rem;
  }

  .project-catalog__head {
    padding-top: 4rem;
  }

  .writing-stage {
    padding-block: 5rem;
  }

  .note-wall-host {
    margin-top: 3.5rem;
  }

  .note-wall {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .note-wall__item {
    width: 92%;
    justify-self: start;
  }

  .note-wall__item:nth-child(even) {
    margin-top: 0.5rem !important;
    justify-self: end;
  }

  .note-wall__item:nth-child(3n) {
    width: 86%;
  }

  .editorial-card {
    min-height: 30.5rem;
  }

  .editorial-card__media {
    height: 11.75rem;
  }

  .editorial-card__body {
    min-height: 15.5rem;
  }

  .editorial-card__body h3 {
    font-size: 1.82rem;
  }

  .editorial-card--photo {
    min-height: 0;
  }

  .editorial-card--photo .editorial-card__media {
    height: auto;
  }

  .editorial-card--photo .editorial-card__body {
    min-height: 9.75rem;
  }

  .project-row {
    min-height: 10rem;
    grid-template-columns: 2.2rem minmax(0, 1fr) 2rem;
    align-items: start;
    gap: 0.65rem 0.85rem;
  }

  .project-row__index {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0.35rem;
  }

  .project-row__name {
    grid-column: 2;
    grid-row: 1;
  }

  .project-row__name strong {
    font-size: 1.48rem;
  }

  .project-row__hook {
    grid-column: 2 / -1;
    grid-row: 2;
    margin-top: 0.45rem;
  }

  .project-row__arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .learning-preview,
  .learning-preview__inner {
    min-height: 38rem;
  }

  .learning-preview__inner {
    align-content: end;
  }

  .learning-preview__inner > :first-child,
  .learning-preview__entry {
    grid-column: 1 / -1;
  }

  .learning-preview__entry {
    margin-top: 2.5rem;
  }

  .lab-panel::after {
    left: 1.3rem;
    right: 1.3rem;
  }

  .photo-notes__spread {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .photo-notes__cluster {
    width: 100%;
    margin-top: 0;
    gap: 0.75rem;
  }

  .photo-notes__spread figcaption {
    font-size: 0.56rem;
  }

  .page-hero__image {
    width: 48%;
    margin-top: 1.2rem;
  }

  .writing-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .writing-card {
    grid-column: auto;
  }

  .writing-card:nth-child(even) {
    margin-top: 0;
  }

  .guestbook {
    display: block;
  }

  .guestbook__art {
    height: 13rem;
    min-height: 0;
  }

  .article-cover {
    padding-bottom: 2rem;
  }

  .article-cover img {
    height: 21rem;
  }

  .comments__head,
  .comments__grid {
    grid-template-columns: 1fr;
  }

  .ftr__word {
    font-size: 3.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-card,
  .editorial-card__media img {
    transition: none;
  }

  .editorial-card:hover {
    transform: rotate(var(--tilt));
  }

  .lab-wave i,
  .lab-panel::after {
    animation: none;
  }
}

/* Moments: a lighter, more immediate layer for everyday notes. */

.moments-preview-section {
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
}

.moments-preview {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.moment-card {
  --moment-accent: #38d6a4;
  --moment-soft: rgba(56, 214, 164, 0.1);
  position: relative;
  min-width: 0;
  scroll-margin-top: 7rem;
}

.moment-card--jade { --moment-accent: #38d6a4; --moment-soft: rgba(56, 214, 164, 0.11); }
.moment-card--amber { --moment-accent: #f0b43d; --moment-soft: rgba(240, 180, 61, 0.13); }
.moment-card--coral { --moment-accent: #f26a4f; --moment-soft: rgba(242, 106, 79, 0.11); }
.moment-card--blue { --moment-accent: #4b8ce8; --moment-soft: rgba(75, 140, 232, 0.11); }
.moment-card--magenta { --moment-accent: #d74d8a; --moment-soft: rgba(215, 77, 138, 0.11); }
.moment-card--violet { --moment-accent: #7662d4; --moment-soft: rgba(118, 98, 212, 0.11); }

.moment-card--preview {
  grid-column: span 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--moment-accent);
  background: color-mix(in srgb, var(--surface) 88%, var(--moment-accent));
  transition: transform 0.6s var(--e-out), border-color 0.4s, background-color 0.4s;
}

.moment-card--preview:nth-child(2) {
  grid-column: span 7;
}

.moment-card--preview:nth-child(3) {
  grid-column: 3 / span 8;
}

.moment-card--preview:hover {
  transform: translateY(-7px);
  border-color: var(--moment-accent);
}

.moment-card--preview .moment-card__index {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: #111218;
  background: var(--moment-accent);
  font-size: 0.66rem;
}

.moment-card--preview .moment-card__main {
  display: block;
}

.moment-card--preview .moment-media {
  height: 19rem;
}

.moment-card--preview:nth-child(3) .moment-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(13rem, 0.88fr);
}

.moment-card--preview:nth-child(3) .moment-media {
  height: 100%;
  min-height: 16rem;
}

.moment-card--preview .moment-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.moment-card--preview .moment-card__text {
  min-height: 4.5rem;
  margin-top: 1rem;
  font-size: 1.35rem;
}

.moment-card--preview .moment-card__meta {
  padding-bottom: 0;
  border-bottom: 0;
}

.moment-card--preview .moment-card__signals {
  margin-top: 0.8rem;
}

.moment-card--preview .moment-card__footer {
  margin-top: 1.25rem;
}

.moment-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  min-width: 0;
}

.moment-card__index {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
  color: var(--moment-accent);
  font-size: var(--step--2);
  line-height: 1;
}

.moment-card:not(.moment-card--preview) {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0;
  padding: 2.8rem 0 3.8rem;
  border-top: 1px solid var(--line-strong);
}

.moment-card:not(.moment-card--preview)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.55rem;
  z-index: -1;
  width: 1px;
  background: var(--line);
}

.moment-card:not(.moment-card--preview) .moment-card__index {
  position: relative;
  z-index: 1;
  width: 2.15rem;
  height: 2.15rem;
  padding-top: 0;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--moment-accent);
  color: var(--moment-accent);
}

.moment-card__body {
  min-width: 0;
}

.moment-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  background: var(--surface-2);
}

.moment-media.is-single {
  aspect-ratio: 16 / 10;
}

.moment-media.is-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  aspect-ratio: 16 / 10;
}

.moment-media.is-triple {
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.75fr));
  aspect-ratio: 16 / 10;
}

.moment-media__item {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--surface-2);
  cursor: zoom-in;
}

.moment-media__item img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.9s var(--e-out), filter 0.5s;
}

.moment-media__item:hover img {
  transform: scale(1.055);
  filter: saturate(1.08);
}

.moment-media__index {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  padding: 0.27rem 0.38rem;
  color: #fff;
  background: rgba(10, 10, 14, 0.58);
  font-size: 0.6rem;
}

.moment-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--2);
  text-transform: uppercase;
}

.moment-card__meta span:last-child {
  color: var(--fg);
}

.moment-card__text {
  max-width: 34ch;
  margin: 1.45rem 0 0;
  color: var(--fg);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.24;
}

.moment-card__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--step--2);
}

.moment-card__signals span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.moment-card__signals span::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--moment-accent);
}

.moment-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.1rem;
}

.moment-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.moment-card__tags span {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
}

.moment-actions {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.moment-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 2.35rem;
  min-height: 2.25rem;
  justify-content: center;
  padding: 0.38rem 0.62rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s, transform 0.35s var(--e-spring);
}

.moment-action svg {
  width: 1rem;
  height: 1rem;
  color: var(--moment-accent);
}

.moment-action:hover,
.moment-action.is-liked {
  color: var(--fg);
  border-color: var(--moment-accent);
  background: var(--moment-soft);
}

.moment-action.is-liked svg {
  fill: var(--moment-accent);
  color: var(--moment-accent);
}

.moment-action:active {
  transform: scale(0.92);
}

.moment-comments {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.moment-comments__entries {
  display: grid;
  gap: 0.6rem;
}

.moment-comment {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.moment-comment strong {
  color: var(--fg);
  font-weight: 500;
}

.moment-comment > div {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.moment-comment button {
  display: none;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.55;
  transition: color 0.25s, opacity 0.25s;
}

.moment-comment button:hover {
  color: var(--moment-accent);
  opacity: 1;
}

.moment-comments__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.moment-comments__form {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) 2.2rem;
  gap: 0.45rem;
  margin-top: 1rem;
}

.moment-comments__form[hidden] {
  display: none;
}

.moment-comments__form .moment-comments__website {
  position: fixed;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.moment-comments__form input {
  min-width: 0;
  padding: 0.62rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--fg);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.78rem;
}

.moment-comments__form input:focus {
  border-color: var(--moment-accent);
  outline: 0;
}

.moment-comments__form button {
  display: grid;
  place-items: center;
  border: 1px solid var(--moment-accent);
  color: var(--moment-accent);
  background: transparent;
  font-family: var(--mono);
  transition: color 0.3s, background-color 0.3s;
}

.moment-comments__form button svg {
  width: 0.95rem;
  height: 0.95rem;
}

.moment-comments__form button:hover {
  color: #111218;
  background: var(--moment-accent);
}

.moments-hero {
  position: relative;
  min-height: 75svh;
  overflow: hidden;
  padding: 7.5rem 0 2.5rem;
  color: #17171c;
  background: #e7e2d8;
  isolation: isolate;
}

.moments-hero__image,
.moments-hero__wash {
  position: absolute;
  inset: 0;
}

.moments-hero__image {
  z-index: -2;
}

.moments-hero__image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 54%;
}

.moments-hero__wash {
  z-index: -1;
  background: rgba(244, 240, 232, 0.38);
}

.moments-hero__inner {
  min-height: calc(75svh - 10rem);
  display: flex;
  flex-direction: column;
}

.moments-hero__top,
.moments-hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.moments-hero .eyebrow {
  color: rgba(23, 23, 28, 0.72);
}

.moments-hero__top > .mono {
  color: rgba(23, 23, 28, 0.72);
  font-size: var(--step--2);
}

.moments-hero__top b {
  color: #17171c;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
}

.moments-hero__title {
  margin-top: auto;
  font-size: 6.6rem;
  line-height: 0.84;
}

.moments-hero__title .line {
  display: block;
  overflow: hidden;
}

.moments-hero__outline {
  color: transparent;
  -webkit-text-stroke: 1px #17171c;
}

.moments-hero__bottom {
  align-items: flex-end;
  margin-top: 2.8rem;
}

.moments-hero__bottom p {
  max-width: 32ch;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.5;
}

.moments-hero__meta {
  display: grid;
  gap: 0.45rem;
  text-align: right;
  color: rgba(23, 23, 28, 0.7);
  font-size: 0.68rem;
}

.moments-page {
  padding-top: clamp(5rem, 9vw, 9rem);
}

.moments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.33fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.moments-stream {
  position: relative;
  min-width: 0;
}

.moments-month {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 0 3.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em !important;
}

.moments-month:first-child {
  margin-top: 0;
}

.moments-rail {
  position: sticky;
  top: 7.4rem;
  display: grid;
  gap: 1.35rem;
  min-width: 0;
}

.moments-rail__figure {
  margin: 0;
}

.moments-rail__figure img {
  width: 100%;
  object-fit: cover;
}

.moments-rail__figure--large img {
  aspect-ratio: 4 / 5;
}

.moments-rail__figure--small {
  width: 72%;
  margin-left: auto;
}

.moments-rail__figure--small img {
  aspect-ratio: 1 / 1.12;
}

.moments-rail__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.55rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.moments-rail__note {
  max-width: 18ch;
  margin-top: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-strong);
}

.moments-rail__note p {
  margin: 0.8rem 0 0;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.moment-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 4rem var(--pad);
  background: rgba(7, 7, 11, 0.94);
}

.moment-lightbox[hidden] {
  display: none;
}

.moment-lightbox img {
  width: auto;
  max-width: min(92vw, 1100px);
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}

.moment-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: var(--pad);
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.5rem;
  transition: transform 0.35s var(--e-spring), border-color 0.3s;
}

.moment-lightbox__close:hover {
  transform: rotate(90deg);
  border-color: #fff;
}

.moment-lightbox__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.moment-lightbox p {
  position: absolute;
  right: var(--pad);
  bottom: 1.35rem;
  left: var(--pad);
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 0.65rem;
}

body.lightbox-open {
  overflow: hidden;
}

body[data-page="moments"] .hdr:not(.pinned) {
  color: #17171c;
}

body[data-page="moments"] .hdr:not(.pinned) .brand__mark {
  border-color: rgba(23, 23, 28, 0.86);
}

body[data-page="moments"] .hdr:not(.pinned) .brand__mark::before,
body[data-page="moments"] .hdr:not(.pinned) .burger i {
  background: #17171c;
}

body[data-page="moments"] .hdr:not(.pinned) .brand__cn,
body[data-page="moments"] .hdr:not(.pinned) .nav a,
body[data-page="moments"] .hdr:not(.pinned) [data-clock] {
  color: rgba(23, 23, 28, 0.7);
}

body[data-page="moments"] .hdr:not(.pinned) .nav a:hover,
body[data-page="moments"] .hdr:not(.pinned) .nav a[aria-current="page"] {
  color: #17171c;
}

body[data-page="moments"] .hdr:not(.pinned) .icon-btn,
body[data-page="moments"] .hdr:not(.pinned) .burger {
  color: #17171c;
  border-color: rgba(23, 23, 28, 0.32);
}

[data-theme="dark"] .moments-hero {
  color: #17171c;
}

[data-theme="dark"] .moments-hero__wash {
  background: rgba(244, 240, 232, 0.42);
}

@media (max-width: 980px) {
  .moments-layout {
    grid-template-columns: 1fr;
  }

  .moments-rail {
    position: static;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
  }

  .moments-rail__figure--small {
    width: 82%;
    margin-top: 3rem;
  }

  .moments-rail__note {
    grid-column: 2;
    margin-top: -1rem;
  }
}

@media (max-width: 720px) {
  .moments-hero {
    min-height: 78svh;
    padding-top: 6.5rem;
  }

  .moments-hero__inner {
    min-height: calc(78svh - 8.4rem);
  }

  .moments-hero__top,
  .moments-hero__bottom {
    display: block;
  }

  .moments-hero__top > .mono {
    display: block;
    margin-top: 1rem;
  }

  .moments-hero__title {
    margin-top: auto;
    font-size: 3.4rem;
  }

  .moments-hero__bottom {
    margin-top: 2rem;
  }

  .moments-hero__bottom p {
    max-width: 26ch;
    font-size: 1rem;
  }

  .moments-hero__meta {
    display: none;
  }

  .moments-preview {
    grid-template-columns: 1fr;
  }

  .moment-card--preview,
  .moment-card--preview:nth-child(2),
  .moment-card--preview:nth-child(3) {
    grid-column: auto;
  }

  .moment-card--preview:nth-child(3) .moment-card__main {
    display: block;
  }

  .moment-card--preview .moment-media,
  .moment-card--preview:nth-child(3) .moment-media {
    height: 15rem;
    min-height: 0;
  }

  .moment-card:not(.moment-card--preview) {
    grid-template-columns: 2.45rem minmax(0, 1fr);
    padding-block: 2.2rem 3rem;
  }

  .moment-card:not(.moment-card--preview)::before {
    left: 1.15rem;
  }

  .moment-card:not(.moment-card--preview) .moment-card__index {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.62rem;
  }

  .moment-card__main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .moment-card:not(.moment-card--preview) .moment-media {
    order: 0;
  }

  .moment-card:not(.moment-card--preview) .moment-card__body {
    order: 1;
  }

  .moment-media.is-triple {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.75fr));
  }

  .moment-card__text {
    margin-top: 1.1rem;
    font-size: 1.62rem;
  }

  .moment-card__footer {
    align-items: flex-end;
    margin-top: 1.6rem;
  }

  .moment-card__tags {
    max-width: 58%;
  }

  .moment-comments__form {
    grid-template-columns: 1fr 2.2rem;
  }

  .moment-comments__form input:first-child {
    grid-column: 1 / -1;
  }

  .moments-month {
    margin-left: 2.45rem;
  }

  .moments-rail {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 0.8rem;
  }

  .moments-rail__figure--large img {
    aspect-ratio: 1 / 1.2;
  }

  .moments-rail__figure--small {
    width: 100%;
    margin-top: 2rem;
  }

  .moments-rail__note {
    grid-column: 1 / -1;
    max-width: 25ch;
    margin-top: 0.5rem;
  }

  .moment-lightbox {
    padding-inline: 1rem;
  }

  .moment-lightbox img {
    max-width: 94vw;
    max-height: 72vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moment-card,
  .moment-media__item img,
  .moment-action,
  .moment-lightbox__close {
    transition: none;
  }
}

/* ---------- 09 · Wall v2 / flowing notes ---------- */

.wall-stage {
  position: relative;
  margin-top: clamp(-6rem, -6vw, -3.5rem);
  padding: 0 0 clamp(6rem, 9vw, 10rem);
  overflow: clip;
  background: var(--bg);
  border-top: 0;
}

.studio-mode-active .moment-comment button {
  display: grid;
}

[data-theme="dark"] .wall-stage { background: var(--bg); }

.wall-stage__bridge {
  min-height: 11rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--gap);
  pointer-events: none;
}

.wall-stage__bridge figure {
  grid-column: 7 / span 2;
  width: min(100%, 9rem);
  justify-self: end;
  transform: rotate(-2deg);
  padding: 0.35rem;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(20, 18, 12, 0.12);
}

.wall-stage__bridge img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.wall-stage__line {
  grid-column: 9 / span 2;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
}

.wall-stage__bridge p {
  grid-column: 11 / -1;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
}

.wall-stage__body { padding-top: clamp(2.5rem, 5vw, 5.5rem); }

.wall-stage__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: var(--gap);
}

.wall-stage__intro > :first-child { grid-column: 1 / span 7; }
.wall-stage__intro > :last-child { grid-column: 9 / -1; }

.wall-preview {
  min-height: 25rem;
  margin-top: clamp(3.5rem, 6vw, 6.5rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--gap);
}

.wall-preview .wall-note:nth-child(1) { grid-column: 1 / span 3; margin-top: 2.5rem; }
.wall-preview .wall-note:nth-child(2) { grid-column: 4 / span 3; margin-top: 7.5rem; }
.wall-preview .wall-note:nth-child(3) { grid-column: 7 / span 3; }
.wall-preview .wall-note:nth-child(4) { grid-column: 10 / span 3; margin-top: 5rem; }

.wall-stage__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.wall-stage__foot .mono { font-size: 0.68rem; }

.wall-page { min-height: 100vh; }
body[data-page="wall"] .wall-page { padding-top: 0; }
.wall-workspace { padding: 7.5rem 0 var(--section); }

.wall-mast {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: var(--gap);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.wall-mast__title { grid-column: 1 / span 7; }
.wall-mast__title > .dim { margin-top: 1rem; }

.wall-mast__actions {
  grid-column: 8 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.wall-filter {
  display: inline-grid;
  grid-auto-flow: column;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.wall-filter button {
  min-width: 4.5rem;
  padding: 0.52rem 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 0.25s, background-color 0.25s;
}

.wall-filter button.is-active {
  color: var(--fg);
  background: var(--card);
}

.wall-compose {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.8rem);
  pointer-events: none;
  transition:
    max-height 0.65s var(--e-out),
    opacity 0.35s ease,
    transform 0.55s var(--e-out);
}

.wall-compose.is-open {
  max-height: 30rem;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wall-compose .wall-form {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  padding: clamp(1.4rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wall-form {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.wall-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0;
}

.wall-form input,
.wall-form textarea {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--card);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.9375rem;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.wall-form input:focus,
.wall-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent);
}

.wall-form__row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.wall-form__local { margin-left: auto; font-size: 0.68rem; }
.wall-form__error { color: #b3261e; font-size: 0.75rem; }
.wall-form__status { color: #397a58; font-size: 0.75rem; }
[data-theme="dark"] .wall-form__status { color: #73c99a; }
.wall-form .wall-form__trap {
  position: fixed;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wall-stream-shell { padding-top: clamp(2rem, 4vw, 3.5rem); }

.wall-stream-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.wall-stream-head .mono { flex: none; font-size: 0.66rem; }
.wall-stream-head__rule { height: 1px; flex: 1; background: var(--line); }

.wall-stream {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: clamp(1.25rem, 2vw, 2rem);
}

.wall-stream .wall-note:nth-child(6n + 1) { grid-column: span 4; }
.wall-stream .wall-note:nth-child(6n + 2) { grid-column: span 3; margin-top: 3.5rem; }
.wall-stream .wall-note:nth-child(6n + 3) { grid-column: span 5; margin-top: 1rem; }
.wall-stream .wall-note:nth-child(6n + 4) { grid-column: span 5; margin-top: 2.5rem; }
.wall-stream .wall-note:nth-child(6n + 5) { grid-column: span 4; }
.wall-stream .wall-note:nth-child(6n + 6) { grid-column: span 3; margin-top: 4rem; }

.wall-note {
  position: relative;
  min-width: 0;
  min-height: 10.5rem;
  padding: 1.65rem 1.25rem 1rem;
  border: 1px solid rgba(20, 18, 12, 0.08);
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(20, 18, 12, 0.08);
  transform: rotate(var(--tilt, 0deg));
  transition:
    transform 0.45s var(--e-out),
    box-shadow 0.45s var(--e-out),
    opacity 0.24s ease;
}

.wall-note--s { min-height: 9rem; }
.wall-note--l { min-height: 13rem; }

.wall-note:hover,
.wall-note.is-held {
  z-index: 2;
  transform: translateY(-0.45rem) rotate(0deg);
  box-shadow: 0 18px 38px rgba(20, 18, 12, 0.14);
}

.wall-note.is-leaving {
  opacity: 0;
  transform: translateY(1rem) rotate(var(--tilt, 0deg)) scale(0.96);
}

.wall-note__tape {
  position: absolute;
  top: -0.52rem;
  left: 50%;
  width: 4.5rem;
  height: 1rem;
  background: rgba(214, 205, 182, 0.54);
  box-shadow: 0 1px 2px rgba(20, 18, 12, 0.06);
  transform: translateX(-50%) rotate(calc(var(--tilt, 0deg) * -0.7));
}

.wall-note__body {
  color: #373630;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.wall-note--s .wall-note__body { font-size: 0.95rem; }
.wall-note--l .wall-note__body { font-size: 1.18rem; }

.wall-note__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 1.15rem;
  color: rgba(55, 54, 48, 0.56);
  font-size: 0.7rem;
}

.wall-note__meta strong { color: #576b95; font-size: 0.78rem; }
.wall-note__meta .mono { font-size: 0.62rem; }

.wall-note__source {
  padding-left: 0.55rem;
  border-left: 1px solid rgba(55, 54, 48, 0.18);
}

.wall-note__meta [data-wall-remove] {
  margin-left: auto;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  color: rgba(55, 54, 48, 0.55);
  line-height: 1;
  transition: color 0.2s, background-color 0.2s, transform 0.2s;
}

.wall-note__meta [data-wall-remove]:hover {
  color: #b3261e;
  background: rgba(179, 38, 30, 0.08);
  transform: rotate(8deg);
}

.wall-note--ember { background: #f7ede6; }
.wall-note--amber { background: #faf2df; }
.wall-note--blue  { background: #ebf1f4; }
.wall-note--jade  { background: #eaf2eb; }
.wall-note--coral { background: #f7ebe7; }

[data-theme="dark"] .wall-note--ember { background: #2b211d; }
[data-theme="dark"] .wall-note--amber { background: #292418; }
[data-theme="dark"] .wall-note--blue  { background: #1d2429; }
[data-theme="dark"] .wall-note--jade  { background: #1d2620; }
[data-theme="dark"] .wall-note--coral { background: #291f1e; }
[data-theme="dark"] .wall-note { border-color: rgba(236, 231, 223, 0.1); }
[data-theme="dark"] .wall-note__tape { background: rgba(236, 231, 223, 0.16); }
[data-theme="dark"] .wall-note__body { color: #e6e1d8; }
[data-theme="dark"] .wall-note__meta { color: rgba(230, 225, 216, 0.58); }
[data-theme="dark"] .wall-note__meta strong { color: #8fa3c8; }
[data-theme="dark"] .wall-note__source { border-left-color: rgba(230, 225, 216, 0.18); }

.wall-empty {
  grid-column: 1 / -1;
  min-height: 15rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.wall-empty > span { font-family: var(--display); font-size: 2rem; }

.wall-more {
  min-height: 8rem;
  display: grid;
  place-items: center;
  padding-top: 3rem;
}

.wall-more button {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 0.25s, border-color 0.25s;
}

.wall-more button:hover { color: var(--fg); border-color: var(--accent); }
.wall-more .mono { font-size: 0.68rem; }

@keyframes wallNoteFresh {
  from { opacity: 0; transform: translateY(24px) rotate(var(--tilt, 0deg)) scale(0.97); }
  to { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1); }
}

.wall-note--fresh {
  animation: wallNoteFresh 0.58s var(--e-out) both;
  animation-delay: var(--wall-delay, 0ms);
}

@media (max-width: 980px) {
  .wall-stage__bridge figure { grid-column: 6 / span 3; }
  .wall-stage__line { grid-column: 9 / span 2; }
  .wall-stage__bridge p { grid-column: 11 / -1; }
  .wall-stage__intro > :first-child { grid-column: 1 / span 7; }
  .wall-stage__intro > :last-child { grid-column: 8 / -1; }
  .wall-preview { grid-template-columns: repeat(6, minmax(0, 1fr)); min-height: 34rem; }
  .wall-preview .wall-note:nth-child(1) { grid-column: 1 / span 3; }
  .wall-preview .wall-note:nth-child(2) { grid-column: 4 / span 3; margin-top: 5rem; }
  .wall-preview .wall-note:nth-child(3) { grid-column: 1 / span 3; margin-top: 1rem; }
  .wall-preview .wall-note:nth-child(4) { grid-column: 4 / span 3; margin-top: 5rem; }
  .wall-mast__title { grid-column: 1 / span 7; }
  .wall-mast__actions { grid-column: 8 / -1; }
  .wall-stream .wall-note { grid-column: span 6; }
  .wall-stream .wall-note:nth-child(even) { margin-top: 2.5rem; }
  .wall-stream .wall-note:nth-child(odd) { margin-top: 0; }
}

@media (max-width: 720px) {
  .wall-stage {
    margin-top: -2rem;
    padding-bottom: 5.5rem;
  }

  .wall-stage__bridge {
    min-height: 8rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .wall-stage__bridge figure {
    grid-column: 2 / span 2;
    width: 5.5rem;
  }

  .wall-stage__line { grid-column: 4 / span 1; }
  .wall-stage__bridge p { grid-column: 5 / -1; font-size: 0.78rem; }
  .wall-stage__body { padding-top: 2.5rem; }
  .wall-stage__intro { grid-template-columns: 1fr; }
  .wall-stage__intro > :first-child,
  .wall-stage__intro > :last-child { grid-column: 1; }
  .wall-stage__intro > :last-child { margin-top: 1.5rem; }

  .wall-preview {
    min-height: 0;
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .wall-preview .wall-note {
    width: 88%;
    margin-top: 0 !important;
  }

  .wall-preview .wall-note:nth-child(even) { align-self: flex-end; }
  .wall-stage__foot { margin-top: 2rem; }
  .wall-stage__foot .mono { display: none; }

  .wall-workspace { padding-top: 5.5rem; }
  .wall-mast { grid-template-columns: 1fr; align-items: start; }
  .wall-mast__title,
  .wall-mast__actions { grid-column: 1; }
  .wall-mast__title > .dim { font-size: 0.9rem; }
  .wall-mast__actions {
    margin-top: 1.25rem;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .wall-filter { flex: 1; }
  .wall-filter button { min-width: 0; }
  .wall-compose .wall-form { margin-top: 1rem; }
  .wall-form { grid-template-columns: 1fr; }
  .wall-form__local { width: 100%; margin-left: 0; }
  .wall-stream-shell { padding-top: 2rem; }
  .wall-stream-head { margin-bottom: 2.25rem; }
  .wall-stream { grid-template-columns: 1fr; gap: 1.25rem; }
  .wall-stream .wall-note {
    grid-column: 1;
    width: 100%;
    min-height: 0;
    margin-top: 0 !important;
    transform: rotate(calc(var(--tilt, 0deg) * 0.45));
  }
  .wall-note:hover,
  .wall-note.is-held { transform: translateY(-0.3rem) rotate(0deg); }
  .wall-note--l { min-height: 0; }
  .wall-note__body { font-size: 1rem; }
  .wall-note--l .wall-note__body { font-size: 1.08rem; }
  .wall-more { min-height: 6rem; padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wall-compose,
  .wall-note,
  .wall-filter button,
  .wall-note--fresh {
    animation: none !important;
    transition: none !important;
  }
}

/* Visual editing mode: the public page stays intact underneath these owner-only controls. */
.studio-mode-active body.has-cursor {
  cursor: default;
}

.studio-mode-active body.has-cursor a,
.studio-mode-active body.has-cursor button,
.studio-mode-active body.has-cursor .studio-editable {
  cursor: pointer;
}

.studio-mode-active body.has-cursor input,
.studio-mode-active body.has-cursor textarea,
.studio-mode-active body.has-cursor [contenteditable="true"] {
  cursor: text;
}

.studio-mode-active body.has-cursor .cursor {
  display: none;
}

@media (min-width: 761px) {
  .studio-mode-active body {
    padding-top: 4.75rem;
  }

  .studio-mode-active .hdr {
    top: 4.75rem;
  }
}

.studio-owner-bar {
  position: fixed;
  z-index: 10030;
  top: 0.75rem;
  right: 0.75rem;
  left: 0.75rem;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 92rem;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #111116;
  color: #f6f2eb;
  box-shadow: 0 0.85rem 3rem rgba(0, 0, 0, 0.28);
  font-family: var(--mono);
}

.studio-owner-bar__brand {
  min-height: 3.2rem;
  padding: 0 1rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
}

.studio-owner-bar__brand i {
  width: 0.55rem;
  height: 0.55rem;
  background: #ff5a1f;
}

.studio-owner-bar__brand strong {
  font-size: 0.68rem;
  font-weight: 600;
}

.studio-owner-bar__status {
  min-width: 0;
  flex: 1 1 auto;
  color: #aaa49c;
  font-size: 0.64rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-owner-bar__actions {
  align-self: stretch;
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
}

.studio-owner-bar button,
.studio-owner-bar__actions a {
  min-height: 3.2rem;
  padding: 0 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  color: inherit;
  font: inherit;
  font-size: 0.66rem;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, opacity 0.18s;
}

.studio-owner-bar button:hover,
.studio-owner-bar__actions a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.studio-owner-bar button.is-primary {
  background: #ff5a1f;
  color: #fff;
}

.studio-owner-bar button:disabled {
  color: #6f6a64;
  cursor: not-allowed;
}

.studio-owner-bar button.is-primary:disabled {
  background: #3b302c;
}

.studio-owner-bar .studio-owner-bar__exit {
  width: 3.25rem;
  padding: 0;
  font-size: 1.2rem;
}

.studio-editable {
  position: relative;
  cursor: text;
  outline: 1px dashed transparent;
  outline-offset: 0.35rem;
  transition: outline-color 0.18s, background 0.18s;
}

.studio-editable:hover,
.studio-editable:focus-visible {
  outline-color: #ff5a1f;
  background: rgba(255, 90, 31, 0.08);
}

.studio-editable::after {
  content: attr(data-studio-edit-label);
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: calc(100% + 0.5rem);
  display: none;
  padding: 0.34rem 0.48rem;
  background: #111116;
  color: #fff;
  font: 0.58rem/1 var(--mono);
  white-space: nowrap;
}

.studio-editable:hover::after,
.studio-editable:focus-visible::after {
  display: block;
}

.studio-image-trigger {
  position: absolute;
  z-index: 8;
  top: 5.25rem;
  right: 1.5rem;
  min-height: 2.35rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(17, 17, 22, 0.78);
  color: #fff;
  font: 0.64rem var(--mono);
  backdrop-filter: blur(12px);
}

.studio-image-trigger:hover {
  background: #ff5a1f;
  border-color: #ff5a1f;
}

.studio-drawer {
  position: fixed;
  z-index: 10040;
  top: 4.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  width: min(27rem, calc(100vw - 1.5rem));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(20, 20, 26, 0.22);
  background: #f4f1eb;
  color: #151519;
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.28);
  animation: studio-drawer-in 0.24s ease-out both;
}

@keyframes studio-drawer-in {
  from { opacity: 0; transform: translateX(1.5rem); }
  to { opacity: 1; transform: translateX(0); }
}

.studio-drawer__head {
  min-height: 4.5rem;
  padding-left: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(20, 20, 26, 0.16);
}

.studio-drawer__head div {
  display: grid;
  gap: 0.25rem;
}

.studio-drawer__head span,
.studio-drawer__field > span {
  color: #767169;
  font: 0.6rem var(--mono);
}

.studio-drawer__head strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.studio-drawer__head button {
  align-self: stretch;
  width: 4.5rem;
  border-left: 1px solid rgba(20, 20, 26, 0.16);
  font-size: 1.35rem;
}

.studio-drawer__body {
  padding: 1.1rem;
  flex: 1 1 auto;
  overflow-y: auto;
}

.studio-drawer__field {
  display: grid;
  gap: 0.65rem;
}

.studio-drawer__field input,
.studio-drawer__field textarea,
.studio-drawer__field select {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid rgba(20, 20, 26, 0.24);
  border-radius: 0;
  background: #fff;
  color: #151519;
  font: 1rem/1.65 var(--sans);
  resize: vertical;
}

.studio-drawer__field input:focus,
.studio-drawer__field textarea:focus,
.studio-drawer__field select:focus {
  border-color: #ff5a1f;
  outline: 2px solid rgba(255, 90, 31, 0.16);
}

.studio-drawer__field small {
  justify-self: end;
  color: #777168;
  font: 0.6rem var(--mono);
}

.studio-upload {
  margin-bottom: 1rem;
}

.studio-upload label {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #151519;
  cursor: pointer;
  font: 0.68rem var(--mono);
}

.studio-upload label:hover {
  background: #151519;
  color: #fff;
}

.studio-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.studio-media-card {
  position: relative;
  min-width: 0;
  border: 2px solid transparent;
  background: #e6e1d9;
  text-align: left;
}

.studio-media-card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.studio-media-card span {
  padding: 0.42rem;
  display: block;
  font: 0.56rem/1.35 var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-media-card:hover,
.studio-media-card.is-selected {
  border-color: #ff5a1f;
}

.studio-toast {
  position: fixed;
  z-index: 10050;
  left: 50%;
  bottom: 1.25rem;
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 1rem;
  background: #111116;
  color: #fff;
  font: 0.66rem var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.75rem);
  transition: opacity 0.18s, transform 0.18s;
}

.studio-toast[data-tone="error"] {
  background: #9f2d23;
}

.studio-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.studio-previewing .studio-editable {
  cursor: inherit;
  outline: 0;
  background: transparent;
}

.studio-previewing .studio-editable::after,
.studio-previewing .studio-image-trigger {
  display: none;
}

.studio-content-editable {
  position: relative;
  outline: 1px dashed transparent;
  outline-offset: 0.35rem;
  transition: outline-color 0.18s;
}

.studio-content-editable:hover {
  outline-color: rgba(255, 90, 31, 0.72);
}

.studio-content-edit-trigger {
  position: absolute;
  z-index: 24;
  top: 0.75rem;
  right: 0.75rem;
  min-height: 2.15rem;
  padding: 0 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(17, 17, 22, 0.9);
  color: #fff;
  font: 0.62rem var(--mono);
  box-shadow: 0 0.55rem 1.5rem rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-0.25rem);
  transition: opacity 0.18s, transform 0.18s, background 0.18s;
}

.studio-content-editable:hover > .studio-content-edit-trigger,
.studio-content-edit-trigger:focus-visible {
  opacity: 1;
  transform: none;
}

.studio-content-edit-trigger:hover {
  background: #ff5a1f;
}

.studio-content-drawer {
  width: min(36rem, calc(100vw - 1.5rem));
}

.studio-content-drawer .studio-drawer__body {
  padding: 1.25rem;
}

.studio-content-form {
  display: grid;
  gap: 1.25rem;
}

.studio-content-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.studio-content-form__grid .is-wide {
  grid-column: 1 / -1;
}

.studio-content-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font: 0.72rem var(--mono);
}

.studio-content-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #ff5a1f;
}

.studio-content-media {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 20, 26, 0.14);
}

.studio-content-media__head,
.studio-content-form__section-head,
.studio-content-repeat__item > header,
.studio-content-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.studio-content-media__head strong,
.studio-content-form__section-head strong,
.studio-content-repeat__item > header strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
}

.studio-content-media__head label,
.studio-content-add {
  min-height: 2.25rem;
  padding: 0 0.7rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid #151519;
  font: 0.6rem var(--mono);
  cursor: pointer;
}

.studio-content-media__head label:hover,
.studio-content-add:hover {
  background: #151519;
  color: #fff;
}

.studio-content-form__section-head {
  padding-top: 0.5rem;
}

.studio-content-form__section-head span {
  color: #777168;
  font: 0.58rem var(--mono);
}

.studio-content-repeat,
.studio-content-selected {
  display: grid;
  gap: 0.85rem;
}

.studio-content-repeat__item {
  padding: 0.9rem;
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(20, 20, 26, 0.16);
  background: #ebe7df;
}

.studio-content-repeat__item > header button {
  color: #9f2d23;
  font: 0.6rem var(--mono);
}

.studio-content-selected > article {
  position: relative;
  min-width: 0;
  padding: 0.65rem 2.5rem 0.65rem 0.65rem;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.75rem;
  border: 1px solid rgba(20, 20, 26, 0.16);
  background: #ebe7df;
}

.studio-content-selected > article > img {
  width: 5rem;
  aspect-ratio: 1;
  object-fit: cover;
}

.studio-content-selected > article > div {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
}

.studio-content-selected > article > div > strong {
  overflow: hidden;
  font: 0.65rem var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-content-selected [data-content-remove-media] {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  color: #9f2d23;
  font-size: 1.2rem;
}

.studio-content-drawer__foot {
  min-height: 4rem;
  padding-left: 1rem;
  border-top: 1px solid rgba(20, 20, 26, 0.16);
  background: #f4f1eb;
}

.studio-content-drawer__foot > div {
  align-self: stretch;
  display: flex;
}

.studio-content-drawer__foot button {
  min-height: 4rem;
  padding: 0 1rem;
  border-left: 1px solid rgba(20, 20, 26, 0.16);
  font: 0.66rem var(--mono);
}

.studio-content-drawer__foot > button {
  color: #9f2d23;
  border-left: 0;
}

.studio-content-drawer__foot button.is-primary {
  background: #ff5a1f;
  color: #fff;
}

.studio-content-drawer__foot button:disabled {
  opacity: 0.45;
}

@media (max-width: 760px) {
  .studio-owner-bar {
    top: auto;
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    max-width: calc(100vw - 1rem);
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .studio-owner-bar__brand {
    padding-inline: 0.75rem;
  }

  .studio-owner-bar__brand strong,
  .studio-owner-bar__status {
    display: none;
  }

  .studio-owner-bar__actions {
    flex: 1 0 auto;
  }

  .studio-owner-bar button,
  .studio-owner-bar__actions a {
    min-height: 3rem;
    padding-inline: 0.7rem;
  }

  .studio-owner-bar .studio-owner-bar__exit {
    width: 3rem;
  }

  .studio-drawer {
    top: 0.5rem;
    right: 0.5rem;
    bottom: 4rem;
    width: calc(100vw - 1rem);
  }

  .studio-content-drawer {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-width: none;
    margin: 0;
  }

  .studio-image-trigger {
    top: 4.5rem;
    right: 1rem;
  }

  .studio-content-edit-trigger {
    top: 0.5rem;
    right: 0.5rem;
    opacity: 1;
    transform: none;
  }

  .studio-content-form__grid {
    grid-template-columns: 1fr;
  }

  .studio-content-form__grid .is-wide {
    grid-column: auto;
  }

  .studio-content-selected > article {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .studio-content-selected > article > img {
    width: 4rem;
  }
}

/* Owner publishing controls, adapted from the interaction model used by zhjurz/pyq. */
body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-media.is-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  aspect-ratio: auto;
}

.moments-camera {
  position: absolute;
  z-index: 8;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  backdrop-filter: blur(12px);
}

.studio-mode-active .moments-camera {
  top: 5rem;
}

.moments-camera:hover {
  background: rgba(0, 0, 0, 0.58);
}

.moments-camera svg {
  width: 1.35rem;
  height: 1.35rem;
}

.moments-avatar-edit {
  position: absolute;
  right: -0.55rem;
  bottom: -1.95rem;
  z-index: 3;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 25, 23, 0.86);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.moments-avatar-edit:hover {
  transform: scale(1.06);
  background: #1d2220;
}

.moments-avatar-edit svg {
  width: 1rem;
  height: 1rem;
}

.moments-avatar-editor {
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(42rem, calc(100vh - 2rem));
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.moments-avatar-editor__body {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.25rem;
  max-height: calc(100vh - 7rem);
  padding: 1.25rem;
  overflow: auto;
}

.moments-avatar-editor__preview {
  grid-row: span 2;
  display: grid;
  width: 7rem;
  height: 7rem;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
  background: #1d2220;
  font-family: var(--display);
  font-size: 2.5rem;
}

.moments-avatar-editor__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moments-avatar-editor__upload {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.45rem;
  align-self: end;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--fg);
  cursor: pointer;
  font-size: 0.82rem;
}

.moments-avatar-editor__upload svg {
  width: 1rem;
  height: 1rem;
}

.moments-avatar-picker {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.moments-avatar-picker__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 5px;
  background: #ececec;
}

.moments-avatar-picker__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moments-avatar-picker__item span {
  position: absolute;
  inset: auto 0 0;
  overflow: hidden;
  padding: 0.35rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moments-avatar-picker__item.is-selected {
  border-color: #07c160;
}

@media (max-width: 620px) {
  .moments-avatar-editor__body {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
  }

  .moments-avatar-editor__preview {
    width: 5.25rem;
    height: 5.25rem;
  }

  .moments-avatar-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.moment-actions .moment-action__divider {
  width: 1px;
  height: 1.25rem;
  flex: none;
  background: rgba(255, 255, 255, 0.12);
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-actions.has-owner-actions {
  width: max-content;
  max-width: none;
  display: flex;
  grid-template-columns: none;
  align-items: center;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-actions.has-owner-actions .moment-action {
  flex: none;
  gap: 0.35rem;
  padding-inline: 0.85rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-actions.has-owner-actions .moment-action svg {
  width: 0.9rem;
  height: 0.9rem;
}

.moments-composer-open {
  overflow: hidden;
}

.moments-composer-overlay {
  position: fixed;
  z-index: 10045;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.42);
  animation: moments-overlay-in 0.18s ease-out both;
}

@keyframes moments-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.moments-composer {
  width: min(42rem, 100%);
  max-height: min(52rem, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #191919;
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.25);
  animation: moments-composer-in 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes moments-composer-in {
  from { opacity: 0; transform: translateY(1rem) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.moments-composer__head {
  min-height: 3.5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid #ededed;
  background: #fff;
}

.moments-composer__head strong {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
}

.moments-composer__head button {
  justify-self: start;
  min-height: 2.4rem;
  color: #3b3b3b;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.moments-composer__head button.is-publish {
  justify-self: end;
  min-width: 4.4rem;
  padding: 0 1rem;
  border-radius: 5px;
  background: #07c160;
  color: #fff;
  font-weight: 600;
}

.moments-composer__head button.is-publish:hover {
  background: #06ad56;
}

.moments-composer__head button.is-publish:disabled {
  background: #e4e4e4;
  color: #aaa;
  cursor: not-allowed;
}

.moments-composer__body {
  padding: 1rem;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.moments-composer__copy {
  position: relative;
  display: block;
}

.moments-composer__copy textarea {
  width: 100%;
  min-height: 10rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #191919;
  font-family: var(--sans);
  font-size: 1.03rem;
  line-height: 1.65;
  resize: vertical;
}

.moments-composer__copy textarea::placeholder {
  color: #b5b5b5;
}

.moments-composer__copy small {
  display: block;
  color: #aaa;
  font: 0.62rem var(--mono);
  text-align: right;
}

.moments-composer__images {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.moments-composer__image,
.moments-composer__add {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  background: #f1f1f1;
}

.moments-composer__image {
  cursor: grab;
}

.moments-composer__image:active {
  cursor: grabbing;
}

.moments-composer__image > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.moments-composer__image > span {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  font: 0.58rem var(--mono);
}

.moments-composer__image > button {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 1rem;
}

.moments-composer__order {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  display: flex;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.62);
}

.moments-composer__order button {
  width: 1.75rem;
  height: 1.6rem;
  color: #fff;
  font-size: 1rem;
}

.moments-composer__order button:disabled {
  color: rgba(255, 255, 255, 0.3);
}

.moments-composer__add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
  border: 1px solid #dedede;
  color: #999;
}

.moments-composer__add:hover {
  border-color: #07c160;
  color: #07c160;
}

.moments-composer__add span {
  font-size: 2rem;
  font-weight: 200;
  line-height: 1;
}

.moments-composer__add small {
  font: 0.58rem var(--mono);
}

.moments-composer__media-actions {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.5rem;
}

.moments-composer__media-actions label,
.moments-composer__media-actions button {
  min-height: 2.7rem;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid #dedede;
  border-radius: 4px;
  color: #4e4e4e;
  font-family: var(--sans);
  font-size: 0.83rem;
  cursor: pointer;
}

.moments-composer__media-actions label:hover,
.moments-composer__media-actions button:hover {
  border-color: #07c160;
  color: #07994e;
}

.moments-composer__media-actions svg {
  width: 1rem;
  height: 1rem;
}

.moments-media-picker {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
}

.moments-media-picker[hidden] {
  display: none;
}

.moments-media-picker__head {
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.moments-media-picker__head strong {
  font-family: var(--sans);
  font-size: 0.85rem;
}

.moments-media-picker__head span {
  color: #999;
  font: 0.58rem var(--mono);
}

.moments-media-picker__grid {
  max-height: 18rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  overflow-y: auto;
}

.moments-media-picker__item {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  background: #eee;
}

.moments-media-picker__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.moments-media-picker__item span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.35rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
  color: #fff;
  font: 0.54rem/1.25 var(--mono);
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moments-media-picker__item.is-selected {
  border-color: #07c160;
}

.moments-media-picker__item.is-selected::after {
  content: "✓";
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  font-size: 0.72rem;
}

.moments-composer__details {
  margin-top: 1rem;
  border-top: 1px solid #ededed;
}

.moments-composer__details label {
  min-height: 3.25rem;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #ededed;
}

.moments-composer__details span {
  color: #333;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.moments-composer__details input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #555;
  font-family: var(--sans);
  font-size: 0.88rem;
  text-align: right;
}

.moments-composer__details input::placeholder {
  color: #bbb;
}

@media (max-width: 680px) {
  .studio-mode-active .moments-camera {
    top: 5rem;
  }

  .moments-composer-overlay {
    padding: 0;
    align-items: stretch;
  }

  .moments-composer {
    width: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .moments-composer__head {
    min-height: 3.25rem;
  }

  .moments-composer__body {
    padding: 0.9rem;
  }

  .moments-composer__copy textarea {
    min-height: 8rem;
  }

  .moments-media-picker__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .moments-composer__media-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .moments-composer__media-actions label,
  .moments-composer__media-actions button {
    padding-inline: 0.5rem;
  }

  body[data-page="moments"] .moment-card:not(.moment-card--preview) .moment-actions.has-owner-actions .moment-action {
    gap: 0.25rem;
    padding-inline: 0.55rem;
    font-size: 0.75rem;
  }
}

/* ---------- 10 · Infinite wall canvas ---------- */

body[data-page="wall"] {
  overflow: hidden;
  overscroll-behavior: none;
}

body[data-page="wall"] .ftr { display: none; }

body[data-page="wall"] .wall-page,
.wall-canvas-stage {
  height: 100svh;
  min-height: 36rem;
  overflow: hidden;
}

.wall-canvas-stage { position: relative; }

.wall-canvas {
  --wall-grid-x: 0px;
  --wall-grid-y: 0px;
  --wall-grid-size: 36px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--fg) 11%, transparent) 1px, transparent 1.35px);
  background-position: var(--wall-grid-x) var(--wall-grid-y);
  background-size: var(--wall-grid-size) var(--wall-grid-size);
}

.wall-canvas.is-panning { cursor: grabbing; }

.wall-canvas__world {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.wall-canvas__world::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
  border-radius: 50%;
  box-shadow:
    0 -11px 0 -6px var(--accent),
    0 11px 0 -6px var(--accent),
    -11px 0 0 -6px var(--accent),
    11px 0 0 -6px var(--accent);
}

.wall-canvas-note {
  position: absolute;
  min-height: 10.5rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  animation: wallCanvasNoteIn 0.58s var(--e-out) both;
  animation-delay: var(--wall-delay, 0ms);
}

.wall-canvas-note.wall-note--s { min-height: 9rem; }
.wall-canvas-note.wall-note--l { min-height: 13rem; }

@keyframes wallCanvasNoteIn {
  from { opacity: 0; transform: translateY(20px) rotate(var(--tilt, 0deg)) scale(0.96); }
  to { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1); }
}

.wall-canvas-empty {
  position: absolute;
  width: 15rem;
  color: var(--muted);
  font-family: var(--display);
  font-style: italic;
}

.wall-mast--canvas {
  position: absolute;
  z-index: 5;
  top: 6.3rem;
  left: 0;
  right: 0;
  padding-bottom: 0;
  border-bottom: 0;
  pointer-events: none;
}

.wall-mast--canvas > * { pointer-events: auto; }

.wall-mast--canvas .wall-mast__title {
  width: fit-content;
  padding: 0.85rem 1rem 0.95rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.wall-mast--canvas .wall-mast__actions {
  width: fit-content;
  justify-self: end;
  padding: 0.35rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.wall-canvas-controls {
  display: inline-grid;
  grid-auto-flow: column;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.wall-canvas-controls button {
  width: 2.35rem;
  height: 2.35rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s, background-color 0.2s;
}

.wall-canvas-controls button:hover {
  color: var(--fg);
  background: var(--card);
}

.wall-compose--canvas {
  position: absolute;
  z-index: 6;
  top: 12.5rem;
  left: 0;
  right: 0;
}

.wall-compose--canvas .wall-form {
  max-width: 52rem;
  margin-left: auto;
  padding: 1.35rem;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(20, 18, 12, 0.12);
  backdrop-filter: blur(18px);
}

.wall-canvas-status {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.wall-canvas-status > span:nth-child(2) {
  width: 2.5rem;
  height: 1px;
  background: var(--line-strong);
}

.wall-canvas-status .mono { font-size: 0.62rem; }

@media (max-width: 720px) {
  body[data-page="wall"] .wall-page,
  .wall-canvas-stage { min-height: 30rem; }

  .wall-mast--canvas {
    top: 4.7rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .wall-mast--canvas .wall-mast__title {
    grid-column: 1;
    padding: 0.55rem 0.7rem;
  }

  .wall-mast--canvas .wall-mast__title .eyebrow { display: none; }
  .wall-mast--canvas .wall-mast__title .display {
    margin-top: 0;
    font-size: 1.55rem;
  }

  .wall-mast--canvas .wall-mast__actions {
    grid-column: 1;
    width: 100%;
    margin-top: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .wall-mast--canvas .wall-filter { flex: 1; }
  .wall-mast--canvas .wall-filter button { padding: 0.45rem 0.5rem; }
  .wall-canvas-controls { flex: none; }
  .wall-canvas-controls button { width: 2rem; height: 2rem; }
  .wall-mast--canvas [data-wall-write-toggle] {
    flex: none;
    padding: 0.58rem 0.72rem;
    font-size: 0.72rem;
  }

  .wall-compose--canvas {
    top: 11.4rem;
    max-height: calc(100svh - 12.5rem);
    overflow-y: auto;
  }

  .wall-compose--canvas.is-open { max-height: calc(100svh - 12.5rem); }

  .wall-compose--canvas .wall-form {
    margin: 0;
    padding: 1rem;
    grid-template-columns: 1fr;
  }

  .wall-canvas-note { min-height: 9rem; }
  .wall-canvas-status { left: 1rem; bottom: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wall-canvas-note { animation: none !important; }
}

/* =====================================================================
   Gallery / photographic books
   ===================================================================== */
.gallery-page {
  min-height: 100vh;
}

.gallery-hero {
  position: relative;
  min-height: min(68svh, 44rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #171816;
  color: #fff;
}

.gallery-hero > img,
.gallery-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-hero > img {
  object-fit: cover;
  transition: opacity 0.45s var(--e-out), transform 1.2s var(--e-out);
}

.gallery-hero__shade {
  background: rgba(10, 12, 11, 0.38);
}

.gallery-hero__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 8rem;
  padding-bottom: clamp(2rem, 5vw, 4.5rem);
}

.gallery-hero__copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.gallery-hero__copy h1 {
  margin-top: 0.75rem;
  color: #fff;
}

.gallery-hero__copy > p:last-child {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.gallery-library {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: var(--section);
}

.gallery-library__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.6fr);
  gap: var(--gap);
  align-items: end;
}

.gallery-library__head h2 {
  margin-top: 0.7rem;
}

.gallery-library__head > p {
  max-width: 31rem;
  justify-self: end;
}

.gallery-shelf {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.55rem, 1.2vw, 1rem);
  min-height: 15rem;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2.25rem;
  overflow-x: auto;
  border-bottom: 0.85rem solid #3e2d24;
  scrollbar-width: thin;
}

.gallery-shelf::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1.35rem;
  left: 0;
  height: 0.5rem;
  background: rgba(15, 13, 12, 0.14);
}

.gallery-book {
  flex: 0 0 clamp(7.8rem, 11vw, 10rem);
  height: 12.4rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.8rem;
  padding: 1rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px 5px 5px 2px;
  background: #1e6860;
  color: #fff;
  text-align: left;
  box-shadow: -5px 0 0 rgba(8, 17, 15, 0.28) inset, 0 8px 14px rgba(11, 11, 16, 0.18);
  transform-origin: bottom;
  transition: transform 0.32s var(--e-out), filter 0.32s var(--e-out);
}

.gallery-book:nth-child(3n + 2) { background: #bd493d; }
.gallery-book:nth-child(3n + 3) { background: #315b82; }
.gallery-book:hover { transform: translateY(-0.55rem) rotate(-1deg); }
.gallery-book.is-active {
  transform: translateY(-1rem);
  filter: saturate(1.14);
}

.gallery-book__number,
.gallery-book__count {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-book__title {
  align-self: center;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.08;
  writing-mode: vertical-rl;
  justify-self: center;
}

.gallery-reader {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.gallery-reader__head,
.gallery-reader__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding: clamp(1.25rem, 3vw, 2.25rem) 0;
}

.gallery-reader__head h2 {
  margin-top: 0.55rem;
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}

.gallery-reader__head > div > p:last-child {
  max-width: 42rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

.gallery-reader__folio {
  font-size: 0.72rem;
  color: var(--muted);
}

.gallery-reader__head-actions {
  display: grid;
  justify-items: end;
  gap: 0.85rem;
}

.gallery-reader__spread {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.7fr);
  height: clamp(34rem, 52vw, 44rem);
  min-height: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform-origin: center;
}

.gallery-reader__photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #161817;
}

.gallery-reader__image {
  width: 100%;
  height: 100%;
}

.gallery-reader__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-reader__page {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-left: 1px solid var(--line);
  background: var(--card);
  box-shadow: 2rem 0 2rem -2rem rgba(14, 14, 18, 0.1) inset;
}

.gallery-reader__mark {
  color: var(--dimmer);
  font-family: var(--display);
  font-size: 4.5rem;
  line-height: 1;
}

.gallery-reader__page blockquote {
  margin-top: auto;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.35;
}

.gallery-reader__page dl {
  display: grid;
  gap: 0.45rem;
  margin-top: 2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.gallery-reader__page dl div {
  display: flex;
  gap: 1rem;
}

.gallery-reader__page dt { width: 2rem; }

.gallery-reader__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 2rem;
}

.gallery-reader__thumbs button {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid transparent;
  opacity: 0.56;
  transition: opacity 0.22s, border-color 0.22s;
}

.gallery-reader__thumbs button:hover,
.gallery-reader__thumbs button.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.gallery-reader__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-reader__foot {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.gallery-reader__foot > p {
  max-width: 42rem;
  color: var(--muted);
}

.gallery-reader__controls {
  display: flex;
  gap: 0.5rem;
}

.gallery-reader__controls button {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-size: 1.25rem;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}

.gallery-reader__controls button:hover {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.gallery-empty {
  padding: 8rem 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .gallery-library__head {
    grid-template-columns: 1fr;
  }

  .gallery-library__head > p {
    justify-self: start;
  }

  .gallery-reader__spread {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .gallery-reader__photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .gallery-reader__page {
    min-height: 23rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .gallery-hero {
    min-height: 56svh;
  }

  .gallery-hero__copy {
    padding-bottom: 2rem;
  }

  .gallery-hero__copy > p:last-child {
    font-size: 0.92rem;
  }

  .gallery-shelf {
    min-height: 11.5rem;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }

  .gallery-book {
    flex-basis: 6.4rem;
    height: 9rem;
  }

  .gallery-book__title {
    font-size: 1.08rem;
  }

  .gallery-reader__head {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .gallery-reader__head-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .gallery-reader__head h2 {
    font-size: 2rem;
  }

  .gallery-reader__spread {
    margin-inline: calc(var(--pad) * -1);
  }

  .gallery-reader__photo {
    margin-inline: 0;
    aspect-ratio: 4 / 3;
  }

  .gallery-reader__page {
    min-height: 20rem;
    padding: 1.5rem;
  }

  .gallery-reader__mark {
    font-size: 3.25rem;
  }

  .gallery-reader__page blockquote {
    font-size: 1.35rem;
  }

  .gallery-reader__foot { grid-template-columns: 1fr; }
}

/* Owner-only editing controls layered over the real public site. */
.studio-edit-bar {
  position: fixed;
  z-index: 10020;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #111116;
  color: #ece7df;
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.24);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.studio-edit-bar__mark {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  margin: 0 0.75rem;
  background: #ff5a1f;
}

.studio-edit-bar__label {
  padding-right: 0.8rem;
  color: #9f9a92;
  font-size: 0.62rem;
}

.studio-edit-bar a,
.studio-edit-bar button {
  min-height: 3.2rem;
  padding: 0 0.9rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: inherit;
  font-family: var(--mono);
  font-size: 0.68rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.studio-edit-bar a:hover,
.studio-edit-bar button:hover,
.studio-edit-bar__primary {
  background: #ff5a1f;
  color: #fff;
}

.studio-edit-bar button {
  width: 3.25rem;
  padding: 0;
  font-size: 1.15rem;
}

@media (max-width: 720px) {
  .studio-edit-bar {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    max-width: calc(100vw - 1rem);
  }

  .studio-edit-bar__label {
    display: none;
  }

  .studio-edit-bar a,
  .studio-edit-bar button {
    min-height: 3rem;
    padding-inline: 0.75rem;
  }

  .studio-edit-bar button {
    width: 3rem;
    padding: 0;
  }
}
