:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #20251f;
    color: #f4eee4;
    font-synthesis: none;
    --serif: Fraunces, Iowan Old Style, Baskerville, Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 0; min-height: 100%; background: #080a08; }
body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.experience {
    --wash-a: #20251f;
    --wash-b: #b99aa0;
    --wash-c: #c79654;
    min-height: 100svh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--wash-c), transparent 5%) 0, transparent 38%),
        radial-gradient(circle at 18% 82%, color-mix(in srgb, var(--wash-b), transparent 6%) 0, transparent 46%),
        linear-gradient(125deg, var(--wash-a), #20251f 65%);
    transition: background 700ms ease;
}

.experience::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
    z-index: 20;
}

.brandbar {
    position: fixed;
    inset: 0 0 auto;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(18px, 4vw, 64px);
    z-index: 30;
    background: linear-gradient(#11181288, transparent);
}

.wordmark {
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    text-decoration: none;
}
.wordmark i { font-weight: 400; opacity: .72; }
.step { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; }
.eyebrow { margin: 0 0 14px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }

.palette-stage, .people-stage, .summary-stage, .empty-stage {
    position: relative;
    min-height: 100svh;
    padding: max(110px, 12vh) clamp(20px, 6vw, 100px) clamp(36px, 7vh, 84px);
}

.palette-stage { display: grid; grid-template-columns: minmax(280px, .78fr) 1.22fr; align-items: center; gap: 5vw; }
.editorial-copy { max-width: 640px; position: relative; z-index: 2; }
.editorial-copy h1, .summary-intro h1, .empty-stage h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3.25rem, 7.6vw, 8.2rem);
    line-height: .86;
    letter-spacing: -.055em;
    font-weight: 400;
}
.editorial-copy p:last-child, .summary-intro > p:last-child, .empty-stage p {
    max-width: 42ch;
    font-size: clamp(.95rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: #f4eee4c9;
}

.pigments {
    display: grid;
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    align-items: center;
    gap: clamp(10px, 1.5vw, 24px);
    min-height: 68vh;
}
.pigment {
    position: relative;
    aspect-ratio: .68;
    border: 0;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(170deg, #ffffff38, transparent 22%, #1115 74%),
        radial-gradient(circle at 62% 24%, color-mix(in srgb, var(--pigment), white 24%), var(--pigment) 58%, color-mix(in srgb, var(--pigment), black 27%));
    transform: translateY(var(--drop, 0)) rotate(var(--turn, 0));
    transition: transform 350ms cubic-bezier(.2,.8,.2,1), filter 250ms ease, border-radius 350ms ease;
    border-radius: 52% 48% 62% 38% / 35% 54% 46% 65%;
    box-shadow: inset 0 0 30px #ffffff24, 0 25px 55px #1115;
}
.pigment:nth-child(2n) { --drop: 42px; --turn: 2deg; }
.pigment:nth-child(3n) { --drop: -34px; --turn: -2deg; }
.pigment:nth-child(n+6) { aspect-ratio: .82; }
.pigment span { position: absolute; inset: auto 7px 14px; font-size: .64rem; letter-spacing: .11em; text-transform: uppercase; text-shadow: 0 1px 8px #000; }
.pigment:hover { filter: saturate(1.12) brightness(1.06); transform: translateY(calc(var(--drop, 0px) - 8px)) scale(1.025) rotate(var(--turn, 0deg)); }
.pigment.selected { transform: translateY(calc(var(--drop, 0px) - 12px)) scale(1.04) rotate(var(--turn, 0deg)); outline: 2px solid #fff; outline-offset: 5px; }

.primary, .quiet, .add-person, .danger {
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid #f4eee455;
    border-radius: 999px;
    color: #20251f;
    background: #f4eee4;
    font-weight: 650;
}
.primary:disabled { opacity: .9; cursor: not-allowed; color: #f4eee4; background: #20251fb8; border-color: #f4eee46b; }
.primary span { margin-left: 14px; opacity: .55; }
.quiet, .add-person { color: #f4eee4; background: transparent; }
.danger { color: #ffd7cf; background: #702b24; border-color: transparent; }
.floating-next { position: fixed; right: clamp(20px, 4vw, 64px); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 25; }

.people-stage { display: grid; grid-template-columns: minmax(270px, .52fr) minmax(620px, 1.48fr); align-items: start; gap: clamp(36px, 5vw, 86px); }
.editorial-copy.compact h1 { font-size: clamp(3.2rem, 6vw, 6.8rem); }
.participants { max-height: none; overflow: visible; padding: 8px 10px 48px; }
.shooting-context, .person-row { position: relative; margin: 0; padding: clamp(24px, 2.5vw, 36px) 4px; border: 0; border-top: 1px solid #f4eee44a; border-radius: 0; background: transparent; }
.person-row:last-of-type { border-bottom: 1px solid #f4eee42e; }
.shooting-context legend, .person-row legend { float: left; width: 100%; display: grid; gap: 4px; margin: 0 0 20px; padding: 0; }
.shooting-context legend span, .person-row legend span { font: 400 clamp(1.55rem, 2vw, 2rem) var(--serif); color: #fffaf2; }
.shooting-context legend small, .person-row legend small { max-width: 52ch; color: #f4eee4a6; font-size: .72rem; line-height: 1.45; }
.control-grid { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.request-grid { grid-template-columns: 1.15fr 1.15fr .85fr .7fr; }
.person-basics { grid-template-columns: 1.2fr 1fr .72fr .82fr; }
.measurement-heading { clear: both; display: flex; align-items: baseline; gap: 9px; margin: 26px 4px 11px; color: #f4eee4e0; }
.measurement-heading span { font: 400 1.1rem var(--serif); }
.measurement-heading small { color: #f4eee47f; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.measurement-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.measurement-grid .control select { min-height: 48px; border: 1px solid #f4eee433; border-radius: 999px; background-color: #f4eee40b; }
.control { display: grid; align-content: start; gap: 8px; min-width: 0; color: #fffaf2; font-size: .78rem; }
.control > span { padding-left: 4px; color: #f4eee4d6; font-weight: 650; }
.control em { color: #f4eee488; font-size: .68rem; font-style: normal; font-weight: 500; }
.control input, .control select {
    width: 100%; min-width: 0; min-height: 56px; padding: 0 15px; border: 0; border-bottom: 1px solid #f4eee466; border-radius: 13px 13px 4px 4px; color: #fffaf2; background: linear-gradient(135deg, #f4eee41f, #f4eee40b); box-shadow: inset 0 1px #ffffff24; outline: none; transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.control input::placeholder { color: #f4eee478; }
.control select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, #f4eee4b8 50%), linear-gradient(135deg, #f4eee4b8 50%, transparent 50%); background-position: calc(100% - 19px) 23px, calc(100% - 14px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.control select option { color: #20251f; background: #f4eee4; }
.control input:hover, .control select:hover { background-color: #f4eee41d; border-color: #f4eee4a8; }
.control input:focus-visible, .control select:focus-visible { border-color: #fffaf2; background-color: #f4eee424; box-shadow: 0 0 0 3px #f4eee424, inset 0 1px #ffffff2b; }
.choice-control { position: relative; }
.choice { position: relative; min-width: 0; }
.choice summary { position: relative; display: flex; align-items: center; min-height: 56px; padding: 0 48px 0 15px; border-bottom: 1px solid #f4eee466; color: #fffaf2; background: linear-gradient(135deg, #f4eee41f, #f4eee40b); font: 400 1.06rem var(--serif); cursor: pointer; list-style: none; outline: none; transition: border-color 180ms ease, background 180ms ease; }
.choice summary::-webkit-details-marker { display: none; }
.choice summary::before, .choice summary::after { content: ''; position: absolute; right: 19px; width: 9px; height: 1px; background: #fffaf2bf; transition: transform 180ms ease; }
.choice summary::before { transform: translateX(-3px) rotate(40deg); }
.choice summary::after { transform: translateX(3px) rotate(-40deg); }
.choice[open] summary { border-color: #fffaf2; background: #f4eee424; }
.choice[open] summary::before { transform: translateX(-3px) rotate(-40deg); }
.choice[open] summary::after { transform: translateX(3px) rotate(40deg); }
.choice summary:focus-visible { box-shadow: 0 0 0 3px #f4eee424; }
.choice-menu { position: absolute; z-index: 45; top: calc(100% + 7px); left: 0; right: 0; max-height: min(320px, 48vh); overflow-y: auto; padding: 6px; border: 1px solid #f4eee44d; border-radius: 15px; background: #f2eadc; box-shadow: 0 20px 46px #10140f70; }
.choice-menu button { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: space-between; padding: 0 11px; border: 0; border-radius: 10px; color: #293027; background: transparent; text-align: left; cursor: pointer; }
.choice-menu button:hover, .choice-menu button:focus-visible { background: #68715918; outline: none; }
.choice-menu button.selected { color: #20251f; background: #68715925; font-weight: 700; }
.choice-menu button i { color: #66705a; font-style: normal; }
.measurement-choice .choice summary { min-height: 48px; border: 1px solid #f4eee433; border-radius: 999px; background: #f4eee40b; font-family: inherit; font-size: .82rem; font-weight: 500; }
.privacy-note { clear: both; margin: 18px 4px 0; color: #f4eee49c; font-size: .72rem; line-height: 1.5; }
.privacy-note a { color: #fffaf2; text-underline-offset: 4px; }
.remove { position: absolute; top: 24px; right: 4px; min-height: 36px; padding: 0 12px; border: 0; border-bottom: 1px solid #f4eee455; border-radius: 0; color: #f4eee4bf; background: transparent; font-size: .7rem; }
.add-person { margin: 20px 0 0 2px; background: #f4eee414; }
.stage-actions { position: absolute; right: clamp(20px, 6vw, 100px); bottom: max(28px, env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; }

.swipe-stage { position: relative; height: 100svh; height: 100dvh; isolation: isolate; touch-action: none; overflow: hidden; overscroll-behavior: none; background: #20251f; animation: photo-in 650ms cubic-bezier(.18,.8,.2,1) both; }
.feed-track { position: absolute; inset: 0; z-index: 2; transform: translate3d(0, var(--feed-y, 0), 0); transition: transform 280ms cubic-bezier(.2,.82,.2,1); will-change: transform; }
.feed-card { position: absolute; inset: 0; z-index: 1; transform: translate3d(0, calc(var(--feed-slot) * 100%), 0); }
.card-surface { position: absolute; inset: 0; overflow: hidden; background: #20251f; }
.current-card { z-index: 2; }
.current-card .card-surface { transform: translate3d(var(--card-x, 0), 0, 0) rotate(var(--swipe-turn, 0)); transition: transform 280ms cubic-bezier(.2,.82,.2,1); will-change: transform; }
.photo-viewport, .image-motion { position: absolute; inset: 0; overflow: hidden; }
.image-motion { will-change: transform; }
.hero-item { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transform: translate3d(var(--pan-x, 0), var(--pan-y, 0), 0) scale(var(--zoom, 1)); transition: transform 220ms cubic-bezier(.2,.8,.2,1); will-change: transform; }
.is-manipulating .hero-item, .is-manipulating .feed-track, .is-manipulating .current-card .card-surface,
.is-resetting-deck .feed-track, .is-resetting-deck .current-card .card-surface { transition: none; }
.user-zoomed .image-motion { animation-play-state: paused; }
.motion-0 { animation: ken-orbit 14.72s ease-in-out infinite alternate; }
.motion-1 { animation: ken-vector-a 13.44s ease-in-out infinite alternate; }
.motion-2 { animation: ken-vector-b 15.36s ease-in-out infinite alternate; }
.motion-3 { animation: ken-breathe-in 12.8s ease-in-out infinite alternate; }
.motion-4 { animation: ken-breathe-out 14.08s ease-in-out infinite alternate; }
.generated-missing { background: radial-gradient(circle at 60% 30%, var(--wash-c), var(--wash-b) 42%, var(--wash-a)); }
.photo-scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 48% 40%, transparent 35%, #10170d26 100%), linear-gradient(90deg, #10170da8 0, transparent 42%), linear-gradient(0deg, #10170dc4 0, transparent 31%, #10170d40 100%); }
.drag-meaning { position: absolute; inset-block: 0; z-index: 1; width: 52%; display: flex; align-items: center; gap: 10px; padding: 24px; opacity: 0; color: #fffaf2; pointer-events: none; }
.drag-meaning b { font: 400 2rem/1 var(--serif); }
.drag-meaning span { font-size: .68rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.drag-meaning.choose { left: 0; justify-content: flex-start; background: linear-gradient(90deg, #53684e, #53684e00); }
.drag-meaning.discard { right: 0; justify-content: flex-end; background: linear-gradient(270deg, #74423f, #74423f00); }
.revealing-consider .drag-meaning.choose, .revealing-dismiss .drag-meaning.discard { opacity: var(--drag-progress); }
.feed-end .card-surface { display: grid; place-content: center; text-align: center; }
.feed-end h2 { margin: 0; font: 400 clamp(3rem, 9vw, 7rem)/.9 var(--serif); }
.feed-end p { color: #f4eee4a8; }
.item-story { position: absolute; left: clamp(22px, 5vw, 78px); bottom: clamp(34px, 6vh, 70px); max-width: min(590px, calc(100vw - 300px)); text-shadow: 0 2px 26px #10170d; pointer-events: none; }
.inventory { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.item-story h1 { margin: 8px 0; font: 400 clamp(2.8rem, 5.6vw, 6.5rem)/.91 var(--serif); letter-spacing: -.05em; }
.item-story p { max-width: 42ch; margin: 10px 0 14px; font-size: .92rem; line-height: 1.5; color: #fffaf2dc; }
.item-meta { display: flex; gap: 8px; }
.item-meta span { border: 1px solid #fff5; border-radius: 50%; min-width: 38px; height: 38px; display: grid; place-items: center; font-size: .72rem; }
.gesture-hints { position: absolute; z-index: 4; right: clamp(18px, 3vw, 46px); top: 50%; display: grid; gap: 9px; transform: translateY(-50%); }
.gesture-hints button { width: 158px; min-height: 58px; padding: 9px 15px; border: 1px solid #fff5; border-radius: 18px; display: grid; align-content: center; justify-items: start; gap: 2px; color: #fff; background: #152014a8; backdrop-filter: blur(16px) saturate(1.1); text-align: left; box-shadow: 0 12px 30px #10170d35; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.gesture-hints button:hover, .gesture-hints button:focus-visible { border-color: #fff; background: #152014df; transform: translateX(-4px); outline: none; }
.gesture-hints button span { font-size: .76rem; font-weight: 720; }
.gesture-hints button small { color: #fff9; font-size: .6rem; }
.gesture-hints button b { display: none; font-size: 1.5rem; font-weight: 500; line-height: 1; }
.touch-hint { display: none; }
.zoom-reset { position: absolute; z-index: 5; top: 86px; right: 24px; min-height: 40px; padding: 0 14px; border: 1px solid #fff6; border-radius: 999px; color: #fff; background: #152014b8; backdrop-filter: blur(14px); font-size: .7rem; }
.progress { position: absolute; inset: auto 0 0; height: 3px; background: #fff3; }
.progress i { display: block; height: 100%; background: #f4eee4; transition: width 350ms ease; }
.empty-stage { display: grid; place-content: center; text-align: center; }
.empty-stage h1 { font-size: clamp(3.5rem, 8vw, 8rem); }
.empty-stage .primary { justify-self: center; margin-top: 24px; }
.summary-stage { display: grid; grid-template-columns: 1.1fr .9fr; gap: 7vw; align-items: center; }
.summary-intro h1 { font-size: clamp(3.1rem, 5.7vw, 6.6rem); }
.packing-list { max-height: 62svh; overflow: auto; border-top: 1px solid #fff4; }
.packing-list section { padding: 20px 0 24px; border-bottom: 1px solid #fff4; }
.packing-list h2 { margin: 0 0 14px; font: 400 1.6rem var(--serif); }
.packing-list p { display: grid; grid-template-columns: 90px 1fr; margin: 8px 0; }
.packing-list p b { font-size: .7rem; letter-spacing: .08em; }

.toast { position: fixed; z-index: 100; left: 50%; top: 84px; max-width: min(520px, calc(100vw - 32px)); transform: translateX(-50%); padding: 13px 20px; border-radius: 999px; background: #792c25; color: #fff; box-shadow: 0 12px 42px #0006; }
.stage-enter > .editorial-copy,
.stage-enter > .pigments,
.stage-enter > .participants,
.stage-enter > .summary-intro,
.stage-enter > .packing-list { animation: stage-in 650ms cubic-bezier(.2,.8,.2,1) both; }

.admin-shell { min-height: 100svh; display: grid; grid-template-columns: 270px minmax(0, 1fr); grid-template-rows: 76px 1fr; background: #eae2d5; color: #262a24; }
.admin-gate { min-height: 100svh; display: grid; place-items: center; padding: 24px; color: #f4eee4; background: radial-gradient(circle at 70% 15%, #a45735, transparent 38%), radial-gradient(circle at 18% 82%, #8e7185, transparent 42%), #20251f; }
.admin-gate form { width: min(460px, 100%); }
.admin-gate h1 { margin: 0 0 18px; font: 400 clamp(3.2rem, 9vw, 5.6rem)/.9 var(--serif); letter-spacing: -.045em; }
.admin-gate form > p:not(.eyebrow, .gate-error) { max-width: 38ch; color: #f4eee4b3; line-height: 1.55; }
.admin-gate label { display: grid; gap: 8px; margin: 34px 0 18px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.admin-gate input { min-height: 54px; padding: 0 15px; border: 1px solid #f4eee455; border-radius: 16px; color: inherit; background: #111a1494; box-shadow: inset 0 1px #ffffff12; outline: none; }
.admin-gate input:focus-visible { border-color: #fff; box-shadow: 0 0 0 4px #ffffff20; }
.admin-gate .gate-error { color: #ffd1c7; }
.admin-gate a { display: inline-block; margin-left: 18px; color: inherit; font-size: .8rem; }
.admin-header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid #262a2424; }
.admin-header > div { display: flex; align-items: center; gap: 18px; font-size: .75rem; }
.admin-header nav { display: flex; align-self: stretch; gap: 24px; }
.admin-header nav button { position: relative; border: 0; color: #262a2480; background: transparent; }
.admin-header nav button.active { color: #262a24; }
.admin-header nav button.active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: #262a24; }
.admin-header nav span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; border-radius: 50%; color: #fff; background: #a45735; font-size: .62rem; }
.small { min-height: 38px; padding-inline: 17px; background: #20251f; color: #fff; }
.admin-filters { padding: 46px 30px; border-right: 1px solid #262a2424; }
.admin-filters h1 { margin: 0 0 30px; font: 400 2.6rem var(--serif); }
.admin-filters label { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.admin-filters p { margin-top: 34px; color: #262a2488; font-size: .75rem; line-height: 1.5; }
.inventory-list { padding: 24px clamp(20px, 4vw, 64px) 80px; overflow: auto; }
.inventory-row { min-height: 106px; display: grid; grid-template-columns: 86px 1fr auto auto; align-items: center; gap: 20px; border-bottom: 1px solid #262a2424; }
.inventory-row img, .image-empty { width: 70px; height: 82px; object-fit: cover; background: #a6ad96; }
.inventory-row b { font-size: .67rem; letter-spacing: .12em; }
.inventory-row h2 { margin: 3px 0; font: 400 1.35rem var(--serif); }
.inventory-row p { margin: 0; font-size: .72rem; color: #262a2488; }
.inventory-state { display: flex; gap: 8px; font-size: .65rem; }
.inventory-state span { padding: 5px 9px; border: 1px solid #262a2430; border-radius: 999px; }
.inventory-state .placeholder { background: #c7ab89; border-color: transparent; }
.edit { min-height: 38px; border: 0; color: inherit; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.editor-backdrop { position: fixed; z-index: 120; inset: 0; display: flex; justify-content: end; background: #161a1499; backdrop-filter: blur(6px); }
.item-editor { width: min(720px, 100vw); height: 100%; overflow: auto; padding: 38px clamp(22px, 5vw, 58px); background: #f4eee4; color: #262a24; box-shadow: -30px 0 80px #0004; animation: editor-in 350ms cubic-bezier(.2,.8,.2,1); }
.item-editor header { display: flex; justify-content: space-between; align-items: start; }
.item-editor h1 { margin: 0 0 30px; font: 400 3rem var(--serif); }
.close { border: 0; background: transparent; font-size: 2.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid label { display: grid; gap: 8px; color: #262a24b8; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 50px; padding: 10px 13px; border: 1px solid #262a2438; border-radius: 14px; color: #262a24; background: #fffaf2; outline: none; }
.form-grid input:focus-visible, .form-grid select:focus-visible, .form-grid textarea:focus-visible { border-color: #20251f; box-shadow: 0 0 0 4px #66705a24; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid textarea { min-height: 105px; resize: vertical; }
.form-grid .check { display: flex; align-items: center; gap: 9px; }
.form-grid .check input { width: auto; min-height: auto; }
.form-grid .file { padding-top: 20px; }
.item-editor footer { display: flex; justify-content: end; gap: 10px; margin-top: 36px; }
.item-editor .quiet { color: #262a24; border-color: #262a2440; }
.item-editor .primary { color: #fff; background: #20251f; }
.item-editor .danger { margin-right: auto; }
.request-list { max-width: 1120px; }
.request-row { padding: 28px 0; border-bottom: 1px solid #262a2424; }
.request-row > header { display: flex; justify-content: space-between; gap: 24px; }
.request-row > header b { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #a45735; }
.request-row > header h2 { margin: 5px 0; font: 400 2rem var(--serif); }
.request-row > header p { margin: 0; color: #262a2480; font-size: .76rem; }
.request-row > header > span { font: 400 1.4rem var(--serif); }
.request-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 22px; }
.request-people section { padding: 16px; border: 1px solid #262a2424; border-radius: 16px; background: #fffaf273; }
.request-people h3 { margin: 0 0 5px; font: 400 1.15rem var(--serif); }
.request-people p { margin: 0 0 10px; color: #262a24a3; font-size: .72rem; }
.request-people span { display: grid; grid-template-columns: minmax(70px, auto) 1fr; gap: 8px; margin-top: 4px; font-size: .68rem; }
.request-people span b { color: #262a2480; }
.request-packing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.request-packing h3 { margin: 0 0 10px; font: 400 1.15rem var(--serif); }
.request-packing p { display: grid; grid-template-columns: 72px 1fr; gap: 8px; margin: 6px 0; font-size: .72rem; }
.request-packing p b { letter-spacing: .08em; }
.empty-admin { margin-top: 40px; color: #262a2480; }

@keyframes stage-in { from { transform: translateY(20px); } }
@keyframes photo-in { from { transform: scale(1.035); } }
@keyframes ken-orbit { from { transform: scale(1.018) translate3d(-.35%, .25%, 0) rotate(-.08deg); } to { transform: scale(1.045) translate3d(.45%, -.35%, 0) rotate(.08deg); } }
@keyframes ken-vector-a { from { transform: scale(1.025) translate3d(-.8%, -.45%, 0); } to { transform: scale(1.046) translate3d(.7%, .55%, 0); } }
@keyframes ken-vector-b { from { transform: scale(1.043) translate3d(.55%, -.7%, 0); } to { transform: scale(1.02) translate3d(-.65%, .55%, 0); } }
@keyframes ken-breathe-in { from { transform: scale(1.015) translate3d(0, .25%, 0); } to { transform: scale(1.05) translate3d(.25%, -.25%, 0); } }
@keyframes ken-breathe-out { from { transform: scale(1.05) translate3d(-.25%, -.2%, 0); } to { transform: scale(1.018) translate3d(.35%, .3%, 0); } }
@keyframes editor-in { from { transform: translateX(60px); opacity: .6; } }

@media (max-width: 900px) {
    .palette-stage, .people-stage, .summary-stage { grid-template-columns: 1fr; align-content: center; }
    .palette-stage { padding-bottom: 95px; }
    .editorial-copy h1 { font-size: clamp(3.1rem, 12vw, 6.5rem); }
    .pigments { min-height: 38vh; grid-template-columns: repeat(5, 1fr); }
    .pigment:nth-child(n) { --drop: 0px; aspect-ratio: .72; }
    .people-stage { display: block; height: auto; padding-bottom: 120px; overflow: visible; }
    .people-stage .editorial-copy { margin-bottom: 34px; }
    .participants { max-height: none; overflow: visible; padding-inline: 0; }
    .request-grid, .person-basics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .measurement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .control-wide { grid-column: 1 / -1; }
    .request-grid, .person-basics { grid-template-columns: 1fr; gap: 0; padding: 0 16px; border: 1px solid #f4eee42b; border-radius: 20px; background: #f4eee40d; box-shadow: inset 0 1px #ffffff17; }
    .request-grid .control, .person-basics .control { min-height: 62px; grid-template-columns: minmax(108px, .38fr) minmax(0, 1fr); align-items: center; gap: 14px; border-bottom: 1px solid #f4eee428; }
    .request-grid .control:last-child, .person-basics .control:last-child { border-bottom: 0; }
    .request-grid .control > span, .person-basics .control > span { padding: 0; }
    .request-grid .control input, .request-grid .control select, .person-basics .control input, .person-basics .control select { min-height: 60px; padding: 0 26px 0 0; border: 0; border-radius: 0; background-color: transparent; background-position: calc(100% - 10px) 27px, calc(100% - 5px) 27px; box-shadow: none; text-align: right; }
    .person-basics .choice-control { grid-template-columns: minmax(108px, .38fr) minmax(0, 1fr); }
    .person-basics .choice { min-width: 0; }
    .person-basics .choice summary { min-height: 60px; justify-content: flex-end; padding: 0 28px 0 0; border: 0; background: transparent; font-size: 1rem; text-align: right; }
    .person-basics .choice summary::before, .person-basics .choice summary::after { right: 8px; }
    .person-basics .choice-menu { left: auto; width: min(270px, calc(100vw - 70px)); }
    .request-grid .control input:focus-visible, .request-grid .control select:focus-visible, .person-basics .control input:focus-visible, .person-basics .control select:focus-visible { box-shadow: inset 0 -2px #fffaf2; }
    .control-wide { grid-column: auto; }
    .people-stage .stage-actions { position: fixed; z-index: 26; inset: auto 0 0; justify-content: end; padding: 14px clamp(18px, 5vw, 42px) max(14px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, #20251fe8 32%); pointer-events: none; }
    .people-stage .stage-actions button { pointer-events: auto; }
    .summary-stage { align-content: start; overflow: auto; }
    .summary-intro { margin-top: 40px; }
    .packing-list { max-height: none; }
    .admin-shell { grid-template-columns: 1fr; grid-template-rows: 72px auto 1fr; }
    .admin-filters { border: 0; border-bottom: 1px solid #262a2424; padding: 20px; }
    .admin-filters h1 { display: none; }
    .admin-filters p { display: none; }
}

@media (max-width: 620px) {
    .brandbar { height: 62px; }
    .step { font-size: .58rem; letter-spacing: .12em; }
    .palette-stage, .people-stage, .summary-stage { padding: 84px 18px 96px; }
    .palette-stage { display: block; align-content: initial; overflow-y: auto; }
    .palette-stage .editorial-copy h1 { font-size: clamp(3rem, 13vw, 4.1rem); line-height: .9; }
    .editorial-copy p:last-child { font-size: .88rem; }
    .pigments { min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; padding-bottom: 18px; }
    .pigment:nth-child(n) { aspect-ratio: 2.15; border-radius: 28px 34px 26px 32px / 24px 30px 28px 34px; }
    .pigment:nth-child(3n) { border-radius: 34px 25px 31px 27px / 29px 34px 24px 31px; }
    .pigment span { inset: auto 14px 12px; writing-mode: horizontal-tb; font-size: .58rem; text-align: left; }
    .pigment.selected { outline-offset: 3px; transform: scale(.97); }
    .people-stage { padding-bottom: 122px; }
    .editorial-copy.compact h1 { font-size: clamp(2.8rem, 14vw, 4.1rem); line-height: .9; }
    .shooting-context, .person-row { padding: 24px 0; border-radius: 0; }
    .shooting-context legend, .person-row legend { padding-right: 76px; }
    .request-grid, .person-basics { gap: 0; }
    .measurement-grid { gap: 10px; }
    .control input, .control select { min-height: 54px; padding-inline: 13px; border-radius: 12px 12px 3px 3px; }
    .measurement-choice .choice summary { min-height: 52px; padding-left: 15px; }
    .control > span { font-size: .7rem; }
    .remove { top: 22px; right: 0; }
    .item-story { left: 14px; bottom: max(18px, env(safe-area-inset-bottom)); max-width: calc(100vw - 82px); }
    .inventory { font-size: .56rem; letter-spacing: .14em; }
    .item-story h1 { margin-block: 6px; font-size: clamp(2rem, 9.5vw, 3.1rem); line-height: .94; }
    .item-story p { display: none; }
    .item-meta span { min-width: 30px; height: 30px; font-size: .62rem; }
    .gesture-hints { right: 0; top: 50%; gap: 8px; transform: translateY(-50%); }
    .gesture-hints button { width: 56px; min-height: 56px; padding: 0; border-right: 0; border-radius: 18px 0 0 18px; place-items: center; justify-items: center; background: #152014c4; }
    .gesture-hints button b { display: block; }
    .gesture-hints button span, .gesture-hints button small { display: none; }
    .touch-hint { position: absolute; z-index: 4; display: block; top: 72px; left: 14px; max-width: calc(100vw - 86px); margin: 0; color: #fffbd0; font-size: .62rem; line-height: 1.4; text-shadow: 0 2px 12px #000; }
    .zoom-reset { top: 68px; right: 4px; }
    .summary-stage .stage-actions { position: static; margin-top: 18px; }
    .admin-shell { grid-template-rows: auto auto 1fr; }
    .admin-header { min-height: 116px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 56px 52px; padding: 4px 14px 0; }
    .admin-header .wordmark { grid-column: 1; }
    .admin-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: stretch; gap: 4px; order: 3; }
    .admin-header nav button { flex: 1; min-height: 48px; }
    .admin-header > div { grid-column: 2; grid-row: 1; }
    .admin-header > div > span { display: none; }
    .admin-filters { display: flex; align-items: center; min-height: 58px; padding: 12px 16px; }
    .admin-filters label { min-height: 40px; }
    .inventory-list { padding: 8px 14px 60px; }
    .inventory-row { min-height: 96px; grid-template-columns: 62px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 12px; padding-block: 9px; }
    .inventory-row img, .image-empty { width: 60px; height: 72px; }
    .inventory-row > img, .inventory-row > .image-empty { grid-row: 1 / 3; }
    .inventory-row h2 { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.12rem; }
    .inventory-state { grid-column: 2; display: flex; flex-wrap: wrap; }
    .inventory-state span { padding: 3px 7px; }
    .inventory-row .edit { grid-column: 3; grid-row: 1 / 3; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .wide { grid-column: auto; }
    .item-editor { padding: 24px 18px max(24px, env(safe-area-inset-bottom)); }
    .item-editor h1 { font-size: 2.25rem; }
    .item-editor footer { position: sticky; bottom: calc(-1 * max(24px, env(safe-area-inset-bottom))); z-index: 2; flex-wrap: wrap; margin-inline: -18px; padding: 14px 18px max(14px, env(safe-area-inset-bottom)); background: #f4eee4f2; border-top: 1px solid #262a2424; }
    .item-editor footer button { flex: 1; }
    .item-editor .danger { flex-basis: 100%; order: 3; margin: 0; }
    .request-packing { grid-template-columns: 1fr; }
    .request-people { grid-template-columns: 1fr; }
    .request-row > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .request-row > header p { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
    .step { display: none; }
    .request-grid, .person-basics, .measurement-grid { grid-template-columns: 1fr; }
    .control-wide { grid-column: auto; }
    .people-stage .stage-actions { justify-content: stretch; }
    .people-stage .stage-actions button { flex: 1; padding-inline: 14px; }
    .gesture-hints button { width: 54px; min-height: 54px; }
    .item-story { max-width: calc(100vw - 76px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
