/* ═══════════════════════════════════════
   UPLOAD — EDITORIAL MAGAZINE
   Matches landing-v3 vocabulary.
   Requires: shared.css
═══════════════════════════════════════ */

/* Contain horizontal overflow (matches landing v3) */
html, body {
  overflow-x: clip;
}

/* Page-wide grain overlay — desktop only */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}


/* ═══════════════════════════════════════
   ROTATING GLOW ANGLE — custom property
   (used by drag-over conic-gradient border)
═══════════════════════════════════════ */
@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes glowRotate {
  to { --glow-angle: 360deg; }
}


/* ═══════════════════════════════════════
   NAV — logo only
═══════════════════════════════════════ */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-logo-the,
.nav-logo-cv { color: rgba(255,255,255,0.7); }
.nav-logo:hover .nav-logo-the,
.nav-logo:hover .nav-logo-cv { color: rgba(255,255,255,0.92); }
.nav-logo-one {
  color: #fff;
  background: var(--gold);
  border-radius: 3px;
  padding: 0.1em 0.25em;
  margin: 0 0.08em;
}

/* ═══════════════════════════════════════
   PAGE LAYOUT + ATMOSPHERIC GLOW
═══════════════════════════════════════ */
.upload-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 112px 56px 96px;
  position: relative;
  overflow: hidden;
}
.upload-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 45% at 50% 40%,
    rgba(212, 165, 116, 0.13) 0%,
    rgba(212, 165, 116, 0.06) 22%,
    rgba(212, 165, 116, 0.015) 46%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: glowDrift 34s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes glowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(1.5%, -2%) scale(1.04); }
}

.upload-container {
  max-width: 620px;
  width: 100%;
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════
   MASTHEAD — Chapter I kicker + tempo strip
═══════════════════════════════════════ */
.upload-masthead {
  margin-bottom: 64px;
}
.masthead-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.masthead-numeral {
  font-family: var(--font-display);
  font-size: 30px;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.masthead-rule {
  height: 1px;
  flex: 1;
  max-width: 110px;
  background: linear-gradient(
    to right,
    rgba(212, 165, 116, 0.55) 0%,
    rgba(212, 165, 116, 0.08) 100%
  );
}
.masthead-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(212, 165, 116, 0.82);
  line-height: 1;
}
.masthead-tempo {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-left: 48px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
}
.tempo-beat {
  transition: color 0.35s ease;
}
.tempo-beat.active {
  color: var(--gold);
  opacity: 0.92;
}
.tempo-em {
  font-size: 13px;
  color: rgba(212, 165, 116, 0.22);
}


/* ═══════════════════════════════════════
   HEADLINE — two-beat asymmetric
   One-beat fade-in + synchronized gold reveal.
   Compressed (~0.9s total) so drop zone stays interactive.
═══════════════════════════════════════ */
.upload-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 52px;
  padding: 0;
  opacity: 0;
  transform: translateY(24px);
  animation: headlineReveal 1.05s cubic-bezier(0.19, 1, 0.22, 1) 0.15s forwards;
  will-change: opacity, transform;
}
@keyframes headlineReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.uph-line-1 {
  display: block;
}
.uph-line-2 {
  display: block;
  padding-left: 6vw;
  margin-top: 4px;
}
/* "We've seen worse." — starts neutral white, transitions to gold
   in sync with the headline fade-in. */
.uph-line-2 em {
  font-style: italic;
  color: var(--text);
  animation: emGoldReveal 0.95s cubic-bezier(0.19, 1, 0.22, 1) 0.35s forwards;
  will-change: color;
}
@keyframes emGoldReveal {
  0%   { color: var(--text); }
  100% { color: var(--gold); }
}


