:root {
  --paper: #f2efe7;
  --paper-deep: #e5e0d5;
  --ink: #171717;
  --muted: #706e68;
  --line: rgba(23, 23, 23, 0.18);
  --acid: #d9ff57;
  --orange: #ff5b35;
  --white: #fffdf7;
  --page: min(1440px, calc(100vw - 80px));
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

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

button {
  border: 0;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: relative;
  z-index: 20;
  width: var(--page);
  height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
}

.brand-mark {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  color: var(--acid);
  background: var(--ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.06em;
  transform: rotate(-7deg);
  transition: transform .3s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(7deg);
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 13px;
  font-weight: 650;
}

.site-nav a,
.header-cta,
.text-link {
  position: relative;
}

.site-nav a::after,
.text-link::after {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: right .28s var(--ease);
}

.site-nav a:hover::after,
.text-link:hover::after {
  right: 0;
}

.header-cta {
  justify-self: end;
  padding: 12px 18px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  transition: color .25s, background .25s;
}

.header-cta:hover {
  color: var(--acid);
  background: var(--ink);
}

.menu-button {
  display: none;
}

.hero {
  width: var(--page);
  min-height: 760px;
  margin: 0 auto;
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
}

.eyebrow {
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
}

.eyebrow::before {
  display: inline-block;
  width: 31px;
  height: 1px;
  margin: 0 12px 3px 0;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(52px, 5.4vw, 88px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.075em;
}

.outlined {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  font-style: italic;
}

.hero-intro {
  max-width: 570px;
  margin: 38px 0 0;
  color: #4e4d49;
  font-size: 16px;
  line-height: 1.9;
}

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

.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s;
}

.button:hover {
  transform: translateY(-3px);
}

.button:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.button-dark {
  min-width: 175px;
  color: var(--acid);
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--acid);
}

.button-dark:hover {
  box-shadow: 9px 9px 0 var(--acid);
}

.button-accent {
  width: 100%;
  color: var(--ink);
  background: var(--acid);
  box-shadow: 6px 6px 0 var(--ink);
}

.text-link {
  padding: 10px 0;
  font-size: 13px;
  font-weight: 800;
}

.text-link span {
  margin-left: 7px;
}

.hero-meta {
  max-width: 570px;
  margin-top: 62px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-meta strong {
  font-family: Georgia, serif;
  font-size: 23px;
  letter-spacing: -.04em;
}

.hero-meta span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.hero-gallery {
  position: relative;
  height: 610px;
  margin-left: 6%;
}

.hero-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #d7d1c6;
  box-shadow: 0 28px 55px rgba(30, 27, 20, .16);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.hero-card:hover img {
  transform: scale(1.035);
}

.hero-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  font-size: 11px;
  letter-spacing: .08em;
}

.hero-card figcaption b {
  font-family: Georgia, serif;
  font-size: 19px;
}

.hero-card-main {
  top: 50px;
  left: 10%;
  z-index: 2;
  width: 64%;
  height: 475px;
  transform: rotate(-2deg);
}

.hero-card-top {
  top: 0;
  right: 0;
  width: 30%;
  height: 265px;
  transform: rotate(4deg);
}

.hero-card-bottom {
  right: 4%;
  bottom: 4px;
  z-index: 3;
  width: 35%;
  height: 270px;
  transform: rotate(2deg);
}

.hero-sticker {
  position: absolute;
  left: 0;
  bottom: 25px;
  z-index: 4;
  width: 105px;
  height: 105px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: 50%;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  transform: rotate(-12deg);
}

.marquee {
  overflow: hidden;
  color: var(--acid);
  background: var(--ink);
  border-block: 1px solid var(--ink);
}

.marquee-track {
  width: max-content;
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 28px;
  animation: marquee 24s linear infinite;
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
}

.marquee-track i {
  color: var(--orange);
  font-style: normal;
}

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

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 138px 0;
}

