/* ============================================================
   Seasonal Color Report — Issue N° 04
   Mobile-first H5 design (target ~390px). Desktop = enhanced.
   Type system: Fraunces (Latin) + Noto Serif SC (CJK).
   ============================================================ */

:root {
  --ink: #1a1116;
  --ink-soft: #4b3540;
  --ink-mute: #7a6470;
  --paper: #efe5d2;
  --paper-warm: #f5ecd9;
  --paper-deep: #e6d8be;
  --line: rgba(26, 17, 22, 0.16);
  --line-strong: rgba(26, 17, 22, 0.85);

  --cinnabar: #c8362b;
  --cinnabar-deep: #8a221b;
  --aubergine: #2a1424;

  --serif-en: "Fraunces", "Noto Serif SC", "Songti SC", serif;
  --serif-cjk: "Noto Serif SC", "Songti SC", "STSong", "Hiragino Mincho ProN", serif;

  --pad: 18px;
}

* { box-sizing: border-box; }

html, body {
  background: var(--paper);
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--serif-cjk);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(800px 360px at 100% -5%, rgba(200, 54, 43, 0.07), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(74, 30, 60, 0.08), transparent 55%),
    linear-gradient(180deg, #f4eada 0%, var(--paper) 40%, #ece1cb 100%);
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(122, 70, 40, 0.06) 0, transparent 1.5px),
    radial-gradient(circle at 62% 41%, rgba(60, 30, 40, 0.05) 0, transparent 1.5px),
    radial-gradient(circle at 78% 78%, rgba(60, 30, 40, 0.06) 0, transparent 1.5px),
    radial-gradient(circle at 30% 88%, rgba(122, 70, 40, 0.05) 0, transparent 1.5px);
  background-size: 200px 200px, 180px 180px, 220px 220px, 160px 160px;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
body.modal-open { overflow: hidden; }

h1, h2, h3, p { margin-top: 0; }

/* ============================================================
   SHELL  (mobile baseline)
   ============================================================ */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px var(--pad) 20px;
}

/* ============================================================
   MASTHEAD + COLOPHON
   ============================================================ */

.masthead, .colophon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.colophon {
  margin-top: 40px;
  padding: 14px 0 4px;
  border-bottom: 0;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-mute);
}
.masthead-line, .colophon p {
  margin: 0;
  min-width: 0;
  text-align: center;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masthead-mark {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.masthead-mark sup { font-size: 0.6em; vertical-align: super; }
.masthead-mark em {
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cinnabar);
  margin-right: 2px;
}
.masthead-rule {
  display: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
  position: relative;
}
.masthead-rule::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  background: var(--cinnabar);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ============================================================
   HERO  (mobile)
   ============================================================ */

.hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 30px 0 56px;
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.hero-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.hero > * { min-width: 0; max-width: 100%; }

.brand-title {
  margin: 0;
  display: grid;
  gap: 4px;
  line-height: 0.9;
  font-weight: 400;
  min-width: 0;
}
.brand-line {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
}
.brand-line-en {
  font-family: var(--serif-en);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 400;
  font-size: clamp(38px, 10.4vw, 76px);
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--ink);
  overflow-wrap: anywhere;
  animation: revealUp 1100ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.brand-line-en em {
  font-style: italic;
  color: var(--cinnabar);
  letter-spacing: -0.045em;
  padding-right: 0.04em;
}
.brand-line-cjk {
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: clamp(26px, 8vw, 42px);
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--ink-soft);
  margin-top: 4px;
  padding-left: 0.12em;
  animation: revealUp 1100ms 200ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.brand-glyph {
  position: relative;
  color: var(--cinnabar);
}
.brand-glyph::after {
  content: "";
  position: absolute;
  /* top right bottom left — pulls oval up + left to counter
     trailing letter-spacing offset and CJK glyph vertical bias */
  inset: -0.14em -0.02em -0.04em -0.20em;
  border: 1px solid var(--cinnabar);
  border-radius: 50%;
  transform: rotate(-3deg);
  opacity: 0.6;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-lead {
  margin: 0;
  font-family: var(--serif-cjk);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* hero stamp — sized for mobile, sits inline below the lead */
.hero-stamp {
  display: none;
}
.hero-stamp .stamp-ring { display: none; }
.hero-stamp::before {
  display: none;
}
.stamp-core {
  display: grid;
  place-items: center;
  text-align: center;
}
.stamp-core strong {
  font-family: var(--serif-en);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cinnabar);
}
.stamp-core em {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 2px;
}
@keyframes rotate-stamp { to { transform: rotate(360deg); } }

.hero-chroma {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 28px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  overflow: hidden;
}
.hero-chroma span {
  background: var(--c);
  animation: chromaIn 600ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
  animation-delay: calc(var(--n, 0) * 60ms + 600ms);
}
.hero-chroma span:nth-child(1) { --n: 1; }
.hero-chroma span:nth-child(2) { --n: 2; }
.hero-chroma span:nth-child(3) { --n: 3; }
.hero-chroma span:nth-child(4) { --n: 4; }
.hero-chroma span:nth-child(5) { --n: 5; }
.hero-chroma span:nth-child(6) { --n: 6; }
.hero-chroma span:nth-child(7) { --n: 7; }
.hero-chroma span:nth-child(8) { --n: 8; }
@keyframes chromaIn {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); }
}

