/* Trove download page. Palette and type follow the Trove app (mocha, oat and cream; DM Serif Display and DM Sans). */

:root {
  --ground: #f4ecdf;
  --paper: #faf4e9;
  --linen: #ede3d2;
  --ink: #2a1d14;
  --ink-soft: #6b5849;
  --ink-deep: #1e140d;
  --cherry: #4b2e1f;
  --cherry-deep: #2a1d14;
  --blue: #8a5a3b;
  --sky: #e2d4bd;
  --green: #536e59;
  --marigold: #b58a4e;
  --pink: #d9b99b;
  --line: rgba(42, 29, 20, 0.14);
  --ink-blue: #24396b; /* brand ink blue: the Trove wordmark and icon */

  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --body: "DM Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;

  --radius: 28px;
  --gutter: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--ground);
  /* faint canvas mesh */
  background-image:
    linear-gradient(rgba(42, 29, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 29, 20, 0.035) 1px, transparent 1px);
  background-size: 9px 9px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }

/* ---------- product photo slots ----------
   Every canvas and thread photo sits in a .ph slot filled by main.js from products.js.
   The slot is a plain linen tile, so a photo that fails (or has not loaded yet) leaves linen. */
.ph {
  position: relative; overflow: hidden;
  background-color: var(--linen);
  background-image:
    linear-gradient(rgba(42, 29, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 29, 20, 0.05) 1px, transparent 1px);
  background-size: 5px 5px;
}
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.ph.ph-loaded img { opacity: 1; }
.ph.ph-missing img { display: none; }
@media (prefers-reduced-motion: reduce) { .ph img { transition: none; } }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--cherry); color: #fff;
  font: 700 17px/1 var(--body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--cherry-deep), 0 14px 26px -10px rgba(42, 29, 20, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--cherry-deep), 0 18px 30px -12px rgba(42, 29, 20, 0.6); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cherry-deep), 0 6px 12px -8px rgba(42, 29, 20, 0.6); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; box-shadow: 0 4px 0 var(--cherry-deep); }