.section-heading {
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: end;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(45px, 4.5vw, 72px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.06em;
}

.section-summary {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.filters {
  margin-bottom: 46px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter {
  padding: 10px 17px;
  color: #55534e;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: .2s;
}

.filter sup {
  margin-left: 2px;
  font-size: 8px;
}

.filter:hover,
.filter.active {
  color: var(--acid);
  background: var(--ink);
  border-color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 64px 24px;
}

.project-card {
  grid-column: span 4;
  min-width: 0;
}

.project-card:nth-child(5n + 1),
.project-card:nth-child(5n + 4) {
  grid-column: span 7;
}

.project-card:nth-child(5n + 2),
.project-card:nth-child(5n + 5) {
  grid-column: span 5;
}

.project-card:nth-child(5n + 3) {
  grid-column: 3 / span 8;
}

.project-card button {
  width: 100%;
  padding: 0;
  text-align: left;
  background: none;
  cursor: pointer;
}

.project-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--project-accent);
}

.project-card:nth-child(odd) .project-image {
  aspect-ratio: 5 / 4;
}

.project-image::after {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, .12);
  opacity: 0;
  content: "";
  transition: opacity .35s;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s;
}

.project-open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 11px 15px;
  color: var(--ink);
  background: var(--acid);
  font-size: 11px;
  font-weight: 850;
  transform: translateY(12px);
  opacity: 0;
  transition: .35s var(--ease);
}

.project-card button:hover .project-image img {
  transform: scale(1.035);
}

.project-card button:hover .project-image::after {
  opacity: 1;
}

.project-card button:hover .project-open {
  transform: translateY(0);
  opacity: 1;
}