/* ============================================================
   SECTION HEADERS  (mobile)
   ============================================================ */

.section-head {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}
.section-num {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--cinnabar);
  align-self: end;
  padding-bottom: 2px;
}
.section-title {
  margin: 0;
  font-family: var(--serif-en);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(34px, 9vw, 50px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.section-title em {
  font-style: italic;
  color: var(--cinnabar);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.section-title .cjk {
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 0.42em;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.section-note {
  display: none;
}

/* ============================================================
   CONTACT SHEET  (horizontal scroll on mobile)
   ============================================================ */

.contact-sheet { margin-bottom: 56px; }

.sample-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--pad) 4px;
  margin: 0 calc(var(--pad) * -1);
  scrollbar-width: none;
}
.sample-strip::-webkit-scrollbar { display: none; }
.sample-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 60%;
  min-width: 0;
  scroll-snap-align: start;
  animation: revealUp 700ms calc(var(--idx, 0) * 60ms) cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.sample-preview {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--paper-warm);
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.sample-preview:active { transform: scale(0.99); }
.sample-preview:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}
.sample-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  background: linear-gradient(160deg, #fff, var(--paper-deep));
  filter: contrast(1.02);
}
.sample-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 3px 10px;
  padding: 0 2px;
}
.sample-num {
  grid-row: span 2;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--cinnabar);
  letter-spacing: -0.02em;
  align-self: start;
  padding-top: 2px;
}
.sample-card strong {
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.sample-card em {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

/* ============================================================
   STUDIO  (mobile = single column flow)
   ============================================================ */

.studio {
  display: grid;
  gap: 16px;
  margin-bottom: 56px;
}

.uploader {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper-warm);
  overflow: hidden;
}

.dropzone {
  position: relative;
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(200, 54, 43, 0.025) 22px 23px),
    var(--paper-warm);
  cursor: pointer;
  transition: background 220ms ease;
}
.dropzone:active { background: #faf2e3; }
.dropzone input {
  position: absolute;
  inline-size: 1px; block-size: 1px;
  opacity: 0;
}
.drop-corners {
  position: absolute;
  inset: 12px;
  pointer-events: none;
}
.drop-corners::before,
.drop-corners::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--ink-soft);
}
.drop-corners::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.drop-corners::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.drop-mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper-warm);
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: 40px;
  line-height: 0.9;
}
.drop-title {
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.drop-note {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}
.drop-note em {
  color: var(--cinnabar);
  margin-right: 4px;
}
.drop-change {
  display: none;
  font-family: var(--serif-cjk);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
}

.preview-panel {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--paper-deep);
}
.preview-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 252, 244, 0.55);
  pointer-events: none;
  z-index: 2;
}
.preview-panel img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: none;
  z-index: 1;
}
.empty-preview {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 36px 24px 18px;
  z-index: 2;
}
.empty-word {
  font-family: var(--serif-cjk);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.16em;
  color: var(--ink);
  opacity: 0.55;
  text-align: center;
  line-height: 1.4;
}
.empty-word em {
  display: block;
  font-family: var(--serif-en);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: 1.5em;
  letter-spacing: 0;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: 0.06em;
}
.empty-folio {
  align-self: end;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* has-photo collapse — mobile shows compact photo + change strip */
.uploader.has-photo {
  grid-template-columns: 92px 1fr;
}
.uploader.has-photo .dropzone {
  border-right: 1px solid var(--line-strong);
  border-bottom: 0;
  min-height: 124px;
  padding: 12px 8px;
  gap: 6px;
}
.uploader.has-photo .preview-panel,
.uploader.has-photo .preview-panel img { min-height: 124px; }
.uploader.has-photo .drop-corners { inset: 6px; }
.uploader.has-photo .drop-corners::before,
.uploader.has-photo .drop-corners::after { width: 8px; height: 8px; }
.uploader.has-photo .drop-mark {
  width: 32px; height: 32px;
  font-size: 22px;
}
.uploader.has-photo .drop-title,
.uploader.has-photo .drop-note { display: none; }
.uploader.has-photo .drop-change {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.uploader.has-photo .order-panel {
  grid-column: 1 / -1;
}

.order-panel {
  display: grid;
  gap: 16px;
  padding: 22px var(--pad);
  border-top: 1px solid var(--line-strong);
  background: var(--paper-warm);
}

.plan-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 4px;
  padding: 14px 16px 18px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-align: left;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
  overflow: hidden;
}
.plan:active { transform: scale(0.99); }
.plan-corner {
  position: absolute;
  top: 10px; right: 10px;
  width: 8px; height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: 0.6;
}
.plan-kicker {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--cinnabar);
}
.plan-cn {
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.plan-price {
  font-family: var(--serif-en);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cinnabar);
  margin-top: 6px;
}
.plan.active {
  background: var(--ink);
  color: var(--paper-warm);
  border-color: var(--ink);
}
.plan.active .plan-cn { color: var(--paper-warm); }
.plan.active .plan-kicker { color: #f3a89e; }

.report-picker {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 244, 0.4);
}
.report-picker p {
  margin: 0 0 10px;
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.report-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.report-option {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  min-height: 36px;
  padding: 0 14px;
  font-family: var(--serif-cjk);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: all 180ms ease;
}
.report-option:active { transform: scale(0.98); }
.report-option.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-warm);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--serif-cjk);
  font-weight: 400;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}
