:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --ink: #252621;
  --muted: #77786f;
  --line: #deddd5;
  --accent: #d8694d;
  --card: #fffefa;
  font-family: "Arial", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  width: min(1240px, calc(100% - 64px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
}

.brand img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.brand i {
  margin-left: 3px;
  color: #99998f;
  font-family: "Consolas", monospace;
  font-size: 10px;
  font-style: normal;
  letter-spacing: .1em;
}

.header-link {
  color: var(--muted);
  font-size: 12px;
}

.header-link span {
  margin-left: 5px;
  color: var(--accent);
}

.page-shell {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  min-height: 480px;
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  padding: 45px 0 52px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 0 0 5.5%;
}

.eyebrow {
  margin: 0 0 21px;
  color: #88897f;
  font-family: "Consolas", monospace;
  font-size: 10px;
  letter-spacing: .13em;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -.08em;
  line-height: 1.18;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-description {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  color: #66675f;
  font-family: "Consolas", monospace;
  font-size: 10px;
  letter-spacing: .06em;
}

.scroll-cue span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #c9c8bf;
  border-radius: 50%;
  color: var(--accent);
  font-size: 14px;
}

.hero-art {
  height: 378px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e8e4da;
  box-shadow: 0 16px 38px rgba(48, 43, 34, .1);
}

.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-note,
.hero-index {
  position: absolute;
  bottom: 14px;
  color: rgba(255, 255, 255, .9);
  font-family: "Consolas", monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

.hero-note {
  left: 16px;
}

.hero-index {
  right: 16px;
}

.hero-stamp {
  width: 75px;
  height: 75px;
  position: absolute;
  z-index: 2;
  top: 50px;
  right: 41%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 105, 77, .7);
  border-radius: 50%;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  transform: rotate(12deg);
}

.works-section {
  padding: 52px 0 74px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.section-heading h2 span {
  margin-left: 7px;
  color: #a4a49a;
  font-family: "Consolas", monospace;
  font-size: 11px;
  font-weight: 400;
  vertical-align: 4px;
}

.section-hint {
  margin: 0 0 3px;
  color: #929288;
  font-size: 11px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  min-width: 0;
  perspective: 1200px;
  cursor: pointer;
}

.card-inner {
  min-height: 410px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.2, .75, .25, 1);
}

.work-card:hover .card-inner,
.work-card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(86, 79, 64, .13);
  background: linear-gradient(155deg, #fffefa 0%, #f5f2ea 100%);
  box-shadow: 0 12px 30px rgba(48, 43, 34, .075), 0 2px 6px rgba(48, 43, 34, .04);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-front {
  padding: 9px;
}

.card-image-frame {
  height: 242px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 6px;
  background: #e5e2d9;
}

.card-image-frame::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(54,48,38,.12));
  content: "";
}

.card-image-blur {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  opacity: .48;
  filter: blur(18px) saturate(.72);
  transform: scale(1.12);
}

.card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(31, 31, 29, .17));
}

.card-image-frame[data-orientation="portrait"] .card-image {
  width: auto;
  max-width: 100%;
}