/* ═══════════════════════════════════════
   THE PLATE — drop zone frame
═══════════════════════════════════════ */
.drop-zone {
  position: relative;
  border: 2px solid rgba(212, 165, 116, 0.18);
  border-radius: 2px;
  background: rgba(15, 14, 24, 0.35);
  padding: 76px 48px 52px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.45s ease,
    background 0.45s ease;
}
/* Inner thin ornamental border (manuscript plate feel) */
.drop-zone::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 165, 116, 0.06);
  pointer-events: none;
  transition: border-color 0.45s ease;
}
.drop-zone:hover {
  border-color: rgba(212, 165, 116, 0.36);
  background: rgba(212, 165, 116, 0.02);
}
.drop-zone:hover::before {
  border-color: rgba(212, 165, 116, 0.14);
}

/* DRAG-OVER — the signature moment: rotating conic-gradient border */
.drop-zone.drag-over {
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(15, 14, 24, 0.82), rgba(15, 14, 24, 0.82)) padding-box,
    conic-gradient(
      from var(--glow-angle),
      transparent 0deg,
      rgba(212, 165, 116, 0.75) 40deg,
      transparent 95deg,
      transparent 265deg,
      rgba(212, 165, 116, 0.55) 320deg,
      transparent 360deg
    ) border-box;
  animation: glowRotate 4.5s linear infinite;
}
.drop-zone.drag-over::before {
  border-color: rgba(212, 165, 116, 0.22);
}

/* Upload icon — thin stroked SVG, gold */
.drop-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
  color: rgba(212, 165, 116, 0.6);
  transition:
    color 0.4s ease,
    transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}
.drop-icon svg {
  width: 52px;
  height: 52px;
  display: block;
}
.drop-zone:hover .drop-icon {
  color: var(--gold);
  transform: translateY(-3px);
}
.drop-zone.drag-over .drop-icon {
  color: var(--gold-bright);
  transform: translateY(-4px) scale(1.04);
}

/* Drop line — utility sans, instantly scannable */
.drop-line {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 19px;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.9);
  line-height: 1.3;
  margin-bottom: 22px;
  letter-spacing: -0.005em;
  transition: color 0.4s ease;
}
.drop-zone:hover .drop-line,
.drop-zone.drag-over .drop-line {
  color: var(--text);
}

.drop-rule {
  width: 150px;
  height: 1px;
  margin: 0 auto 28px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(212, 165, 116, 0.42) 28%,
    rgba(212, 165, 116, 0.42) 72%,
    transparent 100%
  );
}

/* Browse link — Inter, scannable, single underline + arrow */
.browse-link {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(212, 165, 116, 0.42);
  padding: 4px 0 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  transition:
    gap 0.3s cubic-bezier(0.19, 1, 0.22, 1),
    border-color 0.25s ease,
    color 0.25s ease;
}
.browse-link:hover {
  gap: 12px;
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}
.browse-arrow {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);
}

.drop-caption {
  margin-top: 38px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}


/* ═══════════════════════════════════════
   PARSING — the composition (margin-numeraled list)
═══════════════════════════════════════ */
.drop-parsing {
  padding: 52px 52px 58px;
  text-align: left;
  position: relative;
}
.parsing-label {
  font-family: var(--font-display);
  font-size: 17px;
  color: rgba(212, 165, 116, 0.82);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
  line-height: 1;
}
.parsing-label em {
  font-style: italic;
}
.parsing-sweep {
  position: relative;
  height: 1px;
  margin-bottom: 32px;
  background: rgba(212, 165, 116, 0.12);
  overflow: hidden;
}
.parsing-sweep::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(212, 165, 116, 0.2) 28%,
    rgba(245, 196, 105, 0.58) 50%,
    rgba(212, 165, 116, 0.2) 72%,
    transparent 100%
  );
  animation: parseSweep 2.8s ease-in-out infinite;
}
@keyframes parseSweep {
  0%   { left: -40%; }
  100% { left: 130%; }
}