.consent input {
  margin-top: 4px;
  width: 16px; height: 16px;
  flex-shrink: 0;
  accent-color: var(--cinnabar);
}

.experience-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 244, 0.46);
}
.experience-field span {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.experience-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 15px;
  text-transform: uppercase;
}
.experience-field input::placeholder {
  color: var(--ink-mute);
  font-family: var(--serif-cjk);
  font-style: normal;
  text-transform: none;
}

.primary {
  border: 1px solid var(--ink);
  background: var(--cinnabar);
  color: var(--paper-warm);
  border-radius: 0;
  min-height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.22em;
  transition: background 200ms ease;
  width: 100%;
}
.primary > span:first-child { flex: 1; text-align: left; }
.primary:active { background: var(--cinnabar-deep); }
.primary-divider {
  width: 1px; height: 22px;
  background: rgba(245, 236, 217, 0.4);
}
.primary small {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}
.primary-arrow {
  font-family: var(--serif-en);
  font-size: 20px;
}
.primary:disabled, .secondary:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* progress board — mobile = inline below order */
.progress-board {
  position: relative;
  padding: 22px var(--pad);
  border: 1px solid var(--line-strong);
  background: var(--paper-warm);
  display: grid;
  gap: 14px;
}
.progress-stamp {
  position: absolute;
  top: -10px; left: var(--pad);
  padding: 3px 10px;
  background: var(--paper);
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cinnabar);
  border: 1px solid var(--cinnabar);
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-top: 4px;
}
.progress-label {
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.progress-head strong {
  font-family: var(--serif-en);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-style: italic;
}
.progress-track {
  height: 6px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
  overflow: hidden;
}
.progress-track span {
  display: block;
  width: 0; height: 100%;
  background: var(--cinnabar);
  transition: width 600ms cubic-bezier(0.4, 0.0, 0.2, 1);
}
.progress-msg {
  margin: 0;
  font-family: var(--serif-cjk);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================================
   PAYMENT MODAL  (mobile = bottom sheet feel)
   ============================================================ */

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 0;
  background: rgba(26, 17, 22, 0.55);
  backdrop-filter: blur(14px);
  animation: modalFade 240ms ease;
}
@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.payment-sheet {
  width: 100%;
  max-width: 480px;
  padding: 32px 24px calc(28px + env(safe-area-inset-bottom));
  background: var(--paper-warm);
  border-top: 1px solid var(--line-strong);
  text-align: center;
  box-shadow: 0 -20px 60px rgba(26, 17, 22, 0.4);
  animation: sheetUp 320ms cubic-bezier(0.2, 0.7, 0.1, 1);
}
@keyframes sheetUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.wechat-mark {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #07c160;
  color: #fff;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 28px;
}
.payment-kicker {
  margin: 0 0 6px;
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.payment-sheet h2 {
  margin: 0 0 10px;
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.payment-amount {
  margin: 0 0 20px;
  font-family: var(--serif-en);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cinnabar);
}
.secondary {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-warm);
  border-radius: 0;
  min-height: 52px;
  padding: 0 18px;
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  transition: background 200ms ease;
}
.secondary:active { background: var(--aubergine); }
.payment-fineprint {
  margin: 12px 0 0;
  font-family: var(--serif-cjk);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.payment-fineprint em {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--cinnabar);
  margin-right: 4px;
  letter-spacing: 0;
}

/* ============================================================
   SAMPLE LIGHTBOX
   ============================================================ */

.sample-modal {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(26, 17, 22, 0.78);
  backdrop-filter: blur(14px);
  animation: modalFade 240ms ease;
}
.sample-lightbox {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  background: var(--paper-warm);
  border: 1px solid var(--line-strong);
  padding: 14px;
  box-shadow: 0 30px 80px rgba(26, 17, 22, 0.5);
  animation: sheetUp 320ms cubic-bezier(0.2, 0.7, 0.1, 1);
}
.sample-lightbox p {
  margin: 0;
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-align: center;
}
.sample-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  justify-self: center;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}
.sample-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-warm);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  font-family: var(--serif-en);
}