.card-image-frame[data-orientation="square"] .card-image {
  width: auto;
  max-width: 100%;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 3px 7px;
  color: #929288;
  font-family: "Consolas", monospace;
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.card-number {
  color: var(--accent);
}

.card-title {
  margin: 0 3px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.card-subtitle {
  margin: 6px 3px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.card-open {
  width: calc(100% - 6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto 3px 4px;
  padding: 10px 0 2px;
  border: 0;
  border-top: 1px solid rgba(86, 79, 64, .14);
  background: transparent;
  color: #6f7067;
  cursor: pointer;
  font-size: 10px;
  text-align: left;
}

.card-open span {
  color: var(--accent);
  font-size: 15px;
}

.card-back {
  position: absolute;
  padding: 20px;
  transform: rotateY(180deg);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(216, 105, 77, .08), transparent 55%),
    linear-gradient(145deg, #f1efe8 0%, #e8e5dc 100%);
  color: #30312c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 14px 34px rgba(48, 43, 34, .1);
}

.flip-back {
  width: 28px;
  height: 28px;
  position: absolute;
  top: 13px;
  right: 13px;
  border: 1px solid #c9c5b9;
  border-radius: 50%;
  background: transparent;
  color: #5a5a52;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.flip-back:hover {
  border-color: #d9a18f;
  color: #ae5944;
}

.back-kicker {
  margin: 0;
  color: #d9a18f;
  font-family: "Consolas", monospace;
  font-size: 9px;
  letter-spacing: .14em;
}

.back-title {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.back-story {
  margin: 9px 0 0;
  color: #696a62;
  font-size: 11px;
  line-height: 1.8;
}

.prompt-label {
  margin: 21px 0 8px;
  color: #ae5944;
  font-family: "Consolas", monospace;
  font-size: 9px;
  letter-spacing: .12em;
}

.prompt-preview {
  min-height: 84px;
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid rgba(174, 89, 68, .55);
  color: #44453e;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 11px;
  line-height: 1.75;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.card-tags span {
  padding: 4px 7px;
  border: 1px solid #d1cec4;
  border-radius: 999px;
  color: #74746c;
  font-size: 9px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.copy-button,
.detail-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #c6c2b7;
  background: transparent;
  color: #4a4b44;
  cursor: pointer;
  font-size: 10px;
  transition: background .2s, color .2s, border-color .2s;
}

.copy-button {
  flex: 1;
  border-color: #c96a50;
  background: #c96a50;
  color: #fffaf3;
}

.copy-button:hover {
  border-color: #b85942;
  background: #b85942;
}

.detail-button:hover {
  border-color: #ae5944;
  color: #ae5944;
}

.detail-view {
  max-width: 1050px;
  margin: 0 auto;
  padding: 46px 0 80px;
}

.back-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: start;
}

.detail-image {
  width: 100%;
  max-height: 78vh;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #e9e6de;
  object-fit: contain;
  box-shadow: 0 14px 34px rgba(48, 43, 34, .09);
}

.detail-content {
  padding-top: 12px;
}

.detail-content h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.2;
}

.detail-subtitle {
  margin: 13px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.detail-story {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
}

.parameter-heading {
  margin: 24px 0 10px;
  color: #77786f;
  font-size: 11px;
  font-weight: 600;
}

.parameter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.parameter-item {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .55);
}

.parameter-label {
  display: block;
  margin-bottom: 6px;
  color: #99998f;
  font-family: "Consolas", monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.parameter-value {
  display: block;
  overflow-wrap: anywhere;
  color: #3e3f39;
  font-size: 11px;
  line-height: 1.55;
}

.parameter-value.is-missing {
  color: #a45d49;
}

.parameter-note {
  margin: 9px 0 0;
  color: #929288;
  font-size: 10px;
  line-height: 1.7;
}

.detail-prompt-label {
  margin: 23px 0 10px;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
}

.detail-prompt {
  margin: 0;
  padding: 16px;
  border-left: 2px solid rgba(174, 89, 68, .55);
  background: #eeece5;
  color: #494a43;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.detail-tool {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.detail-copy {
  margin-top: 18px;
  padding: 11px 16px;
  border: 0;
  background: #c96a50;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.record-proof {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 9px 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, .55);
  font-size: 10px;
}

.record-proof span {
  color: #929288;
}

.record-proof strong,
.record-proof code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #55564f;
  font: inherit;
}

.record-proof code {
  font-family: "Consolas", monospace;
  font-size: 9px;
}

.admin-shell {
  width: min(1060px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.admin-heading,
.admin-panel-heading,
.admin-form-footer,
.record-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-heading {
  align-items: end;
  margin-bottom: 25px;
}

.admin-heading-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

#login-panel {
  max-width: 560px;
  margin: 60px auto;
}

#login-panel .admin-panel-heading {
  justify-content: flex-start;
}

.admin-heading .eyebrow,
.admin-panel-heading .eyebrow {
  margin-bottom: 10px;
}

.admin-heading h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: -.06em;
}

.admin-intro {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.admin-back-link {
  flex: 0 0 auto;
  color: #73746c;
  font-size: 11px;
}

.prototype-warning {
  margin-bottom: 20px;
  padding: 15px 18px;
  border: 1px solid #dfc5ad;
  background: #f3eadf;
  color: #674d3d;
}

.prototype-warning strong {
  display: block;
  font-size: 12px;
}

.prototype-warning p {
  margin: 6px 0 0;
  color: #806d5d;
  font-size: 11px;
  line-height: 1.8;
}

.admin-panel {
  margin-top: 18px;
  padding: 25px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, .72);
  box-shadow: 0 10px 30px rgba(48, 43, 34, .035);
}

.admin-panel-heading {
  margin-bottom: 22px;
}

.admin-panel-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.admin-panel-heading h2 span {
  margin-left: 5px;
  color: #a4a49a;
  font-family: "Consolas", monospace;
  font-size: 11px;
  font-weight: 400;
}

.admin-private-label {
  color: #74746c;
  font-size: 10px;
}

.work-form {
  display: grid;
  gap: 18px;
}

.upload-field {
  padding: 15px;
  border: 1px dashed #c9c5b9;
  background: rgba(245, 243, 238, .6);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #4a4b44;
  font-size: 11px;
  font-weight: 600;
}

.field-label span {
  margin-left: 4px;
  color: #ae5944;
  font-size: 9px;
  font-weight: 400;
}

.upload-field input[type="file"] {
  width: 100%;
  color: #696a62;
  font-size: 11px;
}

.field-help {
  margin: 8px 0 0;
  color: #929288;
  font-size: 10px;
  line-height: 1.6;
}

.admin-image-preview {
  display: flex;
  align-items: start;
  gap: 14px;
  margin-top: 13px;
  color: #77786f;
  font-size: 10px;
}

.upload-image-details {
  min-width: 0;
  flex: 1;
}

.upload-proof {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 7px 12px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid #deddd5;
  background: rgba(255, 254, 250, .72);
}

.upload-proof > span {
  color: #929288;
}

.upload-proof code,
.upload-proof strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #55564f;
  font-family: "Consolas", monospace;
  font-size: 9px;
  font-weight: 400;
}

.upload-proof code {
  color: #9c6959;
}

.copy-hash-button {
  grid-column: 2;
  justify-self: start;
  padding: 4px 8px;
  border: 1px solid #d5d2c9;
  background: transparent;
  color: #606159;
  cursor: pointer;
  font-size: 9px;
}

.copy-hash-button:disabled {
  cursor: wait;
  opacity: .55;
}

.copy-hash-button:hover:not(:disabled) {
  border-color: #ae5944;
  color: #ae5944;
}

.admin-image-preview img {
  width: 76px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #e9e6de;
  object-fit: contain;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: block;
  min-width: 0;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d5d2c9;
  border-radius: 0;
  background: #fffefa;
  color: #363730;
  font: inherit;
  font-size: 11px;
}

.form-field textarea {
  min-height: 82px;
  resize: vertical;
  line-height: 1.7;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 1px solid #c96a50;
  border-color: #c96a50;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aaa99f;
}

.admin-form-footer {
  align-items: end;
  padding-top: 4px;
}

.form-status {
  max-width: 58%;
  margin: 0;
  color: #6e7460;
  font-size: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.form-status.is-error {
  color: #ad4b3b;
}

.admin-form-actions {
  display: flex;
  gap: 9px;
}

.admin-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #c6c2b7;
  cursor: pointer;
  font-size: 10px;
  transition: background .2s, color .2s, border-color .2s;
}

.admin-button:disabled {
  cursor: wait;
  opacity: .6;
}

.admin-button-secondary {
  background: transparent;
  color: #4a4b44;
}

.admin-button-primary {
  border-color: #c96a50;
  background: #c96a50;
  color: #fffaf3;
}

.admin-button-primary:hover:not(:disabled) {
  border-color: #b85942;
  background: #b85942;
}

.record-list {
  display: grid;
}

.record-empty {
  margin: 0;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  color: #929288;
  font-size: 11px;
  text-align: center;
}

.record-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.record-thumbnail {
  width: 78px;
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #e9e6de;
  object-fit: contain;
}

.record-title-row {
  justify-content: start;
  flex-wrap: wrap;
  gap: 8px;
}

.record-info h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.record-info p {
  margin: 6px 0;
  color: #888980;
  font-size: 9px;
}

.record-info code {
  color: #9c6959;
  font-family: "Consolas", monospace;
  font-size: 9px;
}

.record-status {
  color: #929288;
  font-size: 9px;
}

.record-status.is-published {
  color: #64805e;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.record-action {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #d5d2c9;
  background: transparent;
  color: #606159;
  cursor: pointer;
  font-size: 9px;
}

.record-action:hover {
  border-color: #ae5944;
  color: #ae5944;
}

.record-action.is-danger:hover {
  border-color: #ad4b3b;
  color: #ad4b3b;
}

.gallery-error {
  margin: 80px auto;
  color: #ad4b3b;
  font-size: 13px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  max-width: calc(100vw - 48px);
  padding: 11px 16px;
  background: #292b28;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-footer {
  display: flex;
  justify-content: space-between;
  padding: 17px 0 24px;
  border-top: 1px solid var(--line);
  color: #96968d;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: .05em;
}

@media (max-width: 1000px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .card-inner {
    min-height: 430px;
  }

  .card-image {
    height: 278px;
  }

  .card-image-frame {
    height: 278px;
  }
}

@media (max-width: 680px) {
  .site-header,
  .page-shell,
  .admin-shell {
    width: calc(100% - 36px);
  }

  .admin-shell {
    padding: 34px 0 52px;
  }

  .admin-heading {
    align-items: start;
    flex-direction: column;
    gap: 13px;
  }

  .admin-panel {
    padding: 18px 14px;
  }

  .admin-panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .admin-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-status {
    max-width: none;
  }

  .admin-form-actions {
    flex-direction: column-reverse;
  }

  .admin-button {
    width: 100%;
  }

  .record-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .record-thumbnail {
    width: 58px;
    height: 58px;
  }

  .upload-proof {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .copy-hash-button {
    grid-column: 1;
    margin-top: 3px;
  }

  .record-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .site-header {
    height: 64px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 0 31px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-description {
    margin-top: 17px;
    font-size: 13px;
  }

  .scroll-cue {
    margin-top: 23px;
  }

  .hero-art {
    height: 280px;
  }

  .hero-stamp {
    width: 62px;
    height: 62px;
    top: 39%;
    right: 7px;
    font-size: 9px;
  }

  .works-section {
    padding: 37px 0 48px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card-inner {
    min-height: 430px;
  }

  .card-front {
    padding: 10px;
  }

  .card-image {
    height: 275px;
  }

  .card-image-frame {
    height: 275px;
  }

  .card-back {
    padding: 22px;
  }

  .back-story {
    font-size: 12px;
  }

  .prompt-preview {
    min-height: 72px;
    font-size: 12px;
  }

  .detail-view {
    padding: 28px 0 52px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-footer {
    gap: 12px;
    flex-direction: column;
  }
}

@media (hover: none) {
  .work-card:hover .card-inner {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
