@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&family=DM+Sans:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --paper: #faf6f0;
  --sand: #f1e9df;
  --white: #fffdfa;
  --ink: #2b2320;
  --muted: #766a63;
  --line: #ddd1c5;
  --clay: #c96f4a;
  --ai: #7c5ce0;
  --ai-soft: #f1edfb;
  --ai-gradient: linear-gradient(135deg, #7c5ce0, #b47ce8 55%, #e88bc4);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body { margin: 0; overflow: hidden; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
button, input, textarea, select { font: inherit; }
button, label, input[type="range"] { cursor: pointer; }
.hidden { display: none !important; }

body.home-mode { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
body.wizard-mode, body.brief-mode { overflow: hidden; }
.home-shell { min-height: 100vh; background: var(--paper); }
.home-main { overflow: hidden; }
.home-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 82px;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 76px);
}
.home-brand { display: inline-flex; width: 122px; }
.home-brand img { display: block; width: 100%; }
.home-nav { display: flex; gap: clamp(22px, 3vw, 46px); }
.home-nav a, .home-header a { color: var(--ink); text-decoration: none; }
.home-nav a { position: relative; font-size: 12px; font-weight: 600; }
.home-nav a::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--ink); content: ""; transform: scaleX(0); transition: transform .25s; }
.home-nav a:hover::after { transform: scaleX(1); }
.home-create-button { justify-self: end; padding: 9px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; }
.home-create-button span { margin-left: 8px; color: var(--ai); }
.home-hero { position: relative; display: grid; min-height: min(880px, 100dvh); grid-template-columns: minmax(420px, .92fr) minmax(500px, 1.08fr); align-items: center; gap: 3vw; padding: 116px clamp(24px, 6vw, 96px) 60px; }
.home-hero::before { position: absolute; top: 0; right: -10%; width: 56%; height: 100%; background: radial-gradient(circle at 55% 42%, rgba(200,178,151,.25), transparent 58%); content: ""; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.home-kicker { display: block; margin-bottom: 17px; color: var(--clay); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero-copy h1 { max-width: 720px; font-size: clamp(64px, 6.6vw, 112px); line-height: .86; letter-spacing: -.055em; }
.hero-copy h1 em, .makers-heading h2 em { color: var(--clay); font-weight: 500; }
.hero-copy > p { max-width: 610px; margin: 30px 0 0; color: var(--muted); font-size: clamp(15px, 1.25vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.home-primary { display: inline-flex; min-height: 54px; align-items: center; gap: 18px; padding: 0 24px; border: 0; border-radius: 0; background: var(--ink); color: white; font-size: 13px; font-weight: 700; box-shadow: 8px 8px 0 rgba(201,111,74,.28); transition: transform .2s, box-shadow .2s; }
.home-primary:hover { box-shadow: 3px 3px 0 rgba(201,111,74,.4); transform: translate(3px, 3px); }
.home-primary svg { width: 20px; fill: none; stroke: var(--ai-soft); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hero-brief-button { display: grid; min-width: 100px; gap: 1px; padding: 3px 0 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; transition: border-color .2s, transform .2s; }
.hero-brief-button:hover { border-color: var(--clay); transform: translateY(-2px); }
.hero-brief-button span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.hero-brief-button strong { font: 600 16px var(--serif); }
.hero-promise { display: flex; gap: clamp(16px, 2vw, 34px); margin-top: 54px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.hero-promise span { display: flex; align-items: center; gap: 7px; }
.hero-promise b { color: var(--clay); font-size: 9px; }
.hero-worktable { position: relative; width: min(48vw, 720px); height: min(70vh, 680px); justify-self: end; }
.hero-orbit { position: absolute; inset: 7% 4% 5% 11%; border: 1px solid rgba(43,35,32,.12); border-radius: 50%; transform: rotate(-12deg); }
.hero-orbit::before, .hero-orbit::after { position: absolute; border-radius: 50%; background: var(--clay); content: ""; }
.hero-orbit::before { top: 13%; right: 2%; width: 7px; height: 7px; }
.hero-orbit::after { bottom: 8%; left: 12%; width: 4px; height: 4px; }
.work-card { position: absolute; z-index: 2; margin: 0; padding: 10px 10px 16px; background: #fff; box-shadow: 0 28px 60px rgba(43,35,32,.18); }
.work-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-card figcaption { color: var(--muted); font-family: "Caveat", cursive; font-size: 15px; text-align: center; }
.work-card-main { top: 3%; left: 25%; width: 52%; height: 78%; transform: rotate(2.5deg); }
.work-card-main img { height: calc(100% - 48px); }
.work-card-main figcaption { display: flex; height: 48px; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--sans); font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.work-card-main figcaption strong { color: var(--ink); font: 600 15px var(--serif); letter-spacing: 0; text-transform: none; }
.work-card-left { bottom: 3%; left: 0; width: 34%; height: 34%; transform: rotate(-8deg); }
.work-card-left img, .work-card-right img { height: calc(100% - 25px); }
.work-card-right { right: 0; bottom: 9%; width: 31%; height: 32%; transform: rotate(7deg); }
.agent-note { position: absolute; top: 10%; right: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 11px 15px 11px 10px; border: 1px solid rgba(124,92,224,.18); background: rgba(255,253,250,.88); box-shadow: 0 12px 30px rgba(43,35,32,.09); backdrop-filter: blur(10px); color: var(--muted); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.agent-note i { display: block; width: 28px; height: 28px; border-radius: 45% 55% 57% 43%; background: var(--ai-gradient); animation: morph 2.2s ease-in-out infinite; }
.agent-note b { color: var(--ai); font-weight: 700; }
.home-section { padding: clamp(76px, 10vw, 150px) clamp(24px, 6vw, 96px); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, 440px); align-items: end; gap: 5vw; margin-bottom: 50px; }
.section-heading h2, .delivery-intro h2, .makers-heading h2, .story-copy h2, .stylist-invite h2 { margin: 0; font: 600 clamp(48px, 5.5vw, 82px)/.94 var(--serif); letter-spacing: -.045em; }
.section-heading p, .delivery-intro p, .makers-heading p, .story-copy p, .stylist-invite p { margin: 0; color: var(--muted); line-height: 1.7; }
.featured-section { background: #f4eee6; }
.editorial-products { display: grid; grid-template-columns: 1.35fr .72fr .72fr; grid-template-rows: 330px 250px; gap: 20px; }
.editorial-product { position: relative; min-width: 0; overflow: hidden; background: var(--white); }
.editorial-product::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(30,23,20,.75)); content: ""; pointer-events: none; }
.editorial-product > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.9,.35,1); }
.editorial-product:hover > img { transform: scale(1.035); }
.editorial-product > div { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 28px; color: white; }
.editorial-product span { font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.editorial-product h3 { max-width: 500px; margin: 8px 0 18px; font: 500 clamp(24px, 2.3vw, 38px)/1 var(--serif); }
.editorial-product button { padding: 0 0 5px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: white; font-size: 11px; font-weight: 700; }
.feature-wide { grid-row: 1 / 3; }
.feature-tall { grid-row: 1 / 3; }
.feature-small { grid-column: 3; grid-row: 1; }
.editorial-quote { display: flex; grid-column: 3; grid-row: 2; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid var(--line); background: transparent; }
.editorial-quote blockquote { margin: 0; font: italic 500 24px/1.25 var(--serif); }
.editorial-quote span { color: var(--clay); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.delivery-section { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(560px,1.3fr); gap: 7vw; background: var(--ink); color: var(--white); }
.delivery-intro { align-self: start; position: sticky; top: 100px; }
.delivery-intro p { max-width: 390px; margin-top: 25px; color: #b9aca4; }
.delivery-steps { margin: 0; padding: 0; list-style: none; }
.delivery-steps li { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 35px; padding: 35px 0; border-top: 1px solid rgba(255,255,255,.16); }
.delivery-steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.delivery-steps img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; filter: saturate(.7); }
.delivery-steps b { color: var(--clay); font-size: 10px; letter-spacing: .14em; }
.delivery-steps h3 { margin: 6px 0; font: 500 29px var(--serif); }
.delivery-steps p { max-width: 470px; margin: 0; color: #b9aca4; font-size: 13px; }
.makers-section { position: relative; min-height: 810px; background: var(--paper); }
.makers-heading { text-align: center; }
.makers-heading p { max-width: 540px; margin: 18px auto 0; }
.maker-field { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; gap: clamp(20px, 4vw, 70px); max-width: 1140px; margin: 65px auto 0; }
.maker-card { position: relative; min-height: 360px; padding: 38px 26px 60px; background: var(--white); box-shadow: 0 18px 45px rgba(43,35,32,.09); text-align: center; }
.maker-card[href] { color: inherit; text-decoration: none; transition: box-shadow .25s ease, transform .25s ease; }
.maker-card[href]:hover { box-shadow: 0 24px 55px rgba(43,35,32,.15); transform: rotate(-1deg) translateY(-5px); }
.maker-card[href]:focus-visible { outline: 3px solid var(--ai); outline-offset: 6px; }
.maker-one { border-radius: 48% 52% 40% 60% / 48% 38% 62% 52%; transform: rotate(-2deg); }
.maker-two { margin-top: 38px; border-radius: 38% 62% 52% 48% / 56% 45% 55% 44%; transform: rotate(1.5deg); }
.maker-three { border-radius: 58% 42% 45% 55% / 42% 56% 44% 58%; transform: rotate(2deg); }
.maker-card > img { width: 118px; height: 118px; padding: 7px; border: 2px solid #de8e6c; border-radius: 50%; object-fit: cover; }
.maker-card > div { margin-top: 17px; }
.maker-card strong { display: block; font: 600 26px var(--serif); }
.maker-card > div span { color: var(--muted); font-size: 12px; }
.maker-card aside { position: absolute; right: -14px; bottom: -22px; display: flex; width: 190px; align-items: center; gap: 12px; padding: 10px; background: var(--white); box-shadow: 0 12px 30px rgba(43,35,32,.14); text-align: left; transform: rotate(2deg); }
.maker-card aside img { width: 60px; height: 60px; object-fit: cover; }
.maker-card aside span { font: 600 14px/1.15 var(--serif); }
.makers-link { display: flex; width: fit-content; gap: 15px; margin: 78px auto 0; padding-bottom: 7px; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.story-section { display: grid; grid-template-columns: minmax(420px,1.05fr) minmax(360px,.95fr); align-items: center; gap: 8vw; background: #eee5da; }
.story-image { position: relative; }
.story-image img { display: block; width: 100%; max-height: 650px; object-fit: cover; filter: saturate(.8); }
.story-image span { position: absolute; right: -20px; bottom: -22px; padding: 20px 24px; background: var(--clay); color: white; font: 500 24px/1.05 var(--serif); transform: rotate(-2deg); }
.story-copy h2 { max-width: 700px; font-size: clamp(42px, 4.6vw, 70px); }
.story-copy p { max-width: 600px; margin-top: 28px; }
.home-text-link { margin-top: 28px; padding: 0 0 6px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; }
.home-text-link span { margin-left: 12px; color: var(--ai); }
.stylist-invite { display: grid; grid-template-columns: auto 1fr minmax(280px,.55fr); align-items: center; gap: 4vw; margin: 0; padding: clamp(70px, 8vw, 120px) clamp(24px, 6vw, 96px); background: var(--ai-soft); }
.invite-mark { color: var(--ai); font-size: 48px; }
.stylist-invite h2 { font-size: clamp(42px, 4.5vw, 68px); }
.stylist-invite p { margin-bottom: 25px; }
.stylist-invite a { color: var(--ai); font-size: 12px; font-weight: 700; text-underline-offset: 6px; }
.home-footer { padding: 68px clamp(24px, 6vw, 96px) 30px; background: var(--ink); color: #a99b94; }
.footer-main { display: grid; grid-template-columns: minmax(260px,1fr) minmax(420px,.9fr); gap: 8vw; padding-bottom: 64px; }
.footer-brand { display: grid; align-content: start; justify-items: start; gap: 14px; }
.footer-brand img { width: 142px; }
.footer-brand p { margin: 8px 0 0; color: var(--white); font: 500 clamp(30px,3vw,45px)/.92 var(--serif); letter-spacing: -.035em; }
.footer-brand p em { color: #de8e6c; font-weight: 500; }
.footer-brand span { color: #766b66; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(25px,4vw,64px); }
.footer-links div { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; }
.footer-links strong { margin-bottom: 8px; color: var(--white); font: 600 15px var(--serif); }
.home-footer a { position: relative; color: #a99b94; font-size: 11px; line-height: 1.45; text-decoration: none; transition: color .2s ease; }
.home-footer a::after { position: absolute; right: 0; bottom: -3px; left: 0; height: 1px; background: #de8e6c; content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.home-footer a:hover { color: var(--white); }
.home-footer a:hover::after { transform: scaleX(1); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 25px; border-top: 1px solid #493e39; }
.footer-bottom small { color: #766b66; font-size: 9px; letter-spacing: .05em; }
.wizard-home { justify-self: start; padding: 0; border: 0; background: transparent; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.9,.35,1); }
.reveal.is-visible { opacity: 1; transform: none; }

.brief-studio { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: var(--paper); animation: brief-open .55s cubic-bezier(.22,.9,.35,1) both; }
.brief-header { position: absolute; inset: 0 0 auto; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; height: 72px; align-items: center; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(250,246,240,.88); backdrop-filter: blur(14px); }
.brief-header img { width: 118px; }
.brief-header span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.brief-header button { justify-self: end; padding: 4px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 11px; font-weight: 700; }
.brief-layout { display: grid; height: 100dvh; grid-template-columns: 180px minmax(0,1fr); padding-top: 72px; }
.brief-index { display: flex; flex-direction: column; justify-content: center; gap: 38px; padding: 28px; border-right: 1px solid var(--line); color: #b1a49b; font-size: 10px; letter-spacing: .12em; }
.brief-index span { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.brief-index b { font-size: 9px; font-weight: 600; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; }
.brief-index .active { color: var(--clay); }
.brief-input-panel { position: relative; display: flex; width: min(760px, 70vw); align-self: center; justify-self: center; flex-direction: column; padding: 5vh 5vw; }
.brief-input-panel::before { position: absolute; z-index: -1; top: -9vh; right: -8vw; width: 420px; height: 420px; border: 1px solid rgba(43,35,32,.1); border-radius: 49% 51% 56% 44%; content: ""; transform: rotate(18deg); }
.brief-input-panel h2, .brief-results-heading h2 { margin: 0; font: 600 clamp(56px, 6vw, 88px)/.88 var(--serif); letter-spacing: -.055em; }
.brief-input-panel h2 em { color: var(--clay); font-weight: 500; }
.brief-input-panel > p { max-width: 580px; margin: 24px 0 34px; color: var(--muted); line-height: 1.7; }
.brief-form { display: grid; max-width: 620px; gap: 22px; }
.brief-form .date-field, .brief-form .text-field { display: grid; gap: 8px; }
.brief-form .date-field > span, .brief-form .text-field > span, .brief-form legend { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.brief-form input[type="date"] { width: 100%; padding: 15px 0 12px; border: 0; border-bottom: 1px solid var(--ink); outline: none; background: transparent; color: var(--ink); font: 500 32px var(--serif); }
.special-date-field { display: grid !important; grid-template-columns: 1.5fr 1fr; gap: 18px !important; }
.special-date-field legend { grid-column: 1 / -1; }
.special-date-field label { display: grid; gap: 5px; }
.special-date-field label > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.special-date-field select { width: 100%; padding: 12px 32px 12px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; outline: none; background: transparent; color: var(--ink); font: 500 29px var(--serif); }
.brief-form fieldset { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; border: 0; }
.brief-form legend { width: 100%; margin-bottom: 9px; }
.brief-form fieldset input { position: absolute; opacity: 0; }
.brief-form fieldset label span { display: block; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.45); color: var(--muted); font-size: 12px; }
.brief-form fieldset input:checked + span { border-color: var(--ai); background: var(--ai-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ai); }
.text-field { position: relative; }
.text-field textarea { width: 100%; resize: none; padding: 16px 42px 16px 0; border: 0; border-bottom: 1px solid var(--ink); outline: none; background: transparent; color: var(--ink); font: 500 27px/1.25 var(--serif); }
.text-field textarea::placeholder { color: #b9ada5; }
.text-field small { position: absolute; right: 0; bottom: 15px; color: var(--muted); font-size: 10px; }
.brief-error { min-height: 20px; margin: -10px 0 0; color: #a23d32; font-size: 12px; }
.brief-submit { display: flex; min-height: 56px; align-items: center; justify-content: space-between; padding: 0 22px; border: 0; background: var(--ink); color: white; font-size: 13px; font-weight: 700; box-shadow: 8px 8px 0 rgba(201,111,74,.25); }
.brief-submit span { color: #c7b7f5; font-size: 20px; }
.brief-results { display: grid; min-height: 0; grid-template-columns: minmax(270px,.7fr) minmax(540px,1.3fr); align-content: center; gap: 5vw; padding: 5vh 5vw; overflow-y: auto; }
.brief-results-heading { align-self: center; }
.brief-results-heading h2 { font-size: clamp(52px,5.5vw,82px); }
.brief-results-heading p { max-width: 420px; margin-top: 24px; color: var(--muted); line-height: 1.7; }
.brief-recommendations { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: 16px; }
.brief-direction { display: flex; min-width: 0; height: min(58vh,560px); flex-direction: column; border: 0; background: var(--white); box-shadow: 0 22px 48px rgba(43,35,32,.1); text-align: left; transition: transform .25s, box-shadow .25s; }
.brief-direction:nth-child(2) { transform: translateY(-24px); }
.brief-direction:hover { z-index: 2; box-shadow: 0 30px 60px rgba(43,35,32,.17); transform: translateY(-8px); }
.brief-direction:nth-child(2):hover { transform: translateY(-32px); }
.brief-direction img { width: 100%; min-height: 0; flex: 1; object-fit: cover; }
.brief-direction div { padding: 17px 17px 19px; }
.brief-direction small { color: var(--clay); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.brief-direction strong { display: block; margin: 4px 0 8px; font: 600 21px/1.05 var(--serif); }
.brief-direction p { min-height: 48px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.brief-direction span { display: block; margin-top: 12px; color: var(--ai); font-size: 10px; font-weight: 700; }
.brief-back { position: absolute; bottom: 24px; left: calc(180px + 5vw); padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--muted); background: transparent; color: var(--muted); font-size: 11px; }
.brief-loading { grid-column: 1 / -1; align-self: center; color: var(--muted); text-align: center; }
.cosmos-direction { height: min(61vh,590px); background: transparent; box-shadow: none; }
.cosmos-direction:nth-child(2) { transform: translateY(-20px); }
.cosmos-direction:hover { box-shadow: none; }
.cosmos-direction > img { width: calc(100% - 18px); aspect-ratio: 1; min-height: 0; flex: none; align-self: center; border: 9px solid #ece4d8; border-radius: 50%; box-shadow: inset 0 0 28px rgba(0,0,0,.35), 0 25px 50px rgba(43,35,32,.2); object-fit: cover; }
.cosmos-direction div { margin-top: 12px; padding: 14px 4px; border-top: 1px solid var(--line); }
.cosmos-direction p { display: -webkit-box; min-height: 47px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.cosmos-preview { display: grid; min-height: 0; grid-template-columns: minmax(310px,.8fr) minmax(420px,1.2fr); align-items: center; gap: 5vw; padding: 4vh 7vw; overflow-y: auto; background: radial-gradient(circle at 70% 45%, #3c3443 0, #211c22 34%, var(--ink) 67%); color: var(--white); }
.cosmos-copy h2 { margin: 0; font: 600 clamp(54px,6vw,90px)/.9 var(--serif); letter-spacing: -.055em; }
.cosmos-copy h2 em { color: #d7c7ff; font-weight: 500; }
.cosmos-copy p { max-width: 560px; color: #c0b5af; line-height: 1.7; }
.cosmos-copy a { color: #d7c7ff; font-size: 11px; text-underline-offset: 5px; }
.cosmos-piece { position: relative; width: min(58vh,48vw,620px); margin: 0; justify-self: center; }
.cosmos-piece > div { position: relative; aspect-ratio: 1; padding: 3.5%; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: linear-gradient(145deg,#f7f0e6,#c9b9a7); box-shadow: 0 36px 90px rgba(0,0,0,.55), inset 0 0 18px rgba(255,255,255,.8); }
.cosmos-piece > div::after { position: absolute; inset: 5.5%; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; box-shadow: inset 0 0 35px rgba(0,0,0,.5); content: ""; }
.cosmos-piece img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cosmos-piece figcaption { display: flex; justify-content: space-between; gap: 24px; margin-top: 18px; color: #c0b5af; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.cosmos-piece figcaption strong { color: white; font: 500 18px var(--serif); letter-spacing: 0; text-transform: none; }
.cosmos-actions { position: absolute; right: 7vw; bottom: 28px; display: flex; align-items: center; gap: 16px; }
.cosmos-actions button { min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: white; font-size: 11px; font-weight: 700; }
.cosmos-actions #cosmos-continue { border-color: #d7c7ff; background: #d7c7ff; color: var(--ink); }
.cosmos-actions #cosmos-continue span { margin-left: 18px; }
.cosmos-actions p { position: absolute; right: 0; bottom: -24px; width: 380px; margin: 0; opacity: 0; color: #c0b5af; font-size: 9px; text-align: right; transition: opacity .2s; }
.cosmos-actions p.visible { opacity: 1; }

.app { min-height: 100dvh; overflow: hidden; }
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 72px;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid rgba(43,35,32,.1);
  background: rgba(250,246,240,.92);
  backdrop-filter: blur(14px);
}
.logo { width: 118px; }
.progress { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.progress li { color: #a0958e; font-size: 12px; font-weight: 700; }
.progress li::before { margin-right: 6px; counter-increment: step; content: "0" counter(step); }
.progress li.active { color: var(--ink); }
.progress li.done { color: var(--clay); }
.quiet-button { justify-self: end; border: 0; background: transparent; color: var(--muted); text-decoration: underline; }

.step { position: absolute; inset: 72px 0 0; display: none; opacity: 0; }
.step.active { display: grid; opacity: 1; animation: enter .55s cubic-bezier(.22,.9,.35,1) both; }
.step-upload { grid-template-columns: minmax(260px, .8fr) minmax(320px, 1fr) 170px; gap: 4vw; align-items: center; padding: 24px 5vw; }
.intro { align-self: center; }
.kicker { display: block; margin-bottom: 12px; color: var(--clay); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: clamp(48px, 5.5vw, 78px); line-height: .98; }
h2 { font-size: clamp(36px, 4vw, 58px); line-height: 1.02; }
.intro p, .selection-panel > p, .result-copy p { max-width: 460px; color: var(--muted); }

.crop-workspace { display: grid; grid-template-rows: auto auto; gap: 14px; place-items: center; }
.drop-prompt, .crop-frame { position: relative; width: min(34vw, 380px, calc((100dvh - 220px) * 2 / 3)); aspect-ratio: 2 / 3; overflow: hidden; border: 2px dashed #baa7ed; border-radius: 20px; background: rgba(255,255,255,.48); }
.drop-prompt { display: grid; place-content: center; text-align: center; transition: background .2s, transform .2s; }
.drop-prompt:hover, .drop-prompt.dragging { background: var(--ai-soft); transform: translateY(-3px); }
.drop-prompt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-mark { display: grid; width: 64px; height: 64px; margin: 0 auto 18px; place-items: center; border-radius: 50%; background: var(--ai-soft); color: var(--ai); font-size: 28px; }
.drop-prompt strong { font: 600 26px var(--serif); }
.drop-prompt small { margin-top: 5px; color: var(--muted); }
.crop-frame { isolation: isolate; overflow: visible; touch-action: none; cursor: grab; }
.crop-frame::after { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 43%, rgba(255,255,255,.38) 50%, transparent 57%); content: ""; transform: translateX(-45%); animation: ai-scan 2.8s ease-in-out infinite; }
#crop-frame, #crop-thumbnail { view-transition-name: source-photo; }
::view-transition-group(source-photo) { animation-duration: .65s; animation-timing-function: cubic-bezier(.22,.9,.35,1); }
.crop-frame:active { cursor: grabbing; }
.crop-frame canvas { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: inherit; touch-action: none; }
.crop-frame .crop-bleed { position: absolute; inset: -110px; z-index: 0; width: calc(100% + 220px); height: calc(100% + 220px); border-radius: 0; filter: blur(6px); opacity: .68; pointer-events: none; }
.crop-hint { position: absolute; bottom: 16px; left: 50%; z-index: 3; padding: 7px 12px; border-radius: 999px; background: rgba(43,35,32,.75); color: white; font-size: 11px; white-space: nowrap; transform: translateX(-50%); }
.crop-controls { display: grid; grid-template-columns: auto auto minmax(120px, 1fr) auto 46px auto; width: min(34vw, 380px, calc((100dvh - 220px) * 2 / 3)); gap: 11px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 25px rgba(43,35,32,.08); }
.zoom-label { color: var(--ink); font-size: 12px; font-weight: 700; }
.crop-controls input { width: 100%; height: 6px; appearance: none; border-radius: 99px; outline: none; background: linear-gradient(to right, var(--ai) 0 var(--zoom-progress, 0%), var(--ai-soft) var(--zoom-progress, 0%) 100%); }
.crop-controls input::-webkit-slider-thumb { width: 22px; height: 22px; appearance: none; border: 4px solid var(--white); border-radius: 50%; background: var(--ai); box-shadow: 0 2px 8px rgba(43,35,32,.3); }
.crop-controls input::-moz-range-thumb { width: 14px; height: 14px; border: 4px solid var(--white); border-radius: 50%; background: var(--ai); box-shadow: 0 2px 8px rgba(43,35,32,.3); }
.crop-controls input:focus-visible { outline: 3px solid rgba(124,92,224,.24); outline-offset: 5px; }
.crop-controls output { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; }
.next-upload { justify-self: start; }

.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.primary-button { background: var(--ai-gradient); color: white; box-shadow: 0 10px 30px rgba(124,92,224,.25); }
.cta-arrow { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; animation: cta-spark 1.8s ease-in-out infinite; }
.primary-button:disabled { cursor: not-allowed; box-shadow: none; opacity: .35; }
.secondary-button { border: 1px solid var(--ink); background: transparent; color: var(--ink); }

.step-style, .step-preview { grid-template-columns: 26% 74%; background: var(--sand); }
.photo-rail { display: flex; min-width: 0; align-items: center; justify-content: center; flex-direction: column; gap: 16px; padding: 40px; background: var(--paper); }
.photo-rail img { width: min(18vw, 240px); aspect-ratio: 2 / 3; border-radius: 6px; object-fit: cover; box-shadow: 0 20px 60px rgba(43,35,32,.14); }
.rail-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.selected-style-label { max-width: 260px; font: 600 20px/1.1 var(--serif); text-align: center; }
.selection-panel, .preview-panel { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 3vh 5vw; background: var(--white); }
.selection-panel > h2 { font-size: clamp(32px, 3.2vw, 48px); }
.style-grid { display: flex; max-height: min(48vh, 360px); gap: 18px; justify-content: flex-start; margin-top: 18px; overflow-x: auto; overflow-y: visible; padding: 24px calc(50% - 105px) 34px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.style-grid::-webkit-scrollbar { display: none; }
.style-card { position: relative; flex: 0 0 174px; padding: 0; border: 0; background: transparent; opacity: .58; text-align: center; scroll-snap-align: center; transform: scale(.88); transition: opacity .25s ease, transform .25s ease; }
.style-card:hover { opacity: .82; transform: translateY(-4px) scale(.92); }
.style-card:hover .artist-profile { background: #f7f1eb; box-shadow: 0 16px 34px rgba(43,35,32,.14); }
.style-card.selected { z-index: 2; opacity: 1; transform: scale(1.08); }
.style-card.selected .artist-profile { background: var(--ai-soft); box-shadow: 0 16px 38px rgba(124,92,224,.22); }
.style-card.selected::after { position: absolute; top: 10px; right: 10px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--ai-gradient); color: white; content: "✓"; font-weight: 700; }
.artist-profile { display: flex; min-height: 226px; flex-direction: column; align-items: center; justify-content: center; padding: 0 0 16px; border-radius: 34px 14px 36px 18px; background: var(--paper); box-shadow: 0 12px 28px rgba(43,35,32,.12); transition: background .25s, box-shadow .25s; }
.style-card:nth-child(even) .artist-profile { border-radius: 44% 56% 40% 60% / 55% 44% 56% 45%; }
.artist-art { width: 100%; height: 172px; object-fit: cover; border-radius: 31px 12px 0 0; }
.artist-profile strong { display: -webkit-box; max-width: 94%; margin-top: 8px; overflow: hidden; font: 600 14px/1.2 var(--serif); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.loading-card { grid-column: 1 / -1; padding: 40px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); text-align: center; }
.style-options { display: flex; min-height: 112px; flex-wrap: wrap; align-content: flex-start; gap: 12px 28px; justify-content: center; margin-top: 18px; }
.style-options fieldset { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; border: 0; }
.style-options legend { width: 100%; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.style-options label { position: relative; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; transition: border-color .2s, background .2s, color .2s; }
.style-options label:has(input:checked) { border-color: var(--ai); background: var(--ai-soft); color: var(--ink); }
.style-options input { position: absolute; opacity: 0; pointer-events: none; }
.style-options label:has(input:focus-visible) { outline: 3px solid rgba(124,92,224,.24); outline-offset: 2px; }
.panel-footer { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.preview-panel { position: relative; }
.generating, .error-state { max-width: 620px; }
.agent-orb { display: block; width: 72px; height: 72px; margin-bottom: 34px; border-radius: 45% 55% 57% 43%; background: var(--ai-gradient); animation: morph 2.2s ease-in-out infinite; }
.generating p, .error-state p { color: var(--muted); }
.generation-line { height: 3px; margin-top: 32px; overflow: hidden; border-radius: 99px; background: var(--ai-soft); }
.generation-line i { display: block; width: 36%; height: 100%; background: var(--ai-gradient); animation: scan 1.4s ease-in-out infinite; }
.preview-result { display: grid; height: 100%; grid-template-columns: minmax(250px,.7fr) minmax(320px,1fr); grid-template-rows: 1fr auto; gap: 30px 5vw; align-items: center; }
.result-image { margin: 0; text-align: center; }
.result-image img { display: block; width: auto; max-width: min(36vw, 520px); max-height: 64vh; margin: auto; object-fit: contain; box-shadow: 0 34px 34px -24px rgba(43,35,32,.62); }
#generated-image, #purchase-artwork { view-transition-name: generated-artwork; }
::view-transition-group(generated-artwork) { animation-duration: .7s; animation-timing-function: cubic-bezier(.22,.9,.35,1); }
.result-image .selected-style-label { display: block; margin: 16px auto 0; color: var(--muted); font: 500 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.result-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-purchase { grid-template-columns: minmax(340px, .9fr) minmax(440px, 1.1fr); background: var(--paper); }
.purchase-visual { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; padding: 34px; }
.purchase-stage { position: relative; width: min(38vw, 58vh, 560px); aspect-ratio: 1; }
.purchase-artwork, .purchase-frame { position: absolute; display: block; object-fit: cover; }
.purchase-artwork { z-index: 1; box-shadow: 0 28px 40px -24px rgba(43,35,32,.5); transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease, clip-path .35s ease; }
.purchase-frame { inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.purchase-panel { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 5vh 7vw 5vh 5vw; background: var(--white); }
.purchase-panel > p { margin: 10px 0 22px; color: var(--muted); }
.purchase-groups { display: grid; gap: 18px; }
.purchase-groups fieldset { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; border: 0; }
.purchase-groups legend { width: 100%; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.purchase-option { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); }
.purchase-option.selected { border-color: var(--ai); background: var(--ai-soft); color: var(--ai); font-weight: 700; }
.no-addons { padding: 18px 0; border-block: 1px solid var(--line); color: var(--muted); }
.purchase-summary { display: grid; gap: 9px; margin: 28px 0 18px; padding-block: 18px; border-block: 1px solid var(--line); }
.purchase-summary div { display: flex; justify-content: space-between; gap: 20px; }
.purchase-summary span { color: var(--muted); font-size: 12px; }
.purchase-summary strong { font: 600 16px var(--serif); text-align: right; }
.checkout-button { width: 100%; }
.checkout-note { min-height: 18px; margin: 8px 0 0 !important; font-size: 11px; text-align: center; }

@media (min-width: 761px) {
  .style-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 24px 0 34px; overflow: visible; scroll-snap-type: none; }
  .style-card { width: 100%; min-width: 0; transform: scale(.94); }
  .style-card:hover { transform: translateY(-4px) scale(.97); }
  .style-card.selected { transform: scale(1.02); }
  .artist-profile { min-height: 202px; }
  .artist-art { height: 150px; }
}

@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(380%); } }
@keyframes morph { 50% { border-radius: 60% 40% 38% 62%; transform: rotate(18deg) scale(1.08); } }
@keyframes ai-scan { 0%, 30% { transform: translateX(-45%); } 75%, 100% { transform: translateX(45%); } }
@keyframes focus-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes action-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cta-spark { 0%, 55%, 100% { opacity: .55; transform: translateX(0); } 70% { opacity: 1; filter: drop-shadow(0 0 4px currentColor); transform: translateX(4px); } }
@keyframes brief-open { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }

@media (max-width: 760px) {
  body { overflow: auto; }
  body.wizard-mode { overflow: auto; }
  .home-header { position: absolute; height: 66px; grid-template-columns: 1fr auto; padding: 0 18px; }
  .home-brand { width: 96px; }
  .home-nav { display: none; }
  .home-create-button { font-size: 11px; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding: 104px 20px 68px; }
  .home-hero::before { top: 42%; right: -55%; width: 150%; height: 56%; }
  .hero-copy h1 { font-size: clamp(49px, 15vw, 68px); line-height: .9; }
  .hero-copy > p { margin-top: 22px; font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 27px; }
  .home-primary { width: 100%; justify-content: space-between; }
  .hero-brief-button { width: 100%; grid-template-columns: 1fr auto; align-items: baseline; padding: 6px 0 9px; }
  .hero-brief-button strong { font-size: 18px; }
  .hero-promise { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 35px; }
  .hero-promise span:last-child { grid-column: 1 / -1; }
  .hero-worktable { width: 100%; height: 470px; }
  .work-card-main { left: 21%; width: 62%; height: 76%; }
  .work-card-left { bottom: 0; width: 40%; height: 34%; }
  .work-card-right { right: -4%; bottom: 5%; width: 36%; height: 32%; }
  .agent-note { top: 5%; right: -7px; }
  .home-section { padding: 78px 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .section-heading h2, .delivery-intro h2, .makers-heading h2, .story-copy h2, .stylist-invite h2 { font-size: 47px; }
  .section-heading p { font-size: 13px; }
  .editorial-products { display: flex; margin-right: -20px; padding: 0 20px 22px 0; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .editorial-product { flex: 0 0 78vw; height: 430px; scroll-snap-align: start; }
  .feature-small { flex-basis: 68vw; height: 330px; }
  .editorial-quote { flex: 0 0 68vw; min-height: 250px; }
  .delivery-section { grid-template-columns: 1fr; gap: 45px; }
  .delivery-intro { position: static; }
  .delivery-intro p { font-size: 13px; }
  .delivery-steps li { grid-template-columns: 90px 1fr; gap: 18px; padding: 25px 0; }
  .delivery-steps img { width: 90px; height: 90px; }
  .delivery-steps h3 { font-size: 23px; }
  .delivery-steps p { font-size: 11px; }
  .makers-section { min-height: auto; padding-bottom: 95px; }
  .maker-field { display: flex; margin: 45px -20px 0 0; padding: 0 34px 42px 5px; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .maker-card { flex: 0 0 76vw; min-height: 330px; scroll-snap-align: center; }
  .maker-two { margin-top: 0; }
  .makers-link { margin-top: 30px; }
  .story-section { grid-template-columns: 1fr; gap: 58px; }
  .story-image span { right: -10px; font-size: 20px; }
  .story-copy h2 { font-size: 43px; }
  .story-copy p { font-size: 13px; }
  .stylist-invite { grid-template-columns: auto 1fr; padding: 70px 20px; gap: 18px; }
  .invite-mark { align-self: start; font-size: 28px; }
  .stylist-invite > div:last-child { grid-column: 2; }
  .stylist-invite h2 { font-size: 40px; }
  .home-footer { padding: 50px 20px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 42px; padding-bottom: 42px; }
  .footer-brand p { font-size: 34px; }
  .footer-links { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .footer-links strong { font-size: 14px; }
  .footer-links a { font-size: 10px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .brief-header { height: 58px; padding: 0 16px; }
  .brief-header img { width: 90px; }
  .brief-header span { display: none; }
  .brief-layout { height: 100dvh; grid-template-columns: 1fr; padding-top: 58px; }
  .brief-index { display: grid; height: 38px; grid-template-columns: repeat(3,1fr); gap: 0; padding: 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brief-index span { display: block; align-self: center; font-size: 9px; }
  .brief-index b { display: none; }
  .brief-input-panel { width: 100%; height: calc(100dvh - 96px); justify-content: center; padding: 22px 20px max(22px,env(safe-area-inset-bottom)); overflow-y: auto; }
  .brief-input-panel::before { top: 8vh; right: -55vw; width: 330px; height: 330px; }
  .brief-input-panel .home-kicker { margin-bottom: 9px; }
  .brief-input-panel h2 { font-size: clamp(48px,16vw,66px); }
  .brief-input-panel > p { margin: 16px 0 22px; font-size: 13px; line-height: 1.5; }
  .brief-form { gap: 17px; }
  .brief-form input[type="date"] { padding: 9px 0; font-size: 27px; }
  .special-date-field { grid-template-columns: 1.4fr .8fr; }
  .special-date-field select { font-size: 23px; }
  .brief-form fieldset { gap: 7px; }
  .brief-form fieldset label span { padding: 8px 11px; font-size: 10px; }
  .text-field textarea { font-size: 22px; }
  .brief-submit { min-height: 52px; }
  .brief-results { display: block; height: calc(100dvh - 96px); padding: 18px 0 78px; overflow-y: auto; }
  .brief-results-heading { padding: 0 20px; }
  .brief-results-heading .home-kicker { margin-bottom: 6px; }
  .brief-results-heading h2 { font-size: 42px; }
  .brief-results-heading p { margin: 10px 0 0; font-size: 11px; line-height: 1.45; }
  .brief-recommendations { display: flex; gap: 12px; margin-top: 18px; padding: 10px calc(50vw - 100px) 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .brief-direction, .brief-direction:nth-child(2) { height: min(49dvh,400px); flex: 0 0 200px; scroll-snap-align: center; transform: none; }
  .brief-direction:hover, .brief-direction:nth-child(2):hover { transform: none; }
  .brief-direction div { padding: 13px; }
  .brief-direction strong { font-size: 18px; }
  .brief-direction p { min-height: 44px; font-size: 10px; }
  .brief-back { position: fixed; right: 20px; bottom: max(14px,env(safe-area-inset-bottom)); left: 20px; z-index: 2; min-height: 44px; border: 1px solid var(--line); background: rgba(250,246,240,.94); backdrop-filter: blur(12px); }
  .cosmos-direction, .cosmos-direction:nth-child(2) { height: min(52dvh,410px); }
  .cosmos-direction > img { width: 180px; }
  .cosmos-direction div { margin-top: 8px; }
  .cosmos-preview { display: flex; height: calc(100dvh - 96px); align-items: stretch; flex-direction: column; gap: 12px; padding: 14px 20px 82px; overflow-y: auto; }
  .cosmos-copy h2 { font-size: 39px; }
  .cosmos-copy p { display: -webkit-box; margin: 8px 0; overflow: hidden; font-size: 10px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .cosmos-copy a { font-size: 9px; }
  .cosmos-piece { width: min(52dvh,80vw,350px); }
  .cosmos-piece figcaption { margin-top: 8px; }
  .cosmos-piece figcaption strong { font-size: 14px; }
  .cosmos-actions { position: fixed; right: 14px; bottom: max(12px,env(safe-area-inset-bottom)); left: 14px; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cosmos-actions button { min-height: 48px; padding: 0 10px; background: rgba(43,35,32,.9); }
  .cosmos-actions p { right: 0; bottom: 56px; width: 100%; padding: 7px; background: rgba(43,35,32,.86); text-align: center; }
  .app { min-height: 100dvh; overflow: visible; }
  .header { height: 64px; padding: 0 16px; }
  .logo { width: 92px; }
  .progress { gap: 10px; }
  .progress li { font-size: 0; }
  .progress li::before { font-size: 11px; }
  .step { position: relative; inset: auto; min-height: 100dvh; padding-top: 88px; }
  .step.active { animation: none; }
  .step-upload { grid-template-columns: 1fr; gap: 24px; padding-inline: 20px; padding-bottom: 34px; }
  h1 { font-size: 38px; }
  h2 { font-size: 38px; }
  .step-upload .intro { max-width: 330px; margin-inline: auto; text-align: center; transition: opacity .25s, transform .25s; }
  .step-upload .intro .kicker { margin-bottom: 7px; }
  .step-upload .intro p { margin: 10px 0 0; font-size: 14px; }
  .crop-workspace { height: auto; }
  .drop-prompt { width: min(56vw, 220px); aspect-ratio: 4 / 5; border-radius: 16px; }
  .drop-prompt .upload-mark { width: 48px; height: 48px; margin-bottom: 10px; font-size: 22px; }
  .drop-prompt strong { font-size: 21px; }
  .crop-frame { width: min(76vw, 304px, calc((100dvh - 224px) * 2 / 3)); border-radius: 12px; animation: focus-in .45s cubic-bezier(.22,.9,.35,1) both; }
  .crop-frame .crop-bleed { inset: -62px; width: calc(100% + 124px); height: calc(100% + 124px); }
  .crop-controls { grid-template-columns: auto auto minmax(76px,1fr) auto 40px auto; width: min(92vw, 380px); margin-top: 0; padding: 10px 12px; animation: action-in .4s .08s both; }
  .next-upload { position: fixed; right: 20px; bottom: max(14px, env(safe-area-inset-bottom)); left: 20px; z-index: 30; display: none; width: calc(100% - 40px); justify-self: stretch; }
  .step-upload.has-image { height: 100dvh; min-height: 0; align-content: start; gap: 10px; padding-top: 76px; padding-bottom: 84px; overflow: hidden; overscroll-behavior: none; }
  .step-upload.has-image .intro { position: absolute; opacity: 0; pointer-events: none; transform: translateY(-10px); }
  .step-upload.has-image .next-upload { display: inline-flex; animation: action-in .4s .16s both; }
  .step-style, .step-preview, .step-purchase { grid-template-columns: 1fr; padding-top: 64px; }
  .photo-rail { padding: 28px 20px; }
  .photo-rail img { width: 100px; border-radius: 14px; }
  .selection-panel, .preview-panel { min-height: calc(100dvh - 245px); padding: 32px 18px 96px; }
  .step-style { position: relative; height: 100dvh; min-height: 0; overflow: hidden; background: var(--white); }
  .step-style .photo-rail {
    position: absolute;
    top: 76px;
    right: 14px;
    z-index: 8;
    width: 72px;
    min-height: 108px;
    gap: 2px;
    padding: 6px 6px 7px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(43,35,32,.2);
    transform: rotate(-4deg);
  }
  .step-style .photo-rail .rail-label { display: none; }
  .step-style .photo-rail img { width: 60px; height: 76px; border-radius: 0; box-shadow: none; }
  .step-style .photo-rail .text-button { color: var(--ai); font-family: "Caveat", cursive; font-size: 14px; text-decoration: none; }
  .selection-panel { display: block; min-height: 0; height: calc(100dvh - 64px); padding: 18px 0 176px; overflow-y: auto; background: var(--white); }
  .selection-panel > .kicker { margin: 0 96px 4px 18px; }
  .selection-panel > h2 { margin: 0 96px 0 18px; font-size: 30px; line-height: .96; }
  .selection-panel > p { margin: 5px 96px 10px 18px; font-size: 11px; line-height: 1.35; }
  .style-grid {
    display: flex;
    grid-template-columns: none;
    max-height: none;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 10px;
    padding: 28px calc(50vw - 98px) 42px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .style-grid::-webkit-scrollbar { display: none; }
  .style-card { flex: 0 0 142px; scroll-snap-align: center; opacity: .58; transform: scale(.84); transition: opacity .25s, transform .25s; }
  .style-card:hover { transform: scale(.84); }
  .style-card.selected { z-index: 2; opacity: 1; transform: scale(1.18); }
  .style-card.selected::after { top: 4px; right: 4px; }
  .artist-profile, .style-card:nth-child(even) .artist-profile { min-height: 230px; padding: 0 0 13px; border-radius: 30px 14px 32px 16px; box-shadow: 0 13px 25px rgba(43,35,32,.16); }
  .artist-art { width: 100%; height: 188px; object-fit: cover; border-radius: 27px 12px 0 0; }
  .artist-profile strong { margin-top: 9px; padding-inline: 7px; font-size: 13px; }
  .style-options { min-height: 132px; align-content: flex-start; justify-content: flex-start; margin: 0 18px; gap: 10px 20px; overflow: visible; }
  .style-options fieldset { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: none; }
  .style-options label { flex: 0 0 auto; min-height: 34px; }
  .step-preview { position: relative; height: 100dvh; min-height: 0; overflow: hidden; }
  .step-preview .photo-rail { position: fixed; top: 8px; right: 10px; z-index: 25; width: 92px; min-height: 0; gap: 2px; padding: 7px 7px 8px; background: var(--white); box-shadow: 0 10px 24px rgba(43,35,32,.2); transform: rotate(-4deg); }
  .step-preview .photo-rail img { width: 78px; height: 98px; border-radius: 0; box-shadow: none; }
  .step-preview .rail-label { display: none; }
  .step-preview .photo-rail .text-button { color: var(--ai); font-family: "Caveat", cursive; font-size: 16px; line-height: 1.1; text-decoration: none; }
  .preview-panel { height: calc(100dvh - 64px); min-height: 0; padding: 14px 14px 10px; overflow: hidden; }
  .step-preview .result-copy { padding-right: 82px; }
  .step-preview .result-copy .kicker { margin-bottom: 3px; }
  .step-preview .result-copy h2 { font-size: 28px; }
  .step-preview .result-copy p { display: none; }
  .panel-footer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 15; align-items: stretch; flex-direction: column; margin: 0; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); background: rgba(255,253,250,.96); backdrop-filter: blur(14px); }
  .preview-result { width: 100%; min-width: 0; height: 100%; grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr) auto; gap: 7px; }
  .result-image { display: flex; width: 100%; height: 100%; min-height: 0; align-items: center; justify-content: center; }
  .result-image img { width: auto; max-width: 100%; height: auto; min-height: 0; max-height: min(100%, 52dvh); object-fit: contain; }
  .result-image .selected-style-label { display: none; }
  .result-actions { position: relative; display: grid; grid-column: auto; grid-template-columns: 1fr 1fr; gap: 9px; padding-top: 7px; border-top: 0; }
  .result-actions .secondary-button { min-width: 0; min-height: 44px; padding-inline: 12px; border-color: var(--line); font-size: 12px; font-weight: 700; white-space: nowrap; }
  #try-again { grid-column: 1; grid-row: 1; }
  #retry-preview { grid-column: 2; grid-row: 1; }
  #download-preview { position: absolute; bottom: 2px; left: 0; display: grid; width: 48px; height: 48px; padding: 0; place-items: center; border-color: var(--ink); border-radius: 50%; }
  #download-preview svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
  #purchase-next { min-height: 54px; grid-column: 1 / 3; grid-row: 2; margin-left: 57px; font-size: 16px; }
  .primary-button { font-size: 16px; font-weight: 700; }
  .step-purchase { height: 100dvh; min-height: 0; overflow: hidden; }
  .purchase-visual { height: 42dvh; gap: 5px; padding: 8px 18px; }
  .purchase-stage { width: min(72vw, 36dvh); }
  .purchase-panel { height: calc(58dvh - 64px); min-height: 0; justify-content: flex-start; padding: 10px 18px 74px; overflow-y: auto; }
  .purchase-panel h2 { font-size: 28px; }
  .purchase-panel > .kicker { margin-bottom: 3px; }
  .purchase-panel > p { margin: 4px 0 10px; font-size: 11px; }
  .purchase-groups fieldset { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .purchase-option { flex: 0 0 auto; min-height: 38px; font-size: 11px; }
  .purchase-summary { margin: 10px 0; padding-block: 9px; }
  .checkout-button { position: fixed; right: 18px; bottom: max(10px, env(safe-area-inset-bottom)); left: 18px; z-index: 20; width: auto; min-height: 48px; }
  .checkout-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  ::view-transition-group(source-photo) { animation-duration: .01ms; }
  .reveal { opacity: 1; transform: none; }
}
