:root {
  --ink: #221f1d;
  --muted: #746d68;
  --line: rgba(62, 52, 46, 0.12);
  --cream: #f7f3ee;
  --paper: rgba(255, 255, 255, 0.88);
  --accent: #8b5e4d;
  --accent-dark: #684235;
  --accent-soft: #eadbd2;
  --shadow: 0 24px 70px rgba(70, 48, 37, 0.09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: linear-gradient(180deg, #faf8f5 0%, #f3ede7 100%); color: var(--ink); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.page-glow { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(1px); opacity: .45; pointer-events: none; z-index: 0; }
.glow-one { top: -280px; right: -140px; background: radial-gradient(circle, #eedcd3 0%, transparent 70%); }
.glow-two { bottom: -330px; left: -210px; background: radial-gradient(circle, #e6ded5 0%, transparent 70%); }

.topbar, .app-shell, footer { position: relative; z-index: 1; }
.topbar { max-width: 1240px; margin: 0 auto; padding: 28px 28px 10px; display: flex; justify-content: space-between; align-items: center; }
.wordmark { color: var(--ink); text-decoration: none; font-family: Georgia, serif; letter-spacing: .16em; font-size: 18px; font-weight: 700; }
.wordmark span { color: var(--accent); font-size: .66em; }
.topbar-label { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.62); color: var(--muted); padding: 8px 14px; font-size: 10px; font-weight: 750; letter-spacing: .14em; }

.app-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 54px 0 24px; }
.hero { max-width: 800px; margin: 0 auto 52px; text-align: center; }
.kicker { color: var(--accent); font-size: 12px; letter-spacing: .18em; font-weight: 750; }
.hero h1 { margin: 16px 0 18px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.035em; }
.hero > p { max-width: 670px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.7; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 26px; }
.trust-row span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: 12px; color: #655d58; background: rgba(255,255,255,.55); }

#tryonForm { display: grid; gap: 22px; }
.panel { border: 1px solid rgba(255,255,255,.9); background: var(--paper); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.section-heading { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.section-heading .step { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .08em; }
.section-heading h2 { margin: 1px 0 7px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.55; }

.method-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.method-card { --method-halo: rgba(178,151,132,.24); position: relative; isolation: isolate; display: flex; flex-direction: column; text-align: left; border: 1px solid rgba(92,73,62,.1); border-radius: 21px; overflow: hidden; padding: 0; background: linear-gradient(155deg, #faf7f2 0%, #f2ece5 54%, #ece4dc 100%); cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.method-card::before { content: ""; position: absolute; z-index: 0; width: 130%; aspect-ratio: 1; left: -15%; top: -28%; border-radius: 50%; background: radial-gradient(circle, var(--method-halo) 0, transparent 66%); filter: blur(8px); pointer-events: none; }
.method-card[data-id="tape-in"] { --method-halo: rgba(187,171,133,.29); }
.method-card[data-id="butterfly-weft"] { --method-halo: rgba(190,105,69,.23); }
.method-card[data-id="genius-weft"] { --method-halo: rgba(210,191,126,.31); }
.method-card[data-id="clip-in"] { --method-halo: rgba(113,78,59,.2); }
.method-card[data-id="custom-reference"] { --method-halo: rgba(111,193,187,.25); background: linear-gradient(155deg, #f2faf7 0%, #edf1f2 48%, #eee9f3 100%); }
.custom-method-card { border-color: rgba(77,132,128,.16); }
.method-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(61,42,32,.09); }
.method-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(139,94,77,.15); }
.method-card-media { position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 1.18; overflow: hidden; background: transparent; }
.method-card-media::before { content: ""; position: absolute; z-index: 0; left: 10%; right: 10%; bottom: 9%; height: 18%; border-radius: 50%; background: var(--method-halo); filter: blur(21px); opacity: .82; }
.method-card-media::after { content: ""; position: absolute; z-index: 2; inset: auto 0 -1px; height: 38%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(241,234,227,.48) 58%, rgba(241,234,227,.92)); }
.method-card-media img { position: relative; z-index: 1; width: 108%; height: 108%; object-fit: contain; padding: 10px 8px 0; background: transparent; mix-blend-mode: multiply; filter: saturate(1.02) contrast(1.035); -webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 45%, #000 48%, rgba(0,0,0,.9) 67%, transparent 98%); mask-image: radial-gradient(ellipse 88% 82% at 50% 45%, #000 48%, rgba(0,0,0,.9) 67%, transparent 98%); }
.method-card-copy { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 7px; padding: 6px 17px 18px; min-height: 128px; margin-top: -15px; background: transparent; }
.method-card strong { font-size: 16px; }
.method-card small { color: var(--muted); line-height: 1.45; }
.method-card em { margin-top: auto; color: var(--accent); font-size: 11px; font-style: normal; letter-spacing: .07em; text-transform: uppercase; }
.custom-method-media::after { background: linear-gradient(180deg, transparent, rgba(237,243,242,.48) 58%, rgba(238,238,241,.94)); }
.custom-method-visual { position: relative; z-index: 1; width: 58%; aspect-ratio: 1; border: 1px solid rgba(70,132,129,.24); border-radius: 29% 36% 31% 38%; background: radial-gradient(circle at 38% 35%, rgba(255,255,255,.98), rgba(160,229,216,.58) 31%, rgba(190,177,229,.58) 62%, rgba(109,104,151,.18)); box-shadow: 0 18px 36px rgba(67,100,103,.18), inset 0 1px 0 rgba(255,255,255,.8); transform: rotate(-6deg); }
.custom-method-visual::before, .custom-method-visual::after { content: ""; position: absolute; left: 50%; top: 50%; border: 1px solid rgba(48,122,121,.38); border-radius: 50%; transform: translate(-50%, -50%); }
.custom-method-visual::before { width: 46%; height: 46%; box-shadow: 0 0 22px rgba(111,226,208,.48); }
.custom-method-visual::after { width: 72%; height: 72%; border-color: rgba(119,91,181,.24); }
.custom-method-visual i { position: absolute; z-index: 2; width: 7px; height: 7px; border-radius: 50%; background: #effffc; box-shadow: 0 0 12px rgba(72,214,195,.9); }
.custom-method-visual i:nth-child(1) { left: 22%; top: 38%; }
.custom-method-visual i:nth-child(2) { right: 20%; top: 25%; }
.custom-method-visual i:nth-child(3) { right: 29%; bottom: 18%; }

.shade-tools { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search-box { min-width: 290px; }
.search-box input, .select-field select { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 13px 15px; outline: none; color: var(--ink); }
.search-box input:focus, .select-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,94,77,.10); }
.shade-filters { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.shade-filters button { border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); padding: 8px 12px; cursor: pointer; font-size: 12px; }
.shade-filters button.active { background: var(--ink); color: white; border-color: var(--ink); }
.shade-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-height: 530px; overflow: auto; padding: 3px 5px 8px 3px; scrollbar-color: #c7b5aa transparent; }
.shade-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 8px; text-align: left; cursor: pointer; transition: border-color .16s, transform .16s; }
.shade-card:hover { transform: translateY(-2px); }
.shade-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(139,94,77,.14); }
.shade-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; background: #f3f0ec; }
.shade-card span { display: block; padding: 9px 3px 4px; overflow: hidden; }
.shade-card strong, .shade-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shade-card strong { font-size: 12px; }
.shade-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.selected-shade { display: grid; grid-template-columns: 90px 1fr 128px; align-items: center; gap: 18px; margin-top: 22px; border-radius: 18px; padding: 14px; background: linear-gradient(110deg, #f0e4dc, #f8f4f0); }
.selected-shade img { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; background: #fff; }
.selected-shade .product-preview { width: 128px; object-fit: contain; }
.selected-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.selected-copy span { color: var(--accent); font-size: 10px; letter-spacing: .15em; }
.selected-copy strong { font-family: Georgia, serif; font-size: 22px; }
.selected-copy small { color: var(--muted); }

.custom-reference-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(290px, .75fr); gap: 22px; align-items: stretch; }
.custom-reference-box { min-height: 360px; }
.custom-reference-box img { min-height: 360px; }
.custom-reference-prompt { max-width: 390px; padding: 28px; }
.reference-upload-icon { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 7px; border: 1px solid rgba(139,94,77,.2); border-radius: 26px; background: radial-gradient(circle at 35% 28%, #fff, #eadfd8 58%, #d8cbc4); box-shadow: 0 15px 30px rgba(93,65,52,.11); }
.reference-upload-icon::before { content: ""; width: 26px; height: 31px; border: 1.5px solid var(--accent); border-radius: 7px; }
.reference-upload-icon::after { content: "↑"; position: absolute; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; }
.reference-guidance { border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 38px); background: linear-gradient(145deg, #f8f2ed, #eee7e2); }
.reference-guidance > span { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.reference-guidance h3 { margin: 14px 0 13px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; line-height: 1.08; }
.reference-guidance p, .reference-guidance li { color: var(--muted); font-size: 13px; line-height: 1.65; }
.reference-guidance ul { margin: 17px 0 0; padding-left: 18px; }
.reference-guidance li + li { margin-top: 7px; }

.photo-options-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 22px; }
.upload-box { position: relative; min-height: 430px; border: 1.5px dashed rgba(139,94,77,.38); border-radius: 20px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #faf7f3, #f0e7e0); cursor: pointer; transition: border-color .2s, background .2s; }
.upload-box:hover, .upload-box.dragging { border-color: var(--accent); background: #f3e7df; }
.upload-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-box img { width: 100%; height: 100%; min-height: 430px; object-fit: contain; background: #eee8e3; }
.upload-prompt { text-align: center; display: flex; flex-direction: column; gap: 7px; pointer-events: none; }
.upload-prompt b { font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.upload-prompt small { color: var(--muted); }
.upload-box > button { position: absolute; right: 14px; bottom: 14px; border: 1px solid rgba(255,255,255,.8); background: rgba(31,27,25,.78); color: #fff; border-radius: 999px; padding: 9px 14px; cursor: pointer; z-index: 2; }
.option-stack { display: flex; flex-direction: column; gap: 18px; }
.option-fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 0; }
.option-fieldset legend, .select-field > span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5e5550; }
.choice-card { display: block; cursor: pointer; margin-top: 10px; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card span { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.choice-card input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(139,94,77,.12); background: #fdf9f6; }
.choice-card small { color: var(--muted); }
.render-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.render-choice span { position: relative; min-height: 91px; padding: 13px; }
.render-choice b { font-size: 13px; }
.render-choice small { font-size: 10px; line-height: 1.35; }
.render-choice em { align-self: flex-start; margin-top: auto; border-radius: 999px; padding: 4px 7px; background: var(--accent-soft); color: var(--accent-dark); font-size: 7px; font-style: normal; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.select-field { display: flex; flex-direction: column; gap: 9px; }
.select-field select { cursor: pointer; }
.length-fieldset { transition: opacity .2s ease; }
.length-fieldset:disabled { opacity: .58; }
.length-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin-top: 10px; }
.length-prompt { grid-column: 1 / -1; margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.length-choice-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 0; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .16s, box-shadow .16s, transform .16s, background .16s; }
.length-choice-card:hover { transform: translateY(-2px); border-color: rgba(139,94,77,.38); }
.length-choice-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(139,94,77,.12); background: #fdf9f6; }
.length-choice-card span { min-height: 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px; }
.length-choice-card b { font-family: Georgia, serif; font-size: 22px; font-weight: 500; line-height: 1; }
.length-choice-card small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.length-choice-card em { margin-top: auto; border-radius: 999px; padding: 4px 7px; background: var(--accent-soft); color: var(--accent-dark); font-size: 8px; font-style: normal; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.consent-row { display: flex; align-items: flex-start; gap: 11px; margin: 24px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; cursor: pointer; }
.consent-row input { margin-top: 2px; accent-color: var(--accent); }
.generate-button { width: 100%; border: 0; border-radius: 15px; background: var(--ink); color: #fff; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 14px; cursor: pointer; font-weight: 700; letter-spacing: .02em; transition: background .2s, transform .2s; }
.generate-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.generate-button:disabled { cursor: wait; opacity: .58; transform: none; }
.generate-button i { font-style: normal; font-size: 20px; }
.form-message { min-height: 20px; margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.form-message.error { color: #9c3e37; }

.progress-panel {
  --digital-mint: #9ff7e2;
  --digital-violet: #d1c2ff;
  --digital-cyan: #80e7fa;
  --field-brightness: .76;
  --field-opacity: .74;
  --veil-opacity: .36;
  --bloom-opacity: .24;
  --orbit-opacity: .29;
  --grid-opacity: .13;
  position: relative;
  isolation: isolate;
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 64px);
  min-height: 510px;
  overflow: hidden;
  color: #fff;
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 10% 16%, rgba(128,231,250,.24), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(209,194,255,.22), transparent 40%),
    linear-gradient(135deg, #111b27 0%, #211c35 56%, #151827 100%);
  box-shadow: 0 30px 86px rgba(38,27,55,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
.progress-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 73%);
  mask-image: linear-gradient(90deg, #000, transparent 73%);
}
.development-stage, .progress-copy { position: relative; z-index: 1; }
.development-stage { display: grid; place-items: center; align-self: center; min-width: 0; perspective: 1000px; }
.developing-card {
  width: min(100%, 335px);
  padding: 13px 13px 16px;
  border: 1px solid rgba(220,255,249,.3);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(237,255,251,.2), rgba(218,205,255,.08));
  box-shadow: 0 28px 70px rgba(0,0,0,.34), 0 0 42px rgba(128,231,250,.14), inset 0 1px 0 rgba(255,255,255,.27);
  backdrop-filter: blur(18px);
  transform: rotateY(1.4deg) rotateZ(-.55deg);
  animation: card-float 6.4s ease-in-out infinite;
}
.developing-card-top, .developing-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.developing-card-top { height: 32px; padding: 0 3px 9px; font-size: 8px; font-weight: 750; letter-spacing: .17em; color: rgba(255,255,255,.72); }
.developing-card-top i { display: flex; align-items: center; gap: 6px; color: var(--digital-mint); font-style: normal; }
.developing-card-top i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 13px currentColor; animation: digital-pulse 1.8s ease-in-out infinite; }
.developing-window { position: relative; isolation: isolate; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 13px; background: linear-gradient(155deg, #dff9f4 0%, #dcecf8 42%, #e4ddfb 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.74), 0 0 34px rgba(128,231,250,.18); }
.development-atmosphere {
  position: absolute;
  z-index: 0;
  inset: -15%;
  overflow: hidden;
  opacity: var(--field-opacity);
  filter: blur(34px) brightness(var(--field-brightness)) saturate(1.13);
  transform: scale(1.09);
  transition: opacity 2.2s ease, filter 2.4s cubic-bezier(.2,.72,.2,1);
  animation: atmosphere-drift 12s ease-in-out infinite alternate;
}
.ambient-orb { position: absolute; display: block; border-radius: 50%; mix-blend-mode: screen; }
.orb-mint { width: 82%; aspect-ratio: 1; left: -24%; top: 4%; background: radial-gradient(circle, rgba(115,249,221,.98), rgba(73,202,190,.44) 42%, transparent 73%); animation: ambient-orbit-a 10s ease-in-out infinite alternate; }
.orb-violet { width: 92%; aspect-ratio: 1; right: -34%; top: 18%; background: radial-gradient(circle, rgba(198,177,255,.96), rgba(119,102,218,.38) 45%, transparent 74%); animation: ambient-orbit-b 13s ease-in-out infinite alternate; }
.orb-pearl { width: 66%; aspect-ratio: 1; left: 17%; bottom: -16%; background: radial-gradient(circle, rgba(255,255,255,1), rgba(139,229,237,.36) 43%, transparent 72%); animation: ambient-orbit-c 9s ease-in-out infinite alternate; }
.development-darkveil, .development-grid, .development-lightfield,
.development-particles, .development-bloom, .development-orbit, .development-core, .development-finish-flash { position: absolute; pointer-events: none; }
.development-darkveil {
  z-index: 2;
  inset: 0;
  opacity: var(--veil-opacity);
  background: radial-gradient(ellipse at 50% 42%, rgba(255,255,255,.04) 0, rgba(46,62,93,.08) 48%, rgba(24,28,61,.46) 100%);
  transition: opacity 2.2s ease;
}
.development-grid {
  z-index: 4;
  inset: 0;
  opacity: var(--grid-opacity);
  background-image:
    linear-gradient(rgba(35,127,136,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,76,167,.16) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 8%, transparent 72%);
  transition: opacity 1.8s ease;
}
.development-lightfield {
  z-index: 5;
  inset: -34%;
  opacity: calc(.18 + var(--bloom-opacity));
  background: conic-gradient(from 10deg at 50% 42%, transparent 0 18%, rgba(69,225,205,.34) 25%, transparent 34% 54%, rgba(137,109,235,.3) 63%, transparent 72%);
  filter: blur(24px);
  mix-blend-mode: screen;
  animation: field-rotate 14s linear infinite;
  transition: opacity 1.8s ease;
}
.development-particles { z-index: 6; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; opacity: .86; }
.development-bloom {
  z-index: 7;
  left: 50%;
  top: 44%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: var(--bloom-opacity);
  background: radial-gradient(circle, rgba(255,255,255,.92) 0, rgba(81,233,214,.4) 18%, rgba(150,123,238,.19) 40%, transparent 70%);
  filter: blur(8px);
  transform: translate(-50%, -50%) scale(.82);
  mix-blend-mode: screen;
  animation: bloom-breathe 3.8s ease-in-out infinite;
  transition: opacity 1.8s ease;
}
.development-orbit {
  z-index: 8;
  left: 50%;
  top: 44%;
  width: 48%;
  aspect-ratio: 1;
  border: 1px solid rgba(24,158,157,.58);
  border-left-color: transparent;
  border-bottom-color: rgba(114,88,195,.24);
  border-radius: 50%;
  opacity: var(--orbit-opacity);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 8px rgba(69,225,205,.46));
  animation: orbit-rotate 8s linear infinite;
  transition: opacity 1.6s ease;
}
.development-orbit::before, .development-orbit::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #286d79;
  box-shadow: 0 0 12px rgba(255,255,255,.92);
}
.development-orbit::before { left: 12%; top: 12%; }
.development-orbit::after { right: 4%; bottom: 30%; }
.orbit-b { width: 67%; border-color: rgba(99,75,178,.4); border-right-color: transparent; animation-duration: 13s; animation-direction: reverse; }
.development-core { z-index: 9; left: 50%; top: 42%; width: 17%; aspect-ratio: 1; border-radius: 50%; opacity: calc(.34 + var(--bloom-opacity)); background: radial-gradient(circle, #fff 0 8%, rgba(96,236,220,.86) 18%, rgba(139,115,232,.38) 42%, transparent 72%); transform: translate(-50%, -50%); filter: drop-shadow(0 0 13px rgba(255,255,255,.8)); animation: core-breathe 3.2s ease-in-out infinite; transition: opacity 1.8s ease; }
.development-core i { position: absolute; inset: -34%; border: 1px solid rgba(42,145,159,.38); border-radius: 50%; animation: core-ring 4.4s ease-out infinite; }
.development-core i:nth-child(2) { inset: -72%; border-color: rgba(114,88,195,.25); animation-delay: -2.2s; }
.development-finish-flash { z-index: 9; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 44%, rgba(255,255,255,.88), rgba(162,245,223,.23) 28%, transparent 70%); mix-blend-mode: screen; }
.focus-corner { position: absolute; z-index: 10; width: 22px; height: 22px; border-color: rgba(25,79,94,.52); }
.corner-a { left: 12px; top: 12px; border-left: 1px solid; border-top: 1px solid; }
.corner-b { right: 12px; top: 12px; border-right: 1px solid; border-top: 1px solid; }
.corner-c { left: 12px; bottom: 12px; border-left: 1px solid; border-bottom: 1px solid; }
.corner-d { right: 12px; bottom: 12px; border-right: 1px solid; border-bottom: 1px solid; }
.development-clock { position: absolute; z-index: 13; right: 13px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: #23344b; text-shadow: 0 1px 8px rgba(255,255,255,.86); }
.development-clock span { font-size: 7px; letter-spacing: .18em; opacity: .72; }
.development-clock b { font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.developing-card-bottom { padding: 14px 3px 0; }
.developing-card-bottom > span:first-child { overflow: hidden; color: rgba(255,255,255,.62); font-size: 8px; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.signal-bars { display: inline-flex; height: 13px; flex: 0 0 auto; align-items: flex-end; gap: 2px; }
.signal-bars i { display: block; width: 2px; border-radius: 2px; background: var(--digital-mint); box-shadow: 0 0 7px rgba(162,245,223,.55); animation: signal-rise 1.2s ease-in-out infinite alternate; }
.signal-bars i:nth-child(1) { height: 4px; animation-delay: -.2s; }
.signal-bars i:nth-child(2) { height: 7px; animation-delay: -.55s; }
.signal-bars i:nth-child(3) { height: 10px; animation-delay: -.8s; }
.signal-bars i:nth-child(4) { height: 13px; animation-delay: -1s; }
.progress-copy { align-self: start; width: 100%; max-width: 570px; padding-top: 8px; }
.progress-panel .kicker { color: var(--digital-mint); }
.progress-panel h2 { margin: 14px 0 13px; font-family: Georgia, serif; font-size: clamp(31px, 4vw, 48px); line-height: 1.06; font-weight: 500; letter-spacing: -.02em; }
.selection-story { position: relative; overflow: hidden; min-height: 164px; margin-top: 18px; padding: 18px 20px 16px; border: 1px solid rgba(220,244,255,.22); border-radius: 18px; background: linear-gradient(132deg, rgba(224,255,249,.13), rgba(205,194,255,.11)); box-shadow: inset 0 1px rgba(255,255,255,.13), 0 18px 42px rgba(7,12,29,.12); backdrop-filter: blur(16px); }
.selection-story::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--digital-mint), var(--digital-violet)); box-shadow: 0 0 16px rgba(162,245,223,.52); }
.selection-story-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--digital-mint); font-size: 8px; font-weight: 780; letter-spacing: .16em; }
.selection-story-heading i { color: rgba(255,255,255,.52); font-style: normal; font-variant-numeric: tabular-nums; }
.selection-story > strong { display: block; margin-top: 13px; color: #fff; font-family: Georgia, serif; font-size: 22px; font-weight: 500; line-height: 1.12; }
.selection-story > p { min-height: 44px; margin: 8px 0 14px; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.55; }
.selection-story > p.story-changing { animation: story-arrive .65s cubic-bezier(.2,.72,.2,1) both; }
.selection-story-nav { display: flex; flex-wrap: wrap; gap: 7px; }
.selection-story-nav button { border: 1px solid rgba(220,244,255,.16); border-radius: 999px; padding: 6px 9px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.53); font-size: 7px; font-weight: 760; letter-spacing: .12em; cursor: pointer; }
.selection-story-nav button.active { border-color: rgba(159,247,226,.48); background: rgba(159,247,226,.13); color: var(--digital-mint); box-shadow: 0 0 14px rgba(159,247,226,.08); }
.flow-playground { margin-top: 19px; overflow: hidden; border: 1px solid rgba(220,244,255,.2); border-radius: 18px; background: linear-gradient(135deg, rgba(233,255,252,.13), rgba(207,196,255,.1)); box-shadow: inset 0 1px rgba(255,255,255,.13), 0 16px 38px rgba(7,12,29,.12); backdrop-filter: blur(15px); }
.flow-playground-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 13px 15px 8px; }
.flow-playground-header > div { min-width: 0; }
.flow-playground-header strong, .flow-playground-header small { display: block; }
.flow-playground-header strong { color: var(--digital-mint); font-size: 9px; letter-spacing: .16em; }
.flow-playground-header small { margin-top: 4px; color: rgba(255,255,255,.62); font-size: 10px; line-height: 1.35; }
.flow-palette-label { flex: 0 0 auto; border: 1px solid rgba(220,244,255,.18); border-radius: 999px; padding: 6px 8px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.72); font-size: 7px; font-weight: 750; letter-spacing: .11em; }
.flow-canvas { display: block; width: 100%; height: 142px; cursor: crosshair; touch-action: none; background: radial-gradient(circle at 55% 46%, rgba(159,247,226,.08), transparent 54%); }
.flow-canvas:focus-visible { outline: 2px solid var(--digital-mint); outline-offset: -3px; }
.development-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; width: min(100%, 430px); margin: 16px 0 16px; }
.development-steps span { position: relative; height: 3px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.14); }
.development-steps span::after { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, var(--digital-mint), var(--digital-violet)); transform: scaleX(.25); transform-origin: left; transition: opacity .45s, transform .6s ease; }
.development-steps span.active::after { opacity: 1; transform: scaleX(1); }
.development-steps span.current::after { animation: step-glow 1.8s ease-in-out infinite; }
.progress-panel .progress-hint { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.11); color: rgba(255,255,255,.43) !important; font-size: 11px; line-height: 1.55 !important; }
.progress-panel[data-mode="queued"] .developing-card-top i { color: #ffe4a6; }
.progress-panel[data-mode="finishing"] .developing-card { box-shadow: 0 28px 75px rgba(0,0,0,.36), 0 0 35px rgba(162,245,223,.13), inset 0 1px 0 rgba(255,255,255,.2); }
.progress-panel[data-mode="finishing"] .development-finish-flash { animation: finish-flash .72s cubic-bezier(.16,.72,.25,1) both; }
.progress-panel[data-reveal="0"] { --field-brightness: .76; --field-opacity: .74; --veil-opacity: .36; --bloom-opacity: .24; --orbit-opacity: .29; --grid-opacity: .13; }
.progress-panel[data-reveal="1"] { --field-brightness: .8; --field-opacity: .77; --veil-opacity: .33; --bloom-opacity: .28; --orbit-opacity: .32; --grid-opacity: .14; }
.progress-panel[data-reveal="2"] { --field-brightness: .84; --field-opacity: .8; --veil-opacity: .3; --bloom-opacity: .32; --orbit-opacity: .35; --grid-opacity: .15; }
.progress-panel[data-reveal="3"] { --field-brightness: .89; --field-opacity: .83; --veil-opacity: .27; --bloom-opacity: .36; --orbit-opacity: .38; --grid-opacity: .16; }
.progress-panel[data-reveal="4"] { --field-brightness: .94; --field-opacity: .86; --veil-opacity: .24; --bloom-opacity: .4; --orbit-opacity: .41; --grid-opacity: .17; }
.progress-panel[data-reveal="5"] { --field-brightness: .99; --field-opacity: .89; --veil-opacity: .21; --bloom-opacity: .44; --orbit-opacity: .44; --grid-opacity: .18; }
.progress-panel[data-reveal="6"] { --field-brightness: 1.04; --field-opacity: .92; --veil-opacity: .18; --bloom-opacity: .48; --orbit-opacity: .47; --grid-opacity: .19; }
.progress-panel[data-reveal="7"] { --field-brightness: 1.09; --field-opacity: .95; --veil-opacity: .15; --bloom-opacity: .52; --orbit-opacity: .5; --grid-opacity: .2; }
.progress-panel[data-reveal="8"] { --field-brightness: 1.14; --field-opacity: .97; --veil-opacity: .12; --bloom-opacity: .56; --orbit-opacity: .53; --grid-opacity: .21; }
.progress-panel[data-reveal="9"] { --field-brightness: 1.19; --field-opacity: .99; --veil-opacity: .09; --bloom-opacity: .6; --orbit-opacity: .56; --grid-opacity: .22; }
.progress-panel[data-reveal="10"] { --field-brightness: 1.24; --field-opacity: 1; --veil-opacity: .06; --bloom-opacity: .66; --orbit-opacity: .6; --grid-opacity: .23; }
@keyframes card-float { 0%, 100% { transform: rotateY(1.4deg) rotateZ(-.55deg) translateY(0); } 50% { transform: rotateY(-.8deg) rotateZ(-.15deg) translateY(-6px); } }
@keyframes digital-pulse { 0%, 100% { opacity: .42; transform: scale(.86); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes atmosphere-drift { from { transform: scale(1.08) translate3d(-1.5%, -1%, 0); } to { transform: scale(1.13) translate3d(1.5%, 1.2%, 0); } }
@keyframes ambient-orbit-a { from { transform: translate3d(-4%, -2%, 0) scale(.92); } to { transform: translate3d(18%, 16%, 0) scale(1.08); } }
@keyframes ambient-orbit-b { from { transform: translate3d(5%, -8%, 0) scale(1.08); } to { transform: translate3d(-18%, 12%, 0) scale(.9); } }
@keyframes ambient-orbit-c { from { transform: translate3d(-8%, 7%, 0) scale(.9); } to { transform: translate3d(10%, -18%, 0) scale(1.12); } }
@keyframes field-rotate { to { transform: rotate(360deg); } }
@keyframes orbit-rotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes bloom-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(.78); filter: blur(10px); } 50% { transform: translate(-50%, -50%) scale(1.02); filter: blur(6px); } }
@keyframes core-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(.86); } 50% { transform: translate(-50%, -50%) scale(1.08); } }
@keyframes core-ring { 0% { opacity: .1; transform: scale(.64); } 42% { opacity: .75; } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes finish-flash { 0% { opacity: 0; transform: scale(.65); } 42% { opacity: .82; } 100% { opacity: 0; transform: scale(1.22); } }
@keyframes signal-rise { from { opacity: .35; transform: scaleY(.55); } to { opacity: 1; transform: scaleY(1); } }
@keyframes step-glow { 0%, 100% { filter: brightness(.8); } 50% { filter: brightness(1.6); } }
@keyframes story-arrive { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }

.result-panel { margin-top: 22px; }
.result-heading { margin-bottom: 20px; }
.result-frame { border-radius: 20px; overflow: hidden; background: #eee8e3; min-height: 360px; display: grid; place-items: center; }
.result-frame img { display: block; max-width: 100%; max-height: 78vh; object-fit: contain; }
.result-frame img.result-developing { animation: result-develop 1.8s cubic-bezier(.2,.72,.2,1) both; }
@keyframes result-develop {
  0% { opacity: .12; filter: grayscale(1) blur(16px) brightness(2.15) contrast(.48); transform: scale(.985); }
  45% { opacity: .78; filter: grayscale(.45) blur(5px) brightness(1.35) contrast(.75); }
  100% { opacity: 1; filter: none; transform: scale(1); }
}
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.download-button, .secondary-button { min-height: 52px; display: grid; place-items: center; border-radius: 13px; text-decoration: none; cursor: pointer; font-weight: 650; }
.download-button { background: var(--ink); color: white; }
.secondary-button { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.result-note { color: var(--muted); text-align: center; font-size: 12px; line-height: 1.55; }

.privacy-strip { margin: 22px 0; padding: 24px 28px; display: grid; grid-template-columns: .55fr 1fr; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-strip strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.privacy-strip p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
footer { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 18px 0 35px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
footer a { color: inherit; }
.footer-version { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: #8a817b; font-size: 9px; letter-spacing: .12em; }
footer a { justify-self: end; }
.embedded .topbar, .embedded footer { display: none; }
.embedded .app-shell { padding-top: 26px; }
.empty-message { color: var(--muted); text-align: center; padding: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .method-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .shade-grid { grid-template-columns: repeat(4, 1fr); }
  .custom-reference-layout { grid-template-columns: 1fr; }
  .photo-options-grid { grid-template-columns: 1fr; }
  .upload-box, .upload-box img { min-height: 520px; }
  .progress-panel { grid-template-columns: minmax(245px, 310px) minmax(0, 1fr); gap: 30px; padding: 30px; }
}

@media (max-width: 760px) {
  .progress-panel { grid-template-columns: 1fr; min-height: 0; padding: 28px 18px; text-align: center; }
  .developing-card { width: min(82vw, 315px); }
  .progress-copy { margin: 0 auto; }
  .progress-panel .progress-copy > p { margin-left: auto; margin-right: auto; }
  .selection-story { text-align: left; }
  .development-steps { margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
  .topbar { padding: 20px 18px 6px; }
  .app-shell { width: min(100% - 20px, 1180px); padding-top: 36px; }
  .hero { margin-bottom: 34px; }
  .hero h1 { font-size: 44px; }
  .hero > p { font-size: 15px; }
  .panel { padding: 22px 16px; border-radius: 21px; }
  .section-heading { gap: 12px; }
  .section-heading .step { width: 35px; height: 35px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading p { font-size: 13px; }
  .method-grid { gap: 9px; }
  .method-card-copy { min-height: 142px; padding: 12px; }
  .method-card small { font-size: 11px; }
  .shade-tools { display: block; }
  .search-box { display: block; min-width: 0; margin-bottom: 12px; }
  .shade-filters { justify-content: flex-start; }
  .shade-grid { grid-template-columns: repeat(3, 1fr); max-height: 470px; }
  .selected-shade { grid-template-columns: 70px 1fr; }
  .selected-shade img { width: 70px; height: 70px; }
  .selected-shade .product-preview { display: none; }
  .selected-copy strong { font-size: 18px; }
  .upload-box, .upload-box img { min-height: 400px; }
  .progress-panel { border-radius: 22px; }
  .developing-card { width: min(82vw, 290px); }
  .progress-panel h2 { font-size: 31px; }
  .progress-copy { padding-top: 0; }
  .flow-playground-header { text-align: left; }
  .flow-canvas { height: 126px; }
  .result-actions { grid-template-columns: 1fr; }
  .privacy-strip { grid-template-columns: 1fr; gap: 9px; padding: 22px 3px; }
  footer { grid-template-columns: 1fr auto; }
  .footer-version { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
}

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