/* Perchia landing, "Cover Story" pushed to a launch-page scale.
   The idea: a whole invented wardrobe is laid out on the paper like a flat-lay, "¿A dónde vas?" is answered, and the
   page shows Perchia looking at every piece, setting most aside with a reason, lifting four and dressing an
   illustrated person with them; then the drawing develops into a picture, washed in that person's own colour.
   The intro tells it twice, once for her and once for him (the page turns between them), then rests. Any tap or
   scroll skips to the finished state. Paper, ink and one vermilion kept; Instrument Serif and Inter; a person's
   colour is the only glow. */
:root {
  --paper: #FAF8F4; --paper-2: #F2EEE6; --surface: #FFFFFF; --ink: #111111; --ink-2: #3A3733; --muted: #655F59;
  --rule: #E4DFD7; --rule-2: #CFC8BC; --accent: #C8321A; --on-accent: #FFFFFF; --tint: #D9894A;
  --shadow: 40, 22, 10; --shadow-a: .22;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .9, .3, 1); --ease-in-out: cubic-bezier(.65, 0, .3, 1);
  --figw: clamp(240px, 24vw, 320px); --tileh: clamp(104px, 14.8vh, 150px);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0F0E0D; --paper-2: #181614; --surface: #1C1A18; --ink: #F4F1EA; --ink-2: #CFC8BD; --muted: #A09890;
  --rule: #2C2926; --rule-2: #3D3935; --accent: #FF5A3C; --on-accent: #0F0E0D; --shadow: 0, 0, 0; --shadow-a: .55; color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #0F0E0D; --paper-2: #181614; --surface: #1C1A18; --ink: #F4F1EA; --ink-2: #CFC8BD; --muted: #A09890;
  --rule: #2C2926; --rule-2: #3D3935; --accent: #FF5A3C; --on-accent: #0F0E0D; --shadow: 0, 0, 0; --shadow-a: .55; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1; text-wrap: balance; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 32px, 1240px); margin-inline: auto; }
@media (min-width: 760px) { .wrap { width: min(100% - 80px, 1240px); } }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px;
  padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 0; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -14px var(--accent); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.mail { font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-2); padding-bottom: 1px; }