.project-info {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.project-info > span {
  display: flex;
  flex-direction: column;
}

.project-info small {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-info strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(22px, 2.1vw, 31px);
  line-height: 1.2;
}

.project-info em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.project-info > b {
  color: var(--project-accent);
  font-family: Georgia, serif;
  font-size: 32px;
  font-style: italic;
}

.statement {
  min-height: 600px;
  padding: 110px max(40px, calc((100vw - 1440px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
  text-align: center;
}

.statement-kicker {
  color: var(--acid);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}

.statement blockquote {
  margin: 42px auto 26px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(35px, 4.3vw, 67px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.045em;
}

.statement-sign {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.about {
  display: grid;
  grid-template-columns: 41% 1fr;
  gap: 10%;
  align-items: center;
}

.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--acid);
  background: var(--ink);
}

.portrait-type {
  position: absolute;
  inset: 8% 5% 18%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: clamp(120px, 16vw, 240px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.2em;
}

.portrait-type span:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 2px var(--acid);
  transform: translateY(14%);
}

.about-portrait p {
  position: absolute;
  left: 30px;
  bottom: 28px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .16em;
}

.portrait-dot {
  position: absolute;
  right: 26px;
  bottom: 28px;
  width: 15px;
  height: 15px;
  background: var(--orange);
  border-radius: 50%;
}

.about-copy {
  max-width: 700px;
}

.about-lead {
  margin: 40px 0;
  color: #4f4c46;
  font-size: 16px;
  line-height: 2;
}

.about-columns {
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.about-columns h3 {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: .12em;
}

.about-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-columns li {
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.about-columns li::before {
  margin-right: 9px;
  color: var(--orange);
  content: "↳";
}

.process {
  padding-top: 20px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  margin-bottom: 60px;
}

.process-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border-top: 1px solid var(--ink);
}

.process-list li {
  min-height: 300px;
  padding: 25px 26px;
  border-right: 1px solid var(--line);
}

.process-list li:last-child {
  border-right: 0;
}

.process-list span {
  display: inline-grid;
  width: 35px;
  height: 35px;
  margin-bottom: 78px;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 900;
}

.process-list h3 {
  margin: 0 0 14px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
}

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

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: start;
}

.contact-intro h2 span {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink);
}

.contact-intro > p:not(.eyebrow) {
  margin: 35px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.contact-note {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid;
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
}

.contact-form {
  padding: 42px;
  background: var(--ink);
}

.contact-form label,
.login-panel label {
  display: block;
  margin-bottom: 25px;
}

.contact-form label > span,
.login-panel label > span {
  display: block;
  margin-bottom: 9px;
  color: #bbb8ae;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.contact-form input,
.contact-form textarea,
.login-panel input {
  width: 100%;
  padding: 12px 0;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  border-radius: 0;
  outline: none;
  font-size: 14px;
  resize: vertical;
  transition: border-color .2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.login-panel input:focus {
  border-color: var(--acid);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.login-panel input::placeholder {
  color: #716f69;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
}

.form-status {
  min-height: 20px;
  margin: 20px 0 0;
  color: #c7c4bc;
  font-size: 12px;
  line-height: 1.6;
}

.form-status.success {
  color: var(--acid);
}

.form-status.error {
  color: #ff866e;
}

.site-footer {
  padding: 50px max(40px, calc((100vw - 1440px) / 2)) 30px;
  color: var(--white);
  background: var(--ink);
}

.footer-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--acid);
  font-family: Georgia, serif;
  font-size: clamp(130px, 24vw, 360px);
  font-weight: 900;
  font-style: italic;
  line-height: .8;
  letter-spacing: -.1em;
}

.footer-title span {
  margin: 15px 2% 0 0;
  color: var(--orange);
  font-size: 11px;
  font-style: normal;
  letter-spacing: .1em;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: #a9a69e;
  font-size: 10px;
  letter-spacing: .08em;
}

.footer-bottom div {
  display: flex;
  gap: 25px;
}

.footer-bottom .footer-legal {
  align-items: center;
  gap: 18px;
}

.footer-legal p {
  margin: 0;
}

.footer-legal a {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.footer-bottom a:hover {
  color: var(--acid);
}

.admin-link {
  opacity: .45;
}

.project-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
}

.project-dialog::backdrop {
  background: rgba(10, 10, 10, .78);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: sticky;
  top: 18px;
  left: calc(100% - 62px);
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-bottom: -44px;
  color: var(--acid);
  background: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
}

.dialog-header {
  padding: 85px 7% 60px;
  background: var(--dialog-accent);
}

.dialog-header p {
  margin: 0 0 28px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
}

.dialog-header h2 {
  max-width: 900px;
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 1;
  letter-spacing: -.06em;
}

.dialog-header > span {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}

.dialog-body {
  padding: 70px 7% 90px;
}

.dialog-description {
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: minmax(0, 700px) 1fr;
  gap: 70px;
  align-items: end;
}

.dialog-description p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
}

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

.dialog-description li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
}

.dialog-gallery {
  display: grid;
  gap: 36px;
}

.frame-preview {
  margin: 0 0 65px;
}

.frame-toolbar {
  min-height: 48px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  color: #c8c5bc;
  background: var(--ink);
  font-size: 10px;
}

.frame-dots {
  display: flex;
  gap: 7px;
}

.frame-dots i {
  width: 9px;
  height: 9px;
  background: #ff685c;
  border-radius: 50%;
}

.frame-dots i:nth-child(2) {
  background: #f6c64d;
}

.frame-dots i:nth-child(3) {
  background: #69c457;
}

.frame-address {
  min-width: 0;
  padding: 8px 13px;
  overflow: hidden;
  color: #9b9890;
  background: #292929;
  border-radius: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-toolbar a {
  color: var(--acid);
  font-weight: 800;
  white-space: nowrap;
}

.frame-preview iframe {
  width: 100%;
  height: min(74vh, 820px);
  display: block;
  background: white;
  border: 1px solid rgba(23, 23, 23, .25);
  border-top: 0;
}

.frame-tip {
  margin: 9px 0 0;
  color: var(--muted);
  text-align: right;
  font-size: 10px;
}

.dialog-gallery figure {
  position: relative;
  margin: 0;
  background: #ded9ce;
}

.dialog-gallery img {
  width: 100%;
  max-height: 1000px;
  object-fit: contain;
}

.dialog-gallery figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  color: white;
  background: rgba(0, 0, 0, .68);
  font-family: Georgia, serif;
  font-size: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

.project-card:nth-child(2n) {
  transition-delay: .08s;
}

.project-card:nth-child(3n) {
  transition-delay: .14s;
}

.project-empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  text-align: center;
}

/* Admin */
.admin-body {
  min-height: 100vh;
  color: var(--white);
  background: var(--ink);
}

.admin-shell {
  width: min(1100px, calc(100vw - 48px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.admin-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.admin-body .brand-mark {
  color: var(--ink);
  background: var(--acid);
}

.admin-logout {
  padding: 10px 16px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
}

.login-panel {
  width: min(520px, 100%);
  margin: 12vh auto 0;
  padding: 55px;
  color: var(--ink);
  background: var(--paper);
}

.login-panel h1,
.messages-title h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 58px;
  letter-spacing: -.06em;
}

.login-panel > p:not(.eyebrow) {
  margin: 20px 0 38px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.login-panel input {
  color: var(--ink);
  border-color: var(--line);
}

.login-panel label > span {
  color: var(--muted);
}

.admin-dashboard {
  padding-top: 32px;
}

.admin-tabs {
  margin-bottom: 25px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.admin-tabs button {
  padding: 16px 4px 14px;
  margin-right: 28px;
  color: #8f8c84;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 12px;
}

.admin-tabs button.active {
  color: var(--white);
  border-color: var(--acid);
}

.projects-panel,
.messages-panel {
  padding-top: 38px;
}

.messages-title {
  margin-bottom: 50px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.message-counts {
  display: flex;
  gap: 15px;
}

.message-counts span {
  padding: 12px 15px;
  color: #aaa79f;
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 11px;
}

.message-counts b {
  margin-right: 5px;
  color: var(--acid);
  font-family: Georgia, serif;
  font-size: 18px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.project-actions > span {
  color: #aaa79f;
  font-size: 11px;
}

.project-actions > span b {
  margin-right: 4px;
  color: var(--acid);
  font-family: Georgia, serif;
  font-size: 20px;
}

.project-actions .button {
  min-height: 46px;
  padding: 0 18px;
}

.admin-projects-list {
  display: grid;
  gap: 12px;
}

.admin-project-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  color: var(--ink);
  background: var(--paper);
}

.admin-project-card > img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #d9d6cf;
}

.admin-project-copy {
  min-width: 0;
  padding: 24px;
}

.admin-project-copy p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-project-copy h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 25px;
}

.admin-project-copy span,
.admin-project-copy small {
  display: block;
  color: var(--muted);
}

.admin-project-copy span {
  margin: 5px 0 18px;
  font-size: 12px;
}

.admin-project-copy small {
  font-size: 10px;
}

.admin-project-buttons {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-project-buttons button {
  padding: 9px 13px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 10px;
}

.admin-project-buttons button:hover {
  color: var(--acid);
  background: var(--ink);
}

.project-editor {
  width: min(880px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
}

.project-editor::backdrop {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(6px);
}

.project-editor form {
  padding: 38px;
}

.project-editor header,
.project-editor footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.project-editor header {
  margin-bottom: 35px;
}

.project-editor h2 {
  margin: 3px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 40px;
}

.editor-close {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 26px;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.editor-grid label > span,
.field-label {
  margin-bottom: 8px;
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.editor-grid label small {
  font-weight: 400;
}

.editor-grid input:not([type="checkbox"]):not([type="color"]),
.editor-grid select,
.editor-grid textarea {
  width: 100%;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: 13px;
}

.editor-grid textarea {
  resize: vertical;
  line-height: 1.7;
}

.editor-grid input[type="color"] {
  width: 100%;
  height: 43px;
  padding: 4px;
  background: transparent;
  border: 1px solid var(--line);
}

.editor-full {
  grid-column: 1 / -1;
}

.web-preview-fields {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border: 1px solid var(--line);
}

.python-preview-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.editor-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 15px;
  color: var(--muted);
  background: #e8e3d8;
  font-size: 10px;
  line-height: 1.7;
}

.editor-note code {
  color: var(--ink);
  font-size: 10px;
}

.upload-field input[type="file"] {
  padding: 15px;
  border: 1px dashed #aaa79f;
  cursor: pointer;
}

.cover-preview {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.cover-preview img {
  width: 110px;
  height: 72px;
  object-fit: cover;
  background: #d9d6cf;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.gallery-preview > p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.gallery-preview figure {
  position: relative;
  margin: 0;
}

.gallery-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-preview button {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 5px 7px;
  color: white;
  background: rgba(0, 0, 0, .75);
  border: 0;
  cursor: pointer;
  font-size: 9px;
}

.editor-checks {
  display: flex;
  gap: 25px;
}

.editor-checks label {
  color: var(--ink);
  font-size: 11px;
}

.project-editor footer {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.project-editor footer .form-status {
  margin: 0;
}

.messages-list {
  display: grid;
  gap: 16px;
}

.message-card {
  position: relative;
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
}

.message-card.read {
  opacity: .68;
}

.message-card.unread {
  border-left: 5px solid var(--acid);
}

.message-state {
  position: absolute;
  top: 0;
  right: 0;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--acid);
  font-size: 9px;
  font-weight: 850;
}

.message-card.read .message-state {
  color: #77746c;
  background: #d2cdc2;
}

.message-card header {
  padding-right: 70px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.message-card h2 {
  margin: 0 0 5px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
}

.message-contact,
.message-card time {
  color: var(--muted);
  font-size: 11px;
}

.message-card > p {
  margin: 28px 0;
  font-size: 14px;
  line-height: 1.9;
  white-space: normal;
}

.message-card footer {
  display: flex;
  gap: 10px;
}

.message-card button {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 10px;
}

.message-card button:hover {
  color: var(--acid);
  background: var(--ink);
}

.empty-messages {
  padding: 100px 20px;
  color: #8f8c84;
  border: 1px dashed rgba(255, 255, 255, .25);
  text-align: center;
}

.empty-messages span {
  color: var(--acid);
  font-family: Georgia, serif;
  font-size: 80px;
}

.empty-messages h2 {
  margin: 10px 0;
  color: var(--white);
  font-family: "Songti SC", "STSong", serif;
}

.empty-messages p {
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  :root {
    --page: calc(100vw - 48px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 65px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-gallery {
    width: min(720px, 90%);
    margin: 70px auto 0;
  }

  .project-card,
  .project-card:nth-child(5n + 1),
  .project-card:nth-child(5n + 2),
  .project-card:nth-child(5n + 3),
  .project-card:nth-child(5n + 4),
  .project-card:nth-child(5n + 5) {
    grid-column: span 6;
  }

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

  .process-list li:nth-child(2) {
    border-right: 0;
  }

  .process-list li {
    border-bottom: 1px solid var(--line);
  }

  .process-list li:nth-child(n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100vw - 32px);
  }

  .noise {
    display: none;
  }

  .site-header {
    height: 76px;
    grid-template-columns: 1fr auto;
  }

  .brand-mark {
    width: 41px;
    height: 41px;
  }

  .brand-name,
  .header-cta {
    display: none;
  }

  .menu-button {
    position: relative;
    z-index: 32;
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
  }

  .menu-button span:not(.sr-only) {
    width: 24px;
    height: 1px;
    background: var(--ink);
    transition: transform .2s;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    padding: 130px 32px 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    color: var(--acid);
    background: var(--ink);
    font-family: "Songti SC", "STSong", serif;
    font-size: 40px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav.open + .header-cta {
    display: none;
  }

  .menu-button[aria-expanded="true"] span:not(.sr-only) {
    background: var(--acid);
  }

  .hero {
    min-height: auto;
    padding: 52px 0 70px;
  }

  .eyebrow {
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .hero-intro {
    margin-top: 28px;
    font-size: 14px;
    line-height: 1.85;
  }

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

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

  .hero-meta strong {
    font-size: 18px;
  }

  .hero-gallery {
    width: 100%;
    height: 410px;
    margin-top: 50px;
  }

  .hero-card-main {
    top: 30px;
    left: 4%;
    width: 72%;
    height: 320px;
  }

  .hero-card-top {
    width: 31%;
    height: 170px;
  }

  .hero-card-bottom {
    width: 38%;
    height: 180px;
  }

  .hero-sticker {
    bottom: 0;
    width: 78px;
    height: 78px;
    font-size: 10px;
  }

  .section {
    padding: 90px 0;
  }

  .section-heading {
    margin-bottom: 45px;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section-heading h2,
  .about h2,
  .contact h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .filters {
    margin-bottom: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter {
    flex: 0 0 auto;
  }

  .project-grid {
    display: block;
  }

  .admin-project-card {
    grid-template-columns: 140px 1fr;
  }

  .admin-project-card > img {
    height: 145px;
  }

  .admin-project-buttons {
    grid-column: 1 / -1;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
  }

  .project-card {
    margin-bottom: 48px;
  }

  .project-info > b {
    font-size: 25px;
  }

  .project-info strong {
    font-size: 25px;
  }

  .statement {
    min-height: 500px;
    padding: 80px 25px;
  }

  .statement blockquote {
    font-size: clamp(31px, 9vw, 44px);
  }

  .about {
    display: block;
  }

  .about-portrait {
    margin-bottom: 65px;
  }

  .about-lead {
    font-size: 14px;
  }

  .about-columns {
    gap: 15px;
  }

  .process-list {
    display: block;
  }

  .process-list li,
  .process-list li:nth-child(n + 3) {
    min-height: auto;
    padding: 28px 5px;
    display: grid;
    grid-template-columns: 45px 1fr;
    column-gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list span {
    margin: 0;
    grid-row: span 2;
  }

  .process-list h3 {
    margin-bottom: 8px;
  }

  .contact {
    display: block;
  }

  .contact-intro {
    margin-bottom: 50px;
  }

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

  .footer-title {
    font-size: 36vw;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

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

  .footer-legal a {
    padding-left: 0;
    border-left: 0;
  }

  .project-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .dialog-header {
    padding: 78px 22px 42px;
  }

  .dialog-body {
    padding: 45px 22px 60px;
  }

  .dialog-description {
    margin-bottom: 38px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dialog-description p {
    font-size: 14px;
  }

  .frame-preview {
    margin-inline: -22px;
  }

  .frame-toolbar {
    padding: 0 10px;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .frame-dots {
    gap: 4px;
  }

  .frame-dots i {
    width: 7px;
    height: 7px;
  }

  .frame-preview iframe {
    height: 68vh;
  }

  .frame-tip {
    padding-right: 22px;
  }

  .login-panel {
    margin-top: 7vh;
    padding: 35px 24px;
  }

  .login-panel h1,
  .messages-title h1 {
    font-size: 44px;
  }

  .messages-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .message-card header {
    flex-direction: column;
    gap: 10px;
  }

  .admin-shell {
    width: calc(100vw - 28px);
  }

  .admin-header {
    height: 76px;
  }

  .admin-tabs button {
    margin-right: 14px;
  }

  .project-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-project-card {
    grid-template-columns: 105px 1fr;
  }

  .admin-project-card > img {
    height: 130px;
  }

  .admin-project-copy {
    padding: 18px 14px;
  }

  .admin-project-copy h2 {
    font-size: 20px;
  }

  .admin-project-copy small {
    display: none;
  }

  .project-editor form {
    padding: 25px 20px;
  }

  .project-editor h2 {
    font-size: 32px;
  }

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

  .editor-full {
    grid-column: auto;
  }

  .web-preview-fields,
  .python-preview-fields {
    grid-template-columns: 1fr;
  }

  .python-preview-fields,
  .editor-note {
    grid-column: auto;
  }

  .gallery-preview {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-editor footer {
    align-items: stretch;
    flex-direction: column;
  }
}

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

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