/* FilmDrop landing — "Contact sheet". The photograph leads; type and controls stay at the edges. */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.topbar-cta {
  display: none;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--on-ember);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 560px) {
  .topbar-cta {
    display: inline-block;
  }
}

/* ---------- Hero: viewfinder + film strip ---------- */

.viewer {
  --split: 50%;
  position: relative;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  height: min(50svh, 100vw);
  min-height: 300px;
  overflow: hidden;
  background: var(--surface);
}

@media (min-width: 720px) {
  .viewer {
    height: clamp(340px, 52svh, 720px);
  }
}

.viewer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.viewer-film {
  opacity: 0;
  transition: opacity 0.18s ease-in-out;
}

.viewer-film.is-on {
  opacity: 1;
}

.viewer-original {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.viewer-tag {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(11, 11, 13, 0.58);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f4f0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
}

.viewer-tag-left {
  left: var(--gutter);
}

.viewer-tag-right {
  right: var(--gutter);
}

.viewer-tag b {
  font-weight: 700;
  color: var(--ember);
  margin-right: 6px;
}

.viewer-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 1px;
  background: rgba(245, 244, 240, 0.9);
  z-index: 2;
  pointer-events: none;
}

.viewer-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.58)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23F5F4F0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 14l-6 6 6 6M24 14l6 6-6 6'/%3E%3C/svg%3E")
    center / 40px no-repeat;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 244, 240, 0.9);
}

.viewer-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}

.viewer-range:focus-visible + .viewer-focus {
  opacity: 1;
}

.viewer-focus {
  position: absolute;
  inset: 4px;
  z-index: 2;
  border: 2px solid var(--ember);
  opacity: 0;
  pointer-events: none;
}

/* Film strip */
.strip {
  --hole: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='10'%3E%3Crect x='7' y='1' width='12' height='8' rx='2' fill='%230B0B0D'/%3E%3C/svg%3E");
  background: var(--surface);
  max-width: 1760px;
  margin: 0 auto;
}

.strip::before,
.strip::after {
  content: "";
  display: block;
  height: 10px;
  background: var(--hole) left center repeat-x;
}

.strip::before {
  padding-top: 7px;
  box-sizing: content-box;
  background-origin: content-box;
  background-clip: content-box;
}

.strip::after {
  padding-bottom: 7px;
  box-sizing: content-box;
  background-origin: content-box;
  background-clip: content-box;
}

.strip-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 8px;
}

@media (min-width: 860px) {
  .strip-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

.frames {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter);
}

.frames::-webkit-scrollbar {
  display: none;
}