.parsing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: parselist;
}
.parsing-line {
  counter-increment: parselist;
  position: relative;
  padding-left: 52px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    color 0.5s ease;
}
.parsing-line.visible {
  opacity: 1;
  transform: translateY(0);
}
.parsing-line:last-child {
  margin-bottom: 0;
}
.parsing-line::before {
  content: counter(parselist, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
  opacity: 0.78;
  letter-spacing: 0.02em;
  transition: color 0.5s ease, opacity 0.5s ease;
}
.parsing-line.done {
  color: rgba(148, 163, 184, 0.58);
}
.parsing-line.done::before {
  color: rgba(212, 165, 116, 0.32);
  opacity: 0.55;
}


/* ═══════════════════════════════════════
   ERROR — stripped of chrome
═══════════════════════════════════════ */
.drop-error {
  padding: 56px 52px;
  text-align: left;
}
.error-rule {
  width: 140px;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(239, 68, 68, 0.6) 0%,
    rgba(239, 68, 68, 0.06) 100%
  );
  margin-bottom: 22px;
}
.error-label {
  font-family: var(--font-display);
  font-size: 19px;
  color: rgba(239, 68, 68, 0.85);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
  line-height: 1;
}
.error-label em {
  font-style: italic;
}
.error-text {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.65;
  margin-bottom: 28px;
}
.error-link {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: rgba(239, 68, 68, 0.88);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid rgba(239, 68, 68, 0.42);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    gap 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.error-link span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.error-link:hover {
  color: #FCA5A5;
  border-color: #FCA5A5;
  gap: 10px;
}
.error-link:hover span {
  transform: translateX(-3px);
}


/* ═══════════════════════════════════════
   FILE RECEIPT — footnote between fading gold rules
═══════════════════════════════════════ */
.file-info {
  margin-top: 64px;
  padding: 0;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.receipt-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(212, 165, 116, 0.3) 20%,
    rgba(212, 165, 116, 0.3) 80%,
    transparent 100%
  );
}
.receipt-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 2px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.receipt-em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
}
.receipt-label {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 165, 116, 0.8);
}
.receipt-dot {
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}
.file-name {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
}
.file-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 12px;
  transition: color 0.25s ease, transform 0.2s ease;
}
.file-remove:hover {
  color: var(--coral);
  transform: scale(1.08);
}


/* ═══════════════════════════════════════
   CONTINUE — link CTA matching hero vocabulary
═══════════════════════════════════════ */
.upload-continue {
  margin-top: 56px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
.upload-continue.revealed {
  opacity: 1;
  transform: translateY(0);
}
.continue-link {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 27px;
  font-weight: 400;
  color: var(--gold);
  background: none;
  border: 1px solid rgba(212, 165, 116, 0.32);
  padding: 20px 48px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  transition:
    gap 0.45s cubic-bezier(0.19, 1, 0.22, 1),
    border-color 0.45s ease,
    color 0.45s ease,
    background 0.45s ease,
    box-shadow 0.45s ease,
    transform 0.45s ease,
    letter-spacing 0.45s ease;
}
.continue-link:hover:not(:disabled) {
  gap: 24px;
  border-color: rgba(212, 165, 116, 0.88);
  color: var(--gold-bright);
  background: rgba(212, 165, 116, 0.05);
  box-shadow:
    0 0 22px rgba(212, 165, 116, 0.22),
    0 0 64px rgba(212, 165, 116, 0.10),
    inset 0 0 32px rgba(212, 165, 116, 0.06);
  transform: translateY(-2px);
  letter-spacing: 0.01em;
}
.continue-link:disabled {
  opacity: 0.45;
  cursor: wait;
}
.continue-arrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 27px;
  line-height: 1;
}


