:root {
  --cream: #fbf5ec;
  --paper: #fffaf3;
  --ink: #2b211b;
  --ink-soft: #6b5a4e;
  --kraft: #c99d6e;
  --pink: #ec5b8f;
  --pink-soft: #f6a7c1;
  --orange: #f39a4a;
  --blue: #5fa8dc;
  --yellow: #f7cf55;
  --green: #3f8f5a;
  --red: #e23b45;
  --line: rgba(43, 33, 27, 0.12);

  --script: "Sacramento", cursive;
  --serif: "Fraunces", Georgia, serif;
  --slab: "Zilla Slab", Georgia, serif;
  --block: "Lilita One", "Arial Black", sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 900; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
p { margin: 0; }
a { color: inherit; }

.eyebrow {
  font: 700 13px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); max-width: 34ch; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 700 16px/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--pink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--cream) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: baseline; gap: 4px; text-decoration: none; }
.nav-logo .script { font: 400 30px/1 var(--script); color: var(--pink); }
.nav-logo .amp { font: 400 20px/1 var(--script); color: var(--ink-soft); }
.nav-logo .slab { font: 700 24px/1 var(--slab); }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: .75; }
.nav-links a:hover { opacity: 1; }
.cart {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 700 14px/1 var(--sans); cursor: pointer;
}
.cart-count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px;
  display: grid; place-items: center;
  background: var(--pink); font-size: 12px;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.cart-count.bump { transform: scale(1.35); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- scroll scenes ---------- */
.scene { position: relative; }
.sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

/* hero */
.hero { height: 260vh; }
.hero .sticky { display: grid; place-items: center; background: #f9cdc6; }
.strokes { position: absolute; inset: 0; }
.brush-layer { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform, opacity; }

.hero-logo {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  text-shadow: 0 2px 24px rgba(110, 30, 60, .35), 0 1px 3px rgba(110, 30, 60, .25);
  will-change: transform, opacity;
  opacity: 0; animation: fadeUp 1s .9s ease forwards;
}
.hero-logo .big { font: 400 clamp(110px, 20vw, 260px)/.7 var(--script); }
.hero-logo .and { font: 400 clamp(50px, 7vw, 90px)/.8 var(--script); margin: -.05em 0 -.1em; }
.hero-logo .huge { font: 700 clamp(100px, 19vw, 250px)/.85 var(--slab); letter-spacing: -0.01em; }
.hero-logo .made { font: 500 clamp(14px, 1.4vw, 18px)/1 var(--sans); letter-spacing: .1em; margin-top: 18px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-copy {
  position: absolute; z-index: 3;
  inset: 0; display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 0 var(--gutter);
  opacity: 0; pointer-events: none;
}
.hero-copy h1 { font-size: clamp(40px, 6.6vw, 96px); max-width: 16ch; margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 30px; max-width: 40ch; }
.hero-copy.live { pointer-events: auto; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  font: 700 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #fff;
  display: grid; justify-items: center; gap: 10px;
}
.scroll-cue span { width: 2px; height: 36px; background: #fff; border-radius: 2px; animation: cue 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* banner painting */
.paint { height: 520vh; background: var(--paper); }
.paint .sticky {
  display: grid; grid-template-rows: auto 1fr auto; align-items: center;
  padding: 96px var(--gutter) 40px;
}
.steps {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
}
.steps li {
  padding: 9px 16px; border-radius: 999px;
  font-weight: 500; font-size: 14px; color: var(--ink-soft);
  background: rgba(43, 33, 27, .05);
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.steps li b { font-weight: 700; margin-right: 6px; opacity: .6; }
.steps li.on { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.steps li.done { color: var(--ink); }

.banner-stage { position: relative; width: min(1100px, 100%, (100svh - 250px) * 1.62); margin: 0 auto; }
.banner-wrap {
  clip-path: inset(0 100% 0 0);
  filter: drop-shadow(0 30px 40px rgba(80, 50, 20, .22));
  will-change: clip-path;
}
.banner { display: block; width: 100%; height: auto; }
.b-title { font: 400 140px/1 var(--block); letter-spacing: 3px; paint-order: stroke; stroke-linejoin: round; }
.b-script { font: 400 132px/1 var(--script); stroke-width: 2.5px; }
.pop { transform-box: fill-box; transform-origin: center; }
.b-note { font: 400 58px/1 var(--script); fill: #5b4b3f; opacity: .75; }
[data-banner="hero"] .pop { transform: scale(0); }

.polaroid {
  position: absolute; right: -2%; bottom: -14%;
  width: clamp(180px, 30%, 340px); margin: 0;
  padding: 10px 10px 0; background: #fff;
  box-shadow: 0 24px 50px rgba(40, 25, 15, .3);
  opacity: 0; will-change: transform, opacity;
}
.polaroid img { display: block; width: 100%; height: auto; }
.polaroid figcaption { font: 400 clamp(22px, 2.2vw, 30px)/2 var(--script); text-align: center; color: var(--ink); }

.roll {
  position: absolute; top: -2%; bottom: -2%; left: 0;
  width: clamp(18px, 3vw, 34px);
  margin-left: calc(clamp(18px, 3vw, 34px) / -2);
  border-radius: 999px;
  background: linear-gradient(90deg, #8a6440, #d7b089 35%, #f0d3ae 50%, #c39668 70%, #7a5534);
  box-shadow: 0 10px 20px rgba(60, 40, 20, .3);
  will-change: left, opacity;
}
.paint-note {
  width: min(1100px, 100%, (100svh - 250px) * 1.62); margin: 0 auto; padding-right: 34%;
  text-align: left; font: 400 clamp(26px, 3.2vw, 40px)/1.1 var(--script);
  color: var(--ink-soft); opacity: 0;
}

@media (max-width: 640px) {
  .steps { flex-wrap: nowrap; }
  .steps li { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .steps li:not(.on) span { display: none; }
  .steps li:not(.on) b { margin: 0; }
  .polaroid { width: 50%; right: 0; bottom: -58%; padding: 6px 6px 0; }
  .polaroid figcaption { font-size: 20px; line-height: 1.6; }
  .paint-note { padding-right: 54%; font-size: 24px; }
}

/* words */
.words { height: 320vh; }
.words .sticky { display: grid; place-content: center; padding: 0 var(--gutter); }
.word-list {
  display: grid; gap: .02em;
  font-size: clamp(54px, 11vw, 170px);
}
.word-list span { opacity: .1; transition: opacity .15s linear; }
.w-pink { color: var(--pink); }
.w-orange { color: var(--orange); }
.w-blue { color: var(--blue); }
.w-green { color: var(--green); }
.words-sub { margin-top: 28px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); max-width: 40ch; opacity: 0; }

/* ---------- shop ---------- */
.shop { padding: 120px var(--gutter) 100px; background: var(--paper); }
.section-head { max-width: 1100px; width: 100%; margin: 0 auto 48px; padding: 0; }
.section-head h2 { font-size: clamp(44px, 6vw, 80px); margin-bottom: 14px; }

/* ---------- recent work ---------- */
.work { padding: 130px 0 120px; overflow: hidden; }
.work .section-head { padding: 0 var(--gutter); }
.drift-row {
  display: flex; gap: 18px; width: max-content;
  margin: 0 0 18px -10vw;
  will-change: transform;
}
.drift-row figure { margin: 0; position: relative; height: clamp(220px, 30vw, 380px); border-radius: 22px; overflow: hidden; background: var(--kraft); }
.drift-row img { height: 100%; width: auto; display: block; }
.drift-row .tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.drift-row figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 250, 243, .92); font-weight: 700; font-size: 13px;
}

.builder {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } }
/* Side by side, the preview stays in view while you fill the form; stacked, it scrolls away normally. */
@media (min-width: 861px) { .preview { position: sticky; top: 90px; } }

.preview {
  padding: clamp(20px, 4vw, 44px);
  background: var(--cream); border-radius: 28px;
}
.preview-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); text-align: center; }

.options { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 8px; }
.field input[type="text"], .field input:not([type]) {
  font: 500 17px/1 var(--sans);
  padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.field input:focus-visible { outline: 3px solid var(--pink-soft); outline-offset: 1px; border-color: var(--pink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 15px;
  transition: all .2s ease;
}
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-idea span { border-style: dashed; border-color: var(--pink); color: var(--pink); font-weight: 700; }
.chip-idea input:checked + span { background: var(--pink); border-color: var(--pink); border-style: solid; color: #fff; }
.field textarea {
  font: 500 16px/1.45 var(--sans); resize: vertical; min-height: 84px;
  padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.field textarea:focus-visible { outline: 3px solid var(--pink-soft); outline-offset: 1px; border-color: var(--pink); }
.field em { font-style: normal; font-weight: 500; color: var(--ink-soft); }
.options.is-custom textarea { border-color: var(--pink); background: #fff8fa; }
.chips input:focus-visible + span { outline: 3px solid var(--pink-soft); outline-offset: 2px; }

.buy {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.price span { font: 900 36px/1 var(--serif); white-space: nowrap; }
.price i { font: 500 16px/1 var(--sans); font-style: normal; color: var(--ink-soft); }
.buy .btn { white-space: nowrap; }
.price small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

.cards {
  max-width: 1100px; margin: 90px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.card {
  padding: 16px 16px 22px; border-radius: 22px; background: var(--cream);
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); }
.card img, .card .swatch { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }
.swatch.mural { background: radial-gradient(circle at 72% 30%, var(--yellow) 0 9%, transparent 10%), linear-gradient(180deg, transparent 55%, #7fb0a0 55% 75%, #3f6f55 75%), linear-gradient(180deg, #fbd3b0, var(--orange)); }
.card h3 { font-size: 24px; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.card .link { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--pink); }

/* ---------- process ---------- */
.process { height: 360vh; }
.process .sticky { display: grid; grid-template-rows: auto 1fr; padding: 110px 0 40px; }
.process .section-head { padding: 0 var(--gutter); margin-bottom: 24px; }
.track {
  display: flex; gap: 22px; align-items: center;
  padding: 0 var(--gutter);
  will-change: transform;
}
.step-card {
  flex: 0 0 min(440px, 80vw);
  height: min(62vh, 560px);
  border-radius: 30px; color: #fff;
  display: grid; grid-template-rows: 1fr auto;
  position: relative; overflow: hidden;
}
.step-card img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.step-card > div { position: relative; padding: 22px 28px 28px; }
.step-card b {
  position: absolute; bottom: -12px; right: 18px;
  font: 400 120px/1 var(--script); opacity: .3;
}
.step-card h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 8px; }
.step-card p { font-size: 16px; opacity: .92; max-width: 30ch; position: relative; }
.s1 { background: var(--pink); }
.s2 { background: var(--kraft); }
.s3 { background: var(--blue); }
.s4 { background: var(--green); }

/* ---------- about ---------- */
.about {
  position: relative; min-height: 120vh;
  padding: 140px var(--gutter) 34vh;
  background: linear-gradient(#fbf5ec, #fde4d3 60%, #f9cdb7);
  overflow: hidden;
}
.about-inner {
  position: relative; z-index: 2; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; } .about-photo { max-width: 280px; } }
.about-photo { margin: 0; border-radius: 26px; overflow: hidden; transform: rotate(-3deg); box-shadow: 0 30px 60px -20px rgba(80, 40, 20, .45); }
.about-photo img { display: block; width: 100%; height: auto; }
.about-copy h2 { font-size: clamp(44px, 6vw, 84px); margin-bottom: 18px; }
.about-copy .lede { margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; }
.mountains path { will-change: transform; }

.foot {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  padding: 22px var(--gutter);
  background: #3f6f55; color: #e9f2ea; font-size: 14px;
}
.foot a { text-decoration: none; font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 140%);
  padding: 14px 20px; border-radius: 16px;
  background: var(--ink); color: var(--paper); font-weight: 500; font-size: 15px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), visibility 0s .45s;
  max-width: calc(100vw - 32px);
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }

/* ---------- reduced motion: show everything finished ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .paint, .words, .process { height: auto; }
  .sticky { position: relative; height: auto; min-height: 100vh; }
  .hero-logo { animation: none; opacity: 1; }
  .scroll-cue { display: none; }
  .track { flex-wrap: wrap; justify-content: center; padding-bottom: 40px; }
  .polaroid { opacity: 1; }
}