.mail:hover { border-color: var(--ink); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* masthead */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.logo { height: 30px; width: auto; overflow: visible; display: block; }
.logo text { font-family: var(--serif); fill: var(--ink); }
.logo .h { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; }
.logo .b { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linejoin: round; }
.top .beta { display: flex; align-items: center; gap: 18px; }
.top .beta .label { display: none; }
@media (min-width: 700px) { .top .beta .label { display: block; } }
.langs { display: inline-flex; gap: 2px; font: 600 12px/1 var(--sans, system-ui); letter-spacing: .08em; }
.langs a { padding: 6px 7px; border-radius: 999px; color: var(--muted, #6B6560); text-decoration: none; }
.langs a[aria-current="true"] { color: var(--ink, #111); box-shadow: inset 0 0 0 1px currentColor; }

/* the stage */
.stage { position: relative; display: grid; gap: 12px 0; padding-block: 8px 18px; }
.ask { display: grid; gap: 10px; align-items: end; grid-template-columns: minmax(0, 1fr); transition: opacity .45s var(--ease); }
@media (min-width: 900px) { .ask { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px 32px; } }
.q { font-family: var(--serif); font-size: clamp(30px, 3.5vw, 48px); line-height: 1.02; letter-spacing: -.015em; }
.q .big { display: none; }
.q .said { display: block; }
.q .said::before { content: "“"; color: var(--muted); }
.q .said::after { content: "”"; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-self: end; }
@media (min-width: 900px) { .chips { justify-content: flex-end; } }
.chips li { font-size: 13px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--rule-2); border-radius: 999px; padding: 6px 12px; background: var(--paper); }

.closet { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; transition: opacity .45s var(--ease); }
.closet.away { display: none; }
.closet[data-who="m"] { --tint: #7593B8; }
.closet[data-who="f"] { --tint: #D9894A; }
.closet.dim, .ask.dim, .verdict.dim { opacity: 0; }
.tile { position: relative; appearance: none; border: 1px solid var(--rule); background: var(--surface); border-radius: 3px; padding: 8%; margin: 0; cursor: default;
  aspect-ratio: 120 / 130; display: block; min-width: 0; transition: opacity .7s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, filter .7s var(--ease); }
.tile > svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 7px rgba(var(--shadow), var(--shadow-a))); transition: opacity .6s var(--ease), filter .6s var(--ease); }
.tile.out { opacity: .42; filter: saturate(.55); }
.tile.gone > svg { opacity: .16; filter: saturate(0); }
.tile.gone { border-style: dashed; border-color: var(--rule-2); }
.tile.look { transform: scale(1.045); box-shadow: 0 0 0 2px var(--accent); z-index: 2; transition-duration: .18s; }
.tile.pick { transform: translateY(-5px); box-shadow: 0 16px 28px -16px rgba(var(--shadow), .6), 0 0 0 1.5px var(--accent); border-color: var(--accent); z-index: 2; }
.tag { position: absolute; left: 50%; bottom: 7px; transform: translate(-50%, 6px); max-width: none; z-index: 4; font-size: 12px; font-weight: 500; line-height: 1.25; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: 999px; padding: 4px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease); box-shadow: 0 6px 16px -8px rgba(var(--shadow), .5); }
.tag:empty { display: none; }
.tile.said .tag, .tile.out:hover .tag, .tile.out:focus-visible .tag { opacity: 1; transform: translate(-50%, 0); }
.tile.out:hover, .tile.out:focus-visible { opacity: .9; filter: none; }
@media (max-width: 899px) { .tag { white-space: normal; overflow: visible; text-overflow: clip; max-width: calc(100% - 6px); font-size: 11px; line-height: 1.2; border-radius: 9px; padding: 3px 7px; } }
@media (min-width: 600px) and (max-width: 899px) { .closet { grid-template-columns: repeat(6, minmax(0, 1fr)); } .person { grid-row: 1 / 5; } }

.person { position: absolute; inset: 0; z-index: 3; display: block; pointer-events: none; min-height: 0; }
.wash { position: absolute; inset: -6% 0; background: radial-gradient(42% 40% at 50% 52%, color-mix(in srgb, var(--tint) 34%, var(--paper)) 0%, color-mix(in srgb, var(--tint) 14%, var(--paper)) 45%, transparent 72%); opacity: 1; transition: opacity 1.4s var(--ease); }
.backdrop { position: absolute; inset: 0; background: radial-gradient(34% 44% at 50% 52%, var(--paper) 40%, transparent 100%); opacity: .8; }
@media (min-width: 900px) { .backdrop { display: none; } }
.figure { position: relative; height: calc(100% - 52px); width: auto; max-width: 100%; display: block; margin: 0 auto; overflow: visible; filter: drop-shadow(0 26px 30px rgba(var(--shadow), .28)); }
.fig-sketch { transition: filter 1.4s var(--ease), opacity 1.4s var(--ease); }
.fit { transform-box: fill-box; transform-origin: 50% 20%; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.fit.off { visibility: hidden; }
.fit.wait { opacity: 0; transform: translateY(-10px) scale(.985); }
.made { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule-2);
  border-radius: 14px; padding: 5px 11px; max-width: calc(100% - 8px); text-align: center; line-height: 1.3; transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: auto; }
@media (min-width: 900px) { .closet { grid-template-columns: repeat(3, minmax(0, 1fr)) var(--figw) repeat(3, minmax(0, 1fr)); grid-auto-rows: var(--tileh); gap: 10px; }
  .tile { aspect-ratio: auto; height: var(--tileh); }
  .person { position: relative; inset: auto; height: 100%; grid-column: 4; grid-row: 1 / 5; }
  .tile:nth-child(1) { grid-column: 1; grid-row: 1; }
  .tile:nth-child(2) { grid-column: 2; grid-row: 1; }
  .tile:nth-child(3) { grid-column: 3; grid-row: 1; }
  .tile:nth-child(4) { grid-column: 5; grid-row: 1; }
  .tile:nth-child(5) { grid-column: 6; grid-row: 1; }
  .tile:nth-child(6) { grid-column: 7; grid-row: 1; }
  .tile:nth-child(7) { grid-column: 1; grid-row: 2; }
  .tile:nth-child(8) { grid-column: 2; grid-row: 2; }
  .tile:nth-child(9) { grid-column: 3; grid-row: 2; }
  .tile:nth-child(10) { grid-column: 5; grid-row: 2; }
  .tile:nth-child(11) { grid-column: 6; grid-row: 2; }
  .tile:nth-child(12) { grid-column: 7; grid-row: 2; }
  .tile:nth-child(13) { grid-column: 1; grid-row: 3; }
  .tile:nth-child(14) { grid-column: 2; grid-row: 3; }
  .tile:nth-child(15) { grid-column: 3; grid-row: 3; }
  .tile:nth-child(16) { grid-column: 5; grid-row: 3; }
  .tile:nth-child(17) { grid-column: 6; grid-row: 3; }
  .tile:nth-child(18) { grid-column: 7; grid-row: 3; }
  .tile:nth-child(19) { grid-column: 1; grid-row: 4; }
  .tile:nth-child(20) { grid-column: 2; grid-row: 4; }
  .tile:nth-child(21) { grid-column: 3; grid-row: 4; }
  .tile:nth-child(22) { grid-column: 5; grid-row: 4; }
  .tile:nth-child(23) { grid-column: 6; grid-row: 4; }
  .tile:nth-child(24) { grid-column: 7; grid-row: 4; }
}
.verdict { display: grid; gap: 10px 24px; align-items: baseline; padding-top: 6px; transition: opacity .45s var(--ease); }
.line { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; max-width: 60ch; color: var(--ink); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.line .sign { font-style: normal; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-left: 12px; white-space: nowrap; }
.plans { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plans .label { margin-right: 4px; }
.plan { appearance: none; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.plan:hover { border-color: var(--ink); color: var(--ink); }
.plan[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan.again { border-style: dashed; }
.honest { font-size: 13px; color: var(--muted); }

/* playing states: before the moment, the question is big and the closet is whole; which closet shows follows html[data-who] */
.play .closet[data-who="f"] { display: grid; }
.play .closet[data-who="m"] { display: none; }
.play[data-who="m"] .closet[data-who="f"] { display: none; }
.play[data-who="m"] .closet[data-who="m"] { display: grid; }
.play .q .big { display: block; }
.play .q .said { display: none; }
.play .chips li, .play .line, .play .made, .play .wash { opacity: 0; }
.play .chips li { transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.play .line { transform: translateY(10px); }
.play .made { transform: translate(-50%, 8px); }
.play .tile.out, .play .tile.gone { opacity: 1; filter: none; }
.play .tile.gone > svg { opacity: 1; filter: drop-shadow(0 6px 7px rgba(var(--shadow), var(--shadow-a))); }
.play .tile.gone { border-style: solid; border-color: var(--rule); }
.play .fig-sketch { filter: saturate(0) contrast(.9); opacity: .72; }
.play .figure { opacity: 0; transition: opacity .8s var(--ease); }
.play .person.shown .figure { opacity: 1; }
.play .person.shown .fig-sketch.alive { filter: none; opacity: 1; }
.play .tile.look { opacity: 1; }
.play .tile.set { opacity: .42; filter: saturate(.55); }
.play .tile.pick { opacity: 1; filter: none; }
.play .tile.flown > svg { opacity: .16; filter: saturate(0); }
.play .tile.flown { border-style: dashed; border-color: var(--rule-2); transform: none; box-shadow: none; }
.play .q.answered .big { display: none; }
.play .q.answered .said { display: block; }
.play .chips.shown li, .play .line.shown, .play .made.shown, .play .wash.shown { opacity: 1; transform: none; }
.play .made.shown { transform: translateX(-50%); }
.rise { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.flyer { position: absolute; z-index: 20; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.flyer svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 22px rgba(var(--shadow), .35)); }

/* below the stage */
.pitch { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 80px); display: grid; gap: 28px 48px; align-items: end; }
@media (min-width: 900px) { .pitch { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.pitch h1 { font-size: clamp(50px, 8.6vw, 128px); line-height: .96; letter-spacing: -.025em; }
.pitch h1 em { font-style: italic; color: var(--accent); }
.pitch .side { display: grid; gap: 22px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.facts b { font-weight: 600; color: var(--ink); }

.how { border-top: 1px solid var(--rule); padding-block: clamp(48px, 7vw, 96px); display: grid; gap: 40px; }
.how h2 { font-size: clamp(36px, 5vw, 68px); max-width: 16ch; }
.three { display: grid; gap: 28px; }
@media (min-width: 820px) { .three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.step { display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--ink); padding-top: 18px; }
.step .n { font-family: var(--serif); font-size: 15px; letter-spacing: .04em; color: var(--accent); }
.step h3 { font-size: clamp(26px, 2.4vw, 34px); }
.step p { color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.step .ex { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); }
.step .ex svg { width: 46px; height: 50px; flex: none; filter: drop-shadow(0 3px 4px rgba(var(--shadow), var(--shadow-a))); }
.step .ex span { font-size: 14px; color: var(--ink-2); }
.step .ex .sw { display: flex; gap: 4px; flex: none; }
.step .ex .sw i { width: 18px; height: 26px; border-radius: 2px; display: block; }
.step .ex em { font-family: var(--serif); font-style: normal; font-size: 19px; color: var(--ink); }
.step .ex em mark { background: none; color: var(--accent); }

.private { background: var(--ink); color: var(--paper); }
.private .wrap { display: grid; gap: 24px 48px; padding-block: clamp(48px, 7vw, 96px); align-items: start; }
@media (min-width: 900px) { .private .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.private h2 { font-size: clamp(36px, 5vw, 68px); }
.private ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 18px; max-width: 40ch; }
.private li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; color: color-mix(in srgb, var(--paper) 86%, transparent); text-wrap: pretty; }
.private li::before { content: ""; width: 7px; height: 7px; margin-top: 10px; background: var(--accent); border-radius: 50%; }

.beta-end { padding-block: clamp(64px, 9vw, 128px); display: grid; gap: 26px; justify-items: start; border-bottom: 1px solid var(--rule); }
.beta-end h2 { font-size: clamp(44px, 7.4vw, 108px); letter-spacing: -.025em; line-height: .98; max-width: 14ch; }
.beta-end h2 em { font-style: italic; color: var(--accent); }
.beta-end p { font-size: 18px; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 44px; font-size: 14px; color: var(--muted); }

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

/* System font fallback until self-hosted Instrument Serif and Inter are added. */
.swatch-1 { background: #B98A5A; }
.swatch-2 { background: #8A4B2A; }
.swatch-3 { background: #D9A441; }
.swatch-4 { background: #6B7A3A; }
.swatch-5 { background: #1F2A44; }
.closets { min-width: 0; }