.frame {
  flex: none;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.frame img {
  width: min(76px, calc((100vw - 2 * var(--gutter) - 40px) / 5));
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.18s ease-in-out;
}

@media (min-width: 720px) {
  .frame img {
    width: 96px;
  }
}

.frame:hover {
  color: var(--ink);
}

.frame[aria-pressed="true"] {
  color: var(--ink);
}

.frame[aria-pressed="true"] img {
  outline-color: var(--ember);
}

.frame:focus-visible {
  outline: none;
}

.frame:focus-visible img {
  outline-color: var(--ink);
}

.scenes {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.scenes-label {
  margin-right: 8px;
}

.scene {
  border: 0;
  background: none;
  padding: 6px 8px;
  color: var(--ink-muted);
  font: inherit;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.scene:hover {
  color: var(--ink);
}

.scene[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ember);
}

.rebate {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin: 0;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.rebate-note {
  display: none;
}

@media (min-width: 720px) {
  .rebate-note {
    display: inline;
  }
}

.rebate strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Intro ---------- */

.intro {
  display: grid;
  gap: 28px;
  padding-block: clamp(28px, 3.5vw, 44px) clamp(56px, 9vw, 120px);
}

@media (min-width: 900px) {
  .intro {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: start;
  }

  .intro .lead {
    margin-top: 10px;
  }
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(46px, 7.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34em;
}

.intro .actions {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

@media (min-width: 480px) {
  .intro .actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }
}

.pledge {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--sage);
}

/* ---------- Plates (feature rows) ---------- */

.plate {
  display: grid;
  gap: 28px;
  padding-block: clamp(48px, 8vw, 104px);
  border-top: 1px solid var(--hairline);
}

@media (min-width: 900px) {
  .plate {
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    align-items: center;
  }

  .plate-figure {
    grid-column: 1 / span 7;
  }

  .plate-text {
    grid-column: 8 / span 5;
    padding-left: 32px;
  }

  .plate.is-flipped .plate-figure {
    grid-column: 6 / span 7;
    order: 2;
  }

  .plate.is-flipped .plate-text {
    grid-column: 1 / span 5;
    padding-left: 0;
    padding-right: 32px;
    order: 1;
  }
}

.plate-figure {
  margin: 0;
  min-width: 0;
}

.plate-figure > img,
.photo {
  width: 100%;
  border-radius: var(--radius-photo);
}

.h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.body {
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 36em;
}

.body:last-child {
  margin-bottom: 0;
}

.fine {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.textlink {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ember);
  padding-bottom: 2px;
}

.textlink:hover {
  color: var(--ember);
}

/* Plate 1: what is saved */
.saved {
  position: relative;
}

.saved-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.saved-pair figure {
  margin: 0;
}

.saved-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.cap {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
}

/* Plate 2: studio */
.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.swatches span {
  display: block;
  height: 56px;
  border-radius: 6px;
}

.tools {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
}

/* Plate 3: drop card */
.dropcard-stage {
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 56px);
  border-radius: var(--radius-photo);
  background: var(--surface);
}

.dropcard {
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 16px;
  background: #f7f5f0;
  color: #141416;
}

.dropcard-photo {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.dropcard-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropcard-photo img + img {
  clip-path: inset(0 50% 0 0);
}

.dropcard-photo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #f7f5f0;
}

.dropcard-title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.dropcard-code {
  font-family: var(--mono);
  font-size: 11px;
  color: #6b6862;
}

.dropcard-dna {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.dropcard-dna span {
  height: 18px;
  border-radius: 3px;
}

.dropcard-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.dropcard-recipe {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: #6b6862;
}

.dropcard-qr {
  flex: none;
  width: 84px;
  height: 84px;
  padding: 6px;
  border-radius: 6px;
  background: #ffffff;
}

/* Plate 4: lock screen */
.lockfig {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px) 20px 0;
  border-radius: var(--radius-photo);
  background: var(--surface);
  overflow: hidden;
}

.lockfig svg {
  width: min(100%, 440px);
  height: auto;
  display: block;
}

.steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 26px 1fr;
  font-size: 15.5px;
  color: var(--ink);
}

.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ember);
  padding-top: 2px;
}

/* ---------- Archive index ---------- */

.archive {
  padding-block: clamp(48px, 8vw, 104px);
  border-top: 1px solid var(--hairline);
}

.archive-head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .archive-head {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
  }

  .archive-head .h2 {
    margin: 0;
  }
}

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

@media (min-width: 900px) {
  .archive-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.archive-grid li {
  padding: 16px 12px 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.archive-grid code {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.archive-grid span {
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Paper band: free and Pro ---------- */

.band {
  padding-block: clamp(56px, 9vw, 120px);
}

.band-head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .band-head {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
  }

  .band-head .h2 {
    margin: 0;
  }
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.ledger th,
.ledger td {
  text-align: left;
  vertical-align: top;
  padding: 13px 12px 13px 0;
  border-bottom: 1px solid var(--hairline);
}

.ledger thead th {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  border-bottom-color: var(--ink);
}

.ledger thead th:last-child {
  color: var(--foil);
}

.ledger tbody th {
  font-weight: 500;
  width: 46%;
}

.ledger td {
  width: 27%;
  color: var(--ink);
}

.ledger .no {
  color: var(--ink-muted);
}

.ledger .yes {
  color: var(--sage);
  font-weight: 600;
}

.band .body {
  color: var(--ink-muted);
}

.band-note {
  margin: 24px 0 0;
  max-width: 44em;
  font-size: 15.5px;
  color: var(--ink);
}

/* ---------- Founder note ---------- */

.note {
  padding-block: clamp(64px, 10vw, 136px);
}

.note-inner {
  max-width: 760px;
}

.note-text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.note-text + .note-text {
  margin-top: 0.9em;
}

.note-sign {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---------- Closing ---------- */

.closing {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding-block: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--hairline);
}

.closing .brand-mark {
  width: 56px;
  height: 56px;
}

.closing .h2 {
  margin: 0;
}

.closing .fine {
  margin: 0;
}

.site-footer {
  margin-top: 0;
  padding-bottom: 40px;
}

/* ---------- Korean ---------- */

html[lang="ko"] .display {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(38px, 6.2vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

html[lang="ko"] .h2,
html[lang="ko"] .dropcard-title {
  font-family: var(--sans);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

html[lang="ko"] .note-text {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

html[lang="ko"] .body,
html[lang="ko"] .lead,
html[lang="ko"] .band-note {
  word-break: keep-all;
}