/* ═══════════════════════════════════════
   JD MARGINALIA
═══════════════════════════════════════ */
.jd-section {
  margin-top: 88px;
  text-align: center;
}
.jd-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(212, 165, 116, 0.78);
  letter-spacing: 0.005em;
  margin: 0 0 0 0;
}
.jd-field {
  margin-top: 36px;
  text-align: left;
}
.jd-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(212, 165, 116, 0.3) 16%,
    rgba(212, 165, 116, 0.3) 84%,
    transparent 100%
  );
}
.jd-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text);
  background: none;
  border: none;
  padding: 22px 24px;
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
  outline: none;
  letter-spacing: 0;
}
.jd-textarea::placeholder {
  color: rgba(248, 250, 252, 0.32);
  font-style: normal;
}
.jd-hint {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
  padding: 0 24px;
  text-align: left;
  letter-spacing: 0.005em;
  line-height: 1.5;
}


/* ═══════════════════════════════════════
   OR DIVIDER + DEMO LINK
═══════════════════════════════════════ */
.or-divider {
  margin: 80px auto 30px;
  width: 100%;
  max-width: 260px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
}
.or-divider::before {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(212, 165, 116, 0.26) 100%
  );
}
.or-divider::after {
  background: linear-gradient(
    to right,
    rgba(212, 165, 116, 0.26) 0%,
    transparent 100%
  );
}
.or-label {
  font-family: var(--font-display);
  font-size: 16px;
  color: rgba(212, 165, 116, 0.68);
  line-height: 1;
}
.or-label em {
  font-style: italic;
}

.alt-paths {
  display: flex;
  justify-content: center;
}
/* Demo link — Inter utility alt path */
.demo-link {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.56);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  letter-spacing: 0.005em;
  transition: color 0.3s ease, gap 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.demo-link:hover {
  color: var(--gold);
  gap: 12px;
}
.demo-arrow {
  font-family: var(--font-body);
  font-size: 15px;
  display: inline-block;
  transform: translateY(-1px);
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.demo-link:hover .demo-arrow {
  transform: translateY(-1px) translateX(3px);
}


/* ═══════════════════════════════════════
   REVEAL — editorial tempo
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.95s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.95s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}


/* ═══════════════════════════════════════
   DEV CORNER — localhost-only skip-to-interview button
   Hidden by default via .hidden; JS removes it when hostname is local.
   Mobile hidden — we test dev shortcuts on desktop.
═══════════════════════════════════════ */
.dev-corner {
  position: fixed;
  top: 76px;
  right: 24px;
  width: 220px;
  background: rgba(15, 14, 24, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 165, 116, 0.22);
  padding: 14px 16px;
  z-index: 200;
}
.dev-corner-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: rgba(212, 165, 116, 0.7);
  margin-bottom: 10px;
  line-height: 1;
}
.dev-corner-label em { font-style: italic; }
.dev-corner-btn {
  width: 100%;
  background: none;
  border: 1px solid rgba(212, 165, 116, 0.3);
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-body);
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.dev-corner-btn:hover {
  color: var(--gold);
  border-color: rgba(212, 165, 116, 0.6);
  background: rgba(212, 165, 116, 0.05);
}
.dev-corner-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}
.dev-corner-sub {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 165, 116, 0.6);
  line-height: 1.3;
}
@media (max-width: 768px) {
  .dev-corner { display: none !important; }
}


/* ═══════════════════════════════════════
   FOOTER TWEAKS
═══════════════════════════════════════ */
.footer-brand {
  display: inline-flex;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ═══════════════════════════════════════
   MOBILE  (≤ 768px)
═══════════════════════════════════════ */
@media (max-width: 768px) {
  body::after { display: none; }

  .upload-page {
    padding: 88px 22px 72px;
  }
  .upload-page::before {
    animation: none;
    background: radial-gradient(
      ellipse 72% 46% at 50% 36%,
      rgba(212, 165, 116, 0.11) 0%,
      rgba(212, 165, 116, 0.05) 22%,
      rgba(212, 165, 116, 0.015) 46%,
      transparent 70%
    );
  }

  .upload-masthead {
    margin-bottom: 44px;
  }
  .masthead-line {
    gap: 12px;
    margin-bottom: 14px;
  }
  .masthead-numeral { font-size: 22px; }
  .masthead-rule { max-width: 55px; }
  .masthead-label {
    font-size: 9px;
    letter-spacing: 0.2em;
  }
  .masthead-tempo {
    padding-left: 34px;
    font-size: 12.5px;
    gap: 10px;
  }

  .upload-headline {
    font-size: clamp(38px, 11.5vw, 60px);
    margin-bottom: 40px;
  }
  .uph-line-2 {
    padding-left: 18px;
  }

  .drop-zone {
    padding: 56px 22px 44px;
  }
  .drop-zone::before {
    inset: 5px;
  }
  .drop-icon {
    margin-bottom: 20px;
  }
  .drop-icon svg {
    width: 44px;
    height: 44px;
  }
  .drop-line {
    font-size: 17px;
    margin-bottom: 18px;
  }
  .drop-rule {
    width: 100px;
    margin-bottom: 22px;
  }
  .browse-link {
    font-size: 13px;
    gap: 7px;
  }
  .browse-arrow { font-size: 14px; }
  .drop-caption {
    margin-top: 28px;
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .drop-parsing { padding: 38px 26px 44px; }
  .drop-error { padding: 42px 26px; }

  .parsing-label { font-size: 15px; }
  .parsing-sweep { margin-bottom: 26px; }
  .parsing-line {
    padding-left: 42px;
    font-size: 14px;
    margin-bottom: 14px;
  }
  .parsing-line::before { font-size: 15px; }

  .error-label { font-size: 17px; }
  .error-text { font-size: 14px; }
  .error-link { font-size: 16px; }

  .file-info { margin-top: 26px; }
  .receipt-line {
    font-size: 12.5px;
    gap: 8px;
    padding: 2px 6px;
  }
  .receipt-em { font-size: 18px; }
  .receipt-label {
    font-size: 9px;
    letter-spacing: 0.2em;
  }
  .file-name { font-size: 13px; max-width: 180px; }
  .file-size { font-size: 12px; }
  .file-remove { font-size: 20px; padding-left: 8px; }

  .upload-continue { margin-top: 36px; }
  .continue-link {
    font-size: 22px;
    gap: 12px;
  }
  .continue-arrow { font-size: 22px; }

  .jd-section { margin-top: 68px; }
  .jd-field { margin-top: 26px; }
  .jd-textarea {
    font-size: 14px;
    padding: 18px 18px;
    min-height: 120px;
  }
  .jd-hint {
    font-size: 12px;
    padding: 0 18px;
    margin-top: 12px;
  }

  .or-divider { margin: 64px auto 26px; max-width: 220px; }
  .or-label { font-size: 15px; }

  .demo-link { font-size: 13px; }
}


/* ═══════════════════════════════════════
   SMALL MOBILE  (≤ 480px)
═══════════════════════════════════════ */
@media (max-width: 480px) {
  .upload-page { padding: 78px 18px 90px; }
  .upload-headline { font-size: 42px; }

  .drop-zone { padding: 48px 18px 38px; }
  .drop-icon svg { width: 40px; height: 40px; }
  .drop-line { font-size: 16px; }
  .drop-rule { width: 90px; }

  .receipt-line { font-size: 12px; }
  .file-name { max-width: 140px; }
}


/* ═══════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .upload-page::before,
  .drop-zone.drag-over,
  .parsing-sweep::after,
  .upload-headline,
  .upload-headline .uph-line-2 em,
  .reveal {
    animation: none !important;
    transition: none !important;
  }
  .upload-headline,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .upload-headline .uph-line-2 em {
    color: var(--gold) !important;
  }
  .drop-zone.drag-over {
    border: 2px solid rgba(212, 165, 116, 0.55) !important;
    background: rgba(212, 165, 116, 0.04) !important;
  }
}