/* ============================================================
   RESULTS
   ============================================================ */

.results { margin-bottom: 40px; }

.report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.report-card {
  background: var(--paper-warm);
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.report-link {
  position: relative;
  display: block;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line-strong);
}
.report-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.report-tab {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--paper-warm);
  background: var(--ink);
}
.report-meta {
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.report-meta h3 {
  margin: 0;
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.swatches {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.swatches span {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.download-report {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-warm);
  border-radius: 0;
  min-height: 46px;
  font-family: var(--serif-cjk);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  transition: background 200ms ease;
}
.download-report:active { background: var(--aubergine); }
.download-report:disabled { opacity: 0.6; cursor: wait; }
.save-hint {
  margin: 0;
  font-family: var(--serif-cjk);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-align: center;
}

.hidden { display: none !important; }

/* ============================================================
   DESKTOP / TABLET ENHANCEMENTS  (min-width)
   ============================================================ */

@media (min-width: 720px) {
  :root { --pad: 28px; }
  body { font-size: 16px; }

  .shell { padding: 22px var(--pad) 16px; }

  .masthead, .colophon {
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
    gap: 18px;
    font-size: 13px;
    padding-bottom: 16px;
  }
  .masthead-rule { display: block; }
  .masthead-mark { font-size: 12px; }
  .masthead-mark em { font-size: 13px; }

  .hero { margin: 56px 0 88px; gap: 32px; }
  .brand-line-en { font-size: clamp(72px, 12vw, 144px); letter-spacing: -0.04em; }
  .brand-line-cjk { font-size: clamp(36px, 6.4vw, 76px); letter-spacing: 0.32em; }

  .hero-stamp {
    display: grid;
    position: absolute;
    top: 16px;
    right: 0;
    place-items: center;
    width: 120px; height: 120px;
    z-index: 2;
  }
  .brand-title { padding-right: 132px; }
  .hero-stamp::before {
    display: block;
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid var(--ink-soft);
    border-radius: 50%;
    opacity: 0.45;
  }
  .hero-stamp .stamp-ring {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    fill: none;
    animation: rotate-stamp 26s linear infinite;
  }
  .stamp-ring text {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 11px;
    letter-spacing: 0.22em;
    fill: var(--ink-soft);
  }
  .stamp-core {
    position: relative;
    width: 76px; height: 76px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: rgba(255, 252, 244, 0.6);
  }
  .stamp-core strong { font-size: 36px; }
  .hero-chroma { height: 34px; }

  .section-head {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 18px;
  }
  .section-num { font-size: 22px; padding-bottom: 4px; }
  .section-title {
    font-size: clamp(40px, 5.4vw, 64px);
    gap: 16px;
  }
  .section-note {
    display: block;
    margin: 0 0 6px;
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--ink-mute);
    text-align: right;
    max-width: 18em;
    align-self: end;
  }

  .contact-sheet, .studio { margin-bottom: 88px; }

  .sample-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
  .sample-card {
    display: grid;
    flex: initial;
    scroll-snap-align: none;
  }
  .sample-num { font-size: 22px; }
  .sample-card strong { font-size: 17px; letter-spacing: 0.14em; }
  .sample-card em { font-size: 12px; }
  .sample-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 56px -28px rgba(26, 17, 22, 0.45);
  }
  .sample-preview:hover img { filter: contrast(1.04) saturate(1.06); }

  .uploader { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .dropzone {
    min-height: 460px;
    border-right: 1px solid var(--line-strong);
    border-bottom: 0;
    padding: 40px;
    gap: 16px;
  }
  .drop-corners { inset: 14px; }
  .drop-corners::before, .drop-corners::after { width: 16px; height: 16px; }
  .drop-mark { width: 84px; height: 84px; font-size: 52px; }
  .drop-title { font-size: 30px; }
  .drop-note { font-size: 14px; }
  .preview-panel, .preview-panel img { min-height: 460px; }
  .preview-panel::before { inset: 16px; }
  .empty-word { font-size: 38px; letter-spacing: 0.18em; }
  .empty-folio { font-size: 13px; }

  .uploader.has-photo {
    grid-template-columns: 132px minmax(180px, 0.8fr) minmax(0, 1fr);
  }
  .uploader.has-photo .dropzone { min-height: 168px; padding: 16px; }
  .uploader.has-photo .preview-panel,
  .uploader.has-photo .preview-panel img { min-height: 168px; }
  .uploader.has-photo .drop-mark { width: 36px; height: 36px; font-size: 24px; }
  .uploader.has-photo .order-panel {
    grid-column: auto;
    grid-row: span 2;
    align-content: start;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }

  .order-panel {
    grid-column: 1 / -1;
    padding: 28px;
    border: 0;
    border-top: 1px solid var(--line-strong);
  }

  .plan { padding: 18px 24px 22px; gap: 4px; }
  .plan-kicker { font-size: 14px; }
  .plan-cn { font-size: 20px; letter-spacing: 0.16em; }
  .plan-price { font-size: 38px; }
  .plan-corner { top: 12px; right: 12px; width: 10px; height: 10px; }

  .primary {
    min-height: 64px;
    padding: 0 24px;
    font-size: 18px;
    letter-spacing: 0.24em;
  }
  .primary-divider { height: 24px; }
  .primary small { font-size: 20px; }
  .primary-arrow { transition: transform 200ms ease; }
  .primary:hover { background: var(--cinnabar-deep); }
  .primary:hover .primary-arrow { transform: translateX(4px); }

  .progress-stamp { left: 22px; padding: 3px 12px; font-size: 12px; }
  .progress-label { font-size: 14px; letter-spacing: 0.16em; }
  .progress-head strong { font-size: 56px; }
  .progress-msg { font-size: 15px; }

  .payment-modal { place-items: center; padding: 24px; }
  .payment-sheet {
    max-width: 380px;
    padding: 36px 28px 28px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    box-shadow: 0 30px 90px rgba(26, 17, 22, 0.4);
  }
  .wechat-mark { width: 60px; height: 60px; font-size: 30px; }
  .payment-sheet h2 { font-size: 26px; }
  .payment-amount { font-size: 56px; }
  .secondary { min-height: 54px; font-size: 15px; letter-spacing: 0.2em; }
  .secondary:hover { background: var(--aubergine); }

  .report-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
  .report-meta h3 { font-size: 22px; }
  .report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 56px -28px rgba(26, 17, 22, 0.4);
    transition: transform 220ms ease, box-shadow 220ms ease;
  }
  .download-report:hover { background: var(--aubergine); }

  .colophon { margin-top: 64px; padding: 18px 0 6px; }
}

@media (min-width: 1080px) {
  .hero-stamp {
    top: 24px;
    width: 144px; height: 144px;
  }
  .stamp-core { width: 92px; height: 92px; }
  .stamp-core strong { font-size: 42px; }
  .hero-chroma { height: 36px; }

  .studio {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
  }
  .studio > .section-head { grid-column: 1 / -1; }
  .progress-board {
    position: sticky;
    top: 24px;
    padding: 28px 26px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
