:root {
  --paper: #fff7f2; --ink: #1d1720; --muted: #5c4f5a; --blush: #ff6f9c; --berry: #b0144f;
  --mint: #c8eedd; --butter: #ffe58a; --line: #ecdcd6; --card: #ffffff;
  --display: "Bricolage Grotesque", system-ui, sans-serif; --body: Figtree, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 7vw, 3.6rem); }

.demo { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 6px 16px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: rgba(255,247,242,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.top nav { margin-left: auto; display: none; gap: 24px; }
.top nav a { text-decoration: none; font-weight: 500; padding: 10px 2px; }
.top nav a:hover { color: var(--berry); }
.bag-btn { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
@media (min-width: 760px) { .top nav { display: flex; } .bag-btn { margin-left: 8px; } .top { padding: 12px 32px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 700 16px var(--body); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.light { background: var(--butter); color: var(--ink); border-color: var(--butter); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* hero */
.hero { display: grid; gap: 8px; padding: 32px 16px 24px; max-width: 1200px; margin: auto; }
.eyebrow { font-weight: 700; color: var(--berry); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.3rem, 10vw, 5.4rem); overflow-wrap: anywhere; margin: 10px 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 58%, var(--blush) 58% 90%, transparent 90%); }
.lede { max-width: 34em; color: var(--muted); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-3d { position: relative; display: grid; justify-items: center; }
.stage { width: 100%; max-width: 460px; aspect-ratio: 1 / 1.08; position: relative; border-radius: 32px;
  background: radial-gradient(circle at 50% 45%, #ffd9e5 0, #ffeef3 45%, transparent 70%); }
.stage canvas { width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; }
.stage.static { display: grid; place-items: center; }
.now { font-size: 15px; color: var(--muted); margin-top: 4px; }
.now b { color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); background-size: 220%; background-position: center 40%; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.1); }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 56px 32px 40px; } }

/* css phone case (cards, wall, fallback) */
.case { position: relative; aspect-ratio: 400 / 820; width: 100%; border-radius: 16% / 7.8%; background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 5px rgba(0,0,0,.08), inset 0 2px 0 6px rgba(255,255,255,.35), 0 18px 30px -14px rgba(29,23,32,.45); }
.case .bump { position: absolute; left: 9%; top: 4.5%; width: 38%; aspect-ratio: 1; border-radius: 26%; background: rgba(29,23,32,.92); box-shadow: 0 3px 6px rgba(0,0,0,.25); }
.case .bump i { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #4a5aa8 0 18%, #0a0a14 30%); box-shadow: 0 0 0 2px #d9d6e2; }
.case .bump i:nth-child(1) { left: 9%; top: 9%; } .case .bump i:nth-child(2) { left: 9%; bottom: 9%; } .case .bump i:nth-child(3) { right: 9%; top: 31%; }
.case.big { width: min(52%, 220px); }
.case.mini { width: 44px; flex: none; }

.ticker { overflow: hidden; background: var(--ink); color: var(--butter); padding: 14px 0; transform: rotate(-1.2deg); margin: 16px -10px; }
.ticker div { display: flex; gap: 40px; width: max-content; animation: tick 28s linear infinite; font: 800 20px var(--display); text-transform: uppercase; }
.ticker span::after { content: "✦"; margin-left: 40px; color: var(--blush); }
@keyframes tick { to { transform: translateX(-50%); } }

/* shop */
.shop, .wall { max-width: 1200px; margin: auto; padding: 56px 16px; }
.head { display: grid; gap: 10px; margin-bottom: 24px; }
.head p { color: var(--muted); max-width: 36em; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.chips button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font: 600 15px var(--body); color: var(--ink); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card, .chips, .hero > * { min-width: 0; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.card { background: var(--card); border-radius: 24px; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-art { padding: 22px 26% 18px; background: linear-gradient(160deg, #fff0f5, #fff7ec); transition: transform .25s; }
.card:nth-child(3n+2) .card-art { background: linear-gradient(160deg, #eaf8f1, #fffbe6); }
.card:nth-child(3n) .card-art { background: linear-gradient(160deg, #eef1ff, #fff0f5); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-tag { font-size: 13px; font-weight: 700; color: var(--berry); text-transform: uppercase; letter-spacing: .05em; }
.card h3 { font-size: 20px; }
.card-note { font-size: 15px; color: var(--muted); line-height: 1.45; }
.model { display: grid; gap: 2px; font-size: 13px; font-weight: 600; margin-top: auto; padding-top: 6px; }
.model select { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font: 500 15px var(--body); color: var(--ink); padding: 0 8px; width: 100%; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.price { font: 800 22px var(--display); }
.add { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (max-width: 420px) { .card-foot .add { width: 100%; } .card-art { padding: 18px 22% 14px; } }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* custom */
.custom { background: var(--ink); color: #fff; padding: 64px 16px; border-radius: 36px 36px 0 0; }
.custom-in { max-width: 1100px; margin: auto; }
.custom h2 span { display: block; color: var(--blush); }
.steps { list-style: none; padding: 0; margin: 36px 0; display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.18); }
.steps b { grid-row: span 2; font: 800 40px/1 var(--display); color: var(--butter); }
.steps h3 { font-size: 24px; }
.steps p { color: #e7dde4; }
@media (min-width: 900px) { .steps li { grid-template-columns: 120px 280px 1fr; align-items: baseline; } .steps b { grid-row: auto; font-size: 56px; } }

/* wall */
.wall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.wall-grid figure { border-radius: 24px; padding: 20px 18%; display: grid; place-items: center; background: #ffe3ec; }
.wall-grid .w2 { padding: 0; overflow: hidden; } .wall-grid .w2 img { width: 100%; height: 100%; object-fit: cover; }
.wall-grid .w3 { background: #e5e2ff; } .wall-grid .w4 { background: #fff1c9; } .wall-grid .w5 { background: var(--mint); } .wall-grid .w6 { background: #ffd9c4; }
@media (min-width: 760px) { .wall-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .wall-grid .w2 { grid-row: span 2; } }

.about { padding: 24px 16px 72px; }
.about-in { max-width: 820px; margin: auto; background: var(--butter); border-radius: 32px; padding: 32px 22px; }
.about p { margin: 14px 0 22px; font-size: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; gap: 12px; margin-top: 28px; }
.facts dt { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 760px) { .about-in { padding: 48px; } .facts { grid-template-columns: repeat(3, 1fr); } }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 24px 16px 96px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); max-width: 1200px; margin: auto; }

/* bag */
.bag-bar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; max-width: 520px; margin: auto; min-height: 56px; border: 0; border-radius: 18px; background: var(--berry); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; font: 600 16px var(--body); cursor: pointer; box-shadow: 0 12px 30px -10px rgba(176,20,79,.6); }
.bag-bar[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(29,23,32,0); transition: background .25s; }
.drawer.on { background: rgba(29,23,32,.5); }
.panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); overflow-y: auto; padding: 18px 16px 28px; transform: translateX(100%); transition: transform .25s ease-out; }
.drawer.on .panel { transform: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-head h2 { font-size: 30px; }
#close { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.lines { list-style: none; padding: 0; display: grid; gap: 12px; }
.line { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.line > div:nth-child(2) { flex: 1; display: grid; font-size: 15px; line-height: 1.35; }
.line small { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 12px 0; }
.step { display: flex; align-items: center; gap: 2px; }
.step button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 20px; cursor: pointer; color: var(--ink); }
.step span { min-width: 22px; text-align: center; font-weight: 700; }
.order { display: grid; gap: 12px; margin-top: 18px; }
.order label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.order input, .order textarea { font: 400 16px var(--body); padding: 10px 12px; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.sum { display: flex; justify-content: space-between; font: 800 22px var(--display); padding-top: 6px; }
.btn.wa { background: #1f8f4e; border-color: #1f8f4e; width: 100%; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
.tilt { transition: transform .2s ease-out; transform-style: preserve-3d; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .ticker div { animation: none; } * { transition: none !important; } }