.btn-beta { background: var(--ink); box-shadow: 0 5px 0 #170f09, 0 14px 26px -10px rgba(23, 15, 9, 0.6); }
.btn-beta:hover { box-shadow: 0 7px 0 #170f09, 0 18px 30px -12px rgba(23, 15, 9, 0.6); }
.btn-beta:active { box-shadow: 0 1px 0 #170f09; }
.btn-wide { width: 100%; }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 8px 18px 8px 14px;
  border-radius: 14px;
  background: var(--ink); color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-icon { width: 24px; height: 24px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text small { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.85; }
.store-text small, .store-text b { white-space: nowrap; }
.store-text b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
a.store[href]:hover { transform: translateY(-2px); background: var(--ink-deep); }
.store.is-soon {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  border: 0; cursor: default;
  background-image: repeating-linear-gradient(135deg, rgba(42, 29, 20, 0.05) 0 6px, transparent 6px 12px);
}
.store.is-soon .store-text small { color: var(--cherry); opacity: 1; }

/* ---------- nav ---------- */
.nav { position: relative; z-index: 5; padding: 18px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 rgba(42, 29, 20, 0.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.pricing { margin: 18px 0 28px; max-width: 34em; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.pricing b { color: var(--ink-blue); font-weight: 700; }
.brand-text b { font-family: var(--display); font-weight: 400; font-size: 25px; color: var(--ink-blue); }
.brand-text span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding: 28px 0 96px; position: relative; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(46px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.accent { color: var(--cherry); }
.stitched {
  /* a running stitch under the words */
  background-image: linear-gradient(90deg, var(--cherry) 0 58%, transparent 58% 100%);
  background-size: 22px 5px;
  background-repeat: repeat-x;
  background-position: 0 96%;
  padding-bottom: 0.1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
p { text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 34em; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero .stores { margin-bottom: 22px; }
.status {
  display: flex; gap: 10px; align-items: flex-start;
  max-width: 34em; font-size: 15px; color: var(--ink-soft);
}
.status::before {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%;
  background: var(--marigold); box-shadow: 0 0 0 4px rgba(181, 138, 78, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(181, 138, 78, 0); } }

.hero-stage { position: relative; height: 680px; }
.table {
  position: absolute; inset: 40px 0 40px 40px;
  border-radius: 40px; overflow: hidden;
  background: var(--linen);
  box-shadow: inset 0 0 0 1px rgba(42, 29, 20, 0.08), 0 30px 60px -30px rgba(42, 29, 20, 0.35);
  transform: rotate(2.5deg);
}
/* canvases laid on the linen; multiply drops the white photo ground into the cloth */
.lay {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(var(--r));
  background: none;
}
.lay { mix-blend-mode: multiply; }
.lay img { object-fit: contain; }
.phone-hero { position: absolute; left: 50%; top: 50%; transform: translate(-46%, -50%) rotate(-4deg); }
.float-card {
  position: absolute; left: 0; bottom: 70px; z-index: 3;
  width: 250px; padding: 14px; border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(42, 29, 20, 0.08), 0 24px 40px -18px rgba(42, 29, 20, 0.45);
  transform: rotate(-2deg);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotate(-2deg) translateY(-8px); } }
.float-q { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--ground); font-size: 14px; font-weight: 600; }
.float-q svg, .app-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.float-a { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.float-a b { display: block; color: var(--green); font-size: 14px; }
.float-thumb { width: 46px; height: 46px; border-radius: 9px; overflow: hidden; flex: none; background: var(--ground); }

/* ---------- phone frame ---------- */
.phone {
  --w: 300px;
  position: relative; z-index: 2;
  width: var(--w); aspect-ratio: 9 / 19.5;
  padding: 11px; border-radius: 50px;
  background: linear-gradient(145deg, #4b2e1f, #1e140d 60%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(26, 17, 11, 0.5),
    0 40px 70px -25px rgba(26, 17, 11, 0.55),
    0 18px 30px -18px rgba(26, 17, 11, 0.4);
}
.phone-island { position: absolute; top: 22px; left: 50%; width: 86px; height: 25px; margin-left: -43px; border-radius: 20px; background: #0d0906; z-index: 4; }
/* .screen is the one element to swap. A real screenshot works as <img class="screen" src="..." alt="...">. */
.screen { display: block; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; object-fit: cover; background: var(--paper); }
img.screen { object-position: top center; }

/* ---------- the app mockups ---------- */
.app { position: relative; display: flex; flex-direction: column; font-family: var(--body); color: var(--ink); font-size: 12px; line-height: 1.3; background: var(--paper); }
.app-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0; height: 44px; font-size: 13px; font-weight: 700; }
.app-status-icons { display: flex; gap: 3px; align-items: flex-end; }
.app-status-icons i { display: block; width: 4px; background: var(--ink); border-radius: 1px; }
.app-status-icons i:nth-child(1) { height: 6px; }
.app-status-icons i:nth-child(2) { height: 8px; }
.app-status-icons i:nth-child(3) { height: 10px; }
.app-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 8px; }
.app-title { font-family: var(--display); font-size: 30px; line-height: 1; }
.app-add { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cherry); color: #fff; font-size: 20px; font-weight: 600; line-height: 1; }
.app-search { display: flex; align-items: center; gap: 7px; margin: 0 16px; padding: 9px 12px; border-radius: 12px; background: var(--ground); color: var(--ink-soft); font-size: 13px; }
.app-search.is-typing { color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--blue); }
.caret { display: inline-block; width: 1.5px; height: 15px; margin-left: -5px; background: var(--blue); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.app-chips { display: flex; gap: 6px; padding: 12px 16px 4px; overflow: hidden; }
.app-chips span { flex: none; padding: 6px 10px; border-radius: 999px; background: var(--ground); font-size: 11px; font-weight: 700; white-space: nowrap; }
.app-chips .on { background: var(--ink); color: var(--paper); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px; flex: 1; min-height: 0; overflow: hidden; align-content: start; grid-auto-rows: max-content; }
.tile { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 12px -8px rgba(42, 29, 20, 0.35); }
.tile-art { aspect-ratio: 1; }
.tile-cap { display: flex; flex-direction: column; padding: 6px 9px 8px; }
.tile-cap b { font-size: 12px; }
.tile-cap span { font-size: 10px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.app-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 8px 22px; border-top: 1px solid var(--line); background: rgba(250, 244, 233, 0.96); margin-top: auto; }
.app-tabs .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; color: #a8957f; }
.app-tabs .tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-tabs .tab.on { color: var(--cherry); }

.app-banner { display: flex; align-items: center; gap: 8px; margin: 12px 16px 2px; padding: 10px 12px; border-radius: 12px; background: #e6e4d4; color: #3f5845; font-weight: 700; font-size: 12px; }
.tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; flex: none; }
.app-list { padding: 4px 16px; flex: 1; overflow: hidden; }
.app-sub { margin: 12px 0 2px; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 1px rgba(42, 29, 20, 0.14);
}
/* Thread photos are zoomed in on the skein or card. Per row in index.html: --zoom, and the point
   to center as fractions of the photo (--fx, --fy). */
.swatch img {
  transform-origin: 0 0;
  transform: translate(calc((0.5 - var(--zoom, 1) * var(--fx, 0.5)) * 100%), calc((0.5 - var(--zoom, 1) * var(--fy, 0.5)) * 100%)) scale(var(--zoom, 1));
}
.row-thumb { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main b, .row-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main b { font-size: 13px; }
.row-main span { font-size: 11px; color: var(--ink-soft); }
.row-count { font-size: 11px; font-weight: 700; color: var(--ink); background: var(--ground); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }

.app-back { padding: 10px 18px 6px; font-weight: 700; color: var(--cherry); font-size: 14px; }
.proj-art { margin: 4px 16px 0; border-radius: 18px; aspect-ratio: 1.05; box-shadow: 0 8px 16px -10px rgba(42, 29, 20, 0.4); }
.proj-body { padding: 12px 18px 0; flex: 1; }
.proj-title { font-family: var(--display); font-size: 24px; line-height: 1.05; }
.proj-meta { font-size: 11px; color: var(--ink-soft); margin: 3px 0 10px; }
.proj-progress { height: 10px; border-radius: 999px; background: var(--ground); overflow: hidden; }
.proj-progress span {
  display: block; height: 100%; width: var(--p); border-radius: inherit;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0 4px, transparent 4px 8px), var(--cherry);
}
.proj-pct { margin: 6px 0 10px; font-size: 12px; color: var(--ink-soft); }
.proj-pct b { color: var(--ink); font-size: 14px; }
.proj-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.proj-facts div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.proj-facts span { color: var(--ink-soft); }
.proj-btn { margin: 12px 0 10px; padding: 10px; border-radius: 12px; text-align: center; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 13px; }

/* ---------- shop ---------- */
.shop { position: relative; background: var(--ink); color: var(--paper); padding: 0 0 110px; overflow: hidden; }
.shop::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 9px 9px;
}
.wall { position: relative; width: 100%; max-width: 1400px; margin: 0 auto; padding: 46px var(--gutter) 0; }
.wall-line { position: absolute; left: 0; right: 0; top: 52px; height: 2px; background: rgba(226, 212, 189, 0.45); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.wall-row { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 36px); align-items: start; }
.hang { position: relative; padding-top: 10px; transform-origin: 50% 0; }
.hang:nth-child(odd) { transform: rotate(-1.6deg); }
.hang:nth-child(even) { transform: rotate(1.8deg); margin-top: 8px; }
.peg { position: absolute; left: 50%; top: 0; z-index: 2; width: 12px; height: 26px; margin-left: -6px; border-radius: 3px; background: linear-gradient(90deg, #b58a4e, #d9b99b 45%, #8a5a3b); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4); }
.hang-canvas { aspect-ratio: 1; border-radius: 4px; box-shadow: 0 22px 30px -18px rgba(0, 0, 0, 0.75); }
.split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.shop .split { margin-top: 40px; }
.split-copy h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; margin-bottom: 24px; }
.split-copy p { font-size: 19px; max-width: 30em; margin-bottom: 16px; }
.shop .split-copy p { color: #e2d4bd; }
.split-phone { display: flex; justify-content: center; }
.phone-tilt-r { transform: rotate(3deg); }
.phone-tilt-l { transform: rotate(-3deg); }
.shop .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), 0 40px 80px -20px rgba(0, 0, 0, 0.6); }

/* ---------- projects ---------- */
.projects { padding: 120px 0; position: relative; }
.projects::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(760px, 92vw); aspect-ratio: 1; transform: translate(-82%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(217, 185, 155, 0.45), rgba(217, 185, 155, 0) 65%);
  pointer-events: none;
}
.split-rev .split-copy { order: 2; }
.split-rev .split-phone { order: 1; }

/* ---------- more ---------- */
.more { padding: 30px 0 120px; }
.more-title { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; max-width: 16em; margin-bottom: 44px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 22px 22px 28px;
  box-shadow: 0 1px 0 var(--line), 0 30px 50px -36px rgba(42, 29, 20, 0.5);
}
.card h3 { font-size: 26px; line-height: 1.1; margin: 22px 4px 10px; }
.card p { font-size: 16.5px; color: var(--ink-soft); margin: 0 4px; }
.card-art { position: relative; height: 230px; border-radius: 20px; overflow: hidden; }

.wish-art { background: #f0e2d0; display: grid; place-items: center; }
.wish-canvas { width: 130px; height: 130px; border-radius: 10px; transform: rotate(-4deg); box-shadow: 0 14px 22px -12px rgba(42, 29, 20, 0.5); }
.wish-btn {
  position: absolute; right: 22px; bottom: 30px;
  padding: 10px 16px; border-radius: 999px; background: var(--cherry); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 0 var(--cherry-deep);
}
.wish-moved {
  position: absolute; left: 18px; top: 18px; padding: 7px 12px; border-radius: 999px;
  background: var(--paper); color: var(--green); font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 14px -8px rgba(42, 29, 20, 0.4);
}
.wish-moved::before { content: "\2713"; margin-right: 6px; }
.card-wish.in .wish-moved { animation: pop 0.5s 0.6s cubic-bezier(.2,.9,.3,1.4) both; }
.card-wish.in .wish-btn { animation: press 0.5s 0.3s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.9); } }
@keyframes press { 50% { transform: translateY(3px); box-shadow: 0 1px 0 var(--cherry-deep); } }

.finisher-art { background: #efe3d1; display: flex; align-items: center; justify-content: center; gap: 12px; }
.polaroid { width: 112px; padding: 7px 7px 6px; background: #fff; border-radius: 4px; transform: rotate(-6deg); box-shadow: 0 12px 20px -12px rgba(42, 29, 20, 0.5); }
.polaroid div { aspect-ratio: 1; }
.polaroid span { display: block; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-soft); padding-top: 4px; }
.finisher-arrow { width: 34px; height: 12px; flex: none; background: linear-gradient(90deg, var(--ink) 0 55%, transparent 55%) 0 50% / 8px 2px repeat-x; position: relative; }
.finisher-arrow::after { content: ""; position: absolute; right: -2px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.finished { width: 116px; aspect-ratio: 692 / 790; border-radius: 10px; transform: rotate(4deg); box-shadow: 0 12px 20px -12px rgba(42, 29, 20, 0.55); }
.chip { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; }

.home-art { background: #e9dfca; display: grid; place-items: center; }
.home-canvas { width: 150px; height: 150px; border-radius: 10px; transform: rotate(-3deg); box-shadow: 0 14px 22px -12px rgba(42, 29, 20, 0.5); }

/* ---------- invite ---------- */
.invite {
  padding: 110px 0;
  /* gingham */
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(217, 195, 165, 0.45) 50%, transparent 50%),
    linear-gradient(rgba(217, 195, 165, 0.45) 50%, transparent 50%);
  background-size: 14px 14px;
}
.invite-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: start;
  background: var(--paper); border-radius: 36px; padding: 56px;
  box-shadow: 0 0 0 10px rgba(250, 244, 233, 0.55), 0 40px 70px -30px rgba(42, 29, 20, 0.5);
}
.invite-copy h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.04; margin-bottom: 20px; }
.invite-copy p { color: var(--ink-soft); font-size: 19px; max-width: 26em; margin-bottom: 28px; }

.invite-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 7px; }
.opt { font-weight: 500; color: var(--ink-soft); }
.field input[type="email"], .field input[type="text"] {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff;
  font: 500 17px var(--body); color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #a8957f; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(138, 90, 59, 0.18); }
.field input[aria-invalid="true"] { border-color: var(--cherry); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  border-radius: 14px; border: 2px solid var(--line); background: #fff; font-weight: 700;
  transition: all 0.15s ease;
}
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(138, 90, 59, 0.35); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 0; font-size: 15px; font-weight: 600; color: var(--cherry-deep); }
.form-msg:empty { display: none; }
.form-note { font-size: 14px; color: var(--ink-soft); text-align: center; }

.thanks { text-align: center; padding: 20px 0; outline: none; }
.thanks-art { width: 120px; height: 120px; margin: 0 auto 18px; background: none; }
.thanks-art img { object-fit: contain; mix-blend-mode: multiply; }
.thanks h3 { font-size: 30px; line-height: 1.1; margin-bottom: 12px; }
.thanks p { color: var(--ink-soft); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #e2d4bd; padding: 56px 0 64px; font-size: 15px; }
.foot-inner { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 40px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 9px; }
.foot a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.foot-privacy { max-width: 40em; }
.foot-copy { white-space: nowrap; }
.foot-credits { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(226, 212, 189, 0.18); font-size: 13.5px; color: #c9b79e; }
.foot-credits a { color: #e2d4bd; font-weight: 600; }

/* ---------- reveal ---------- */
/* Hero runs on CSS alone. Lower sections fade in on scroll only when main.js has set .js. */
.rise-in { animation: rise-in 0.8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > .rise-in:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > .rise-in:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > .rise-in:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > .rise-in:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2) { transition-delay: 0.1s; }
.bento .reveal:nth-child(3) { transition-delay: 0.2s; }
.phone-hero { animation: rise 1s 0.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translate(-46%, -44%) rotate(-1deg); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rise-in, .phone-hero, .float-card, .status::before, .caret, .card-wish.in .wish-moved, .card-wish.in .wish-btn { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { max-width: 720px; }
  .hero-stage { height: 680px; max-width: 640px; width: 100%; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-rev .split-copy { order: 1; }
  .split-rev .split-phone { order: 2; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-home { grid-column: span 2; }
  .invite-card { grid-template-columns: 1fr; gap: 36px; padding: 44px; }
  .foot-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .nav { padding: 14px 0; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-text b { font-size: 22px; }
  .brand-text span { font-size: 12px; }
  .btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .hero { padding: 14px 0 64px; }
  .hero h1 { font-size: clamp(40px, 11.6vw, 56px); margin-bottom: 20px; }
  .cta-row .btn { flex: 1 1 100%; }
  .stores .store { flex: 1 1 0; min-width: 0; padding-right: 12px; }
  .store-text b { font-size: 16px; }
  .hero-stage { height: 600px; }
  .table { inset: 30px 0; border-radius: 30px; transform: rotate(1.5deg); }
  .phone { --w: 262px; padding: 10px; border-radius: 44px; }
  .screen { border-radius: 35px; }
  .phone-island { top: 19px; width: 76px; height: 22px; margin-left: -38px; }
  .phone-hero { transform: translate(-50%, -50%) rotate(-3deg); }
  @keyframes rise { from { opacity: 0; transform: translate(-50%, -44%) rotate(-1deg); } }
  .float-card { left: 0; bottom: 18px; width: 226px; padding: 11px; }
  .float-a { gap: 10px; }
  .stores-small .store { flex: 1 1 100%; }
  .app { font-size: 11px; }
  .app-title { font-size: 26px; }
  .app-grid { gap: 8px; padding: 8px 14px; }
  .lay { width: calc(var(--s) * 0.72); }
  .wall { padding-top: 34px; }
  .wall-line { top: 40px; }
  .wall-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hang:nth-child(n+4) { display: none; }
  .shop { padding-bottom: 80px; }
  .shop .split { margin-top: 24px; }
  .split-copy p { font-size: 17px; }
  .projects { padding: 80px 0; }
  .more { padding: 10px 0 80px; }
  .more-title { margin-bottom: 28px; }
  .bento { grid-template-columns: 1fr; }
  .card-home { grid-column: auto; }
  .invite { padding: 64px 0; }
  .invite-card { padding: 28px 20px; border-radius: 26px; box-shadow: 0 0 0 6px rgba(250, 244, 233, 0.55), 0 30px 50px -30px rgba(42, 29, 20, 0.5); }
  .invite-copy p { font-size: 17px; }
}

@media (max-width: 360px) {
  .brand-text span { display: none; }
  .phone { --w: 240px; }
}
