/* ==========================================================
   kathaa by dhruvii: cream canvas, ink black, running stitch
   ========================================================== */
:root {
  --cream: #f3eee4;
  --cream-2: #ebe4d6;
  --paper: #faf7f1;
  --ink: #141414;
  --ink-soft: #4a4640;
  --muted: #7b746a;
  --line: #d9d0bf;
  --accent: #a45a3c;        /* warm terracotta, like the bleach tones */
  --accent-soft: #f0dccf;
  --ok: #3f6b4a;
  --radius: 4px;
  --stitch: 1.5px dashed var(--ink);
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 8px 24px rgba(20, 20, 20, .06);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Patrick Hand", "Segoe Print", cursive;
  --font-logo: "Spectral", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, .h2, .h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.01em; }
h2, .h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
h3, .h3 { font-size: 1.45rem; }
em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: var(--paper); border-block: var(--stitch); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head.left { text-align: left; }
.eyebrow {
  font-family: var(--font-script); font-size: 1.15rem; color: var(--accent); letter-spacing: .02em;
  margin: 0 0 .1em; line-height: 1.2;
}
.eyebrow.light { color: var(--accent-soft); }
.muted { color: var(--muted); }
.hint { font-size: .86rem; color: var(--muted); margin: .5em 0 0; }
.center { text-align: center; justify-content: center; }
.small { font-size: .82rem; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* stitched panels: the label's running stitch */
.stitched {
  background: var(--paper);
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow);
}
.stitched::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: var(--stitch); border-radius: 2px; opacity: .55;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--ink);
  font-weight: 400; letter-spacing: .06em; text-transform: lowercase; text-decoration: none;
  transition: transform .15s ease, background .2s, color .2s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #2a2a2a; }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-block { width: 100%; margin-top: 12px; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-soft); font-size: .9rem; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 238, 228, .92); backdrop-filter: blur(8px);
  border-bottom: var(--stitch);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.wordmark { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.wm-name { font-family: var(--font-logo); font-size: 1.5rem; letter-spacing: .34em; margin-right: -.34em; font-weight: 300; }
.wm-by { font-family: var(--font-script); font-size: .88rem; letter-spacing: .1em; margin-top: 3px; color: var(--ink-soft); }
.wordmark.light .wm-by { color: var(--line); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; font-size: .95rem; letter-spacing: .04em; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; border-bottom: var(--stitch);
  transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-icons { display: flex; gap: 6px; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; text-decoration: none; transition: background .2s;
}
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.icon-btn svg .fill, .btn svg .fill { fill: currentColor; stroke: none; }
.icon-btn.light { color: var(--cream); border: 1px solid rgba(243, 238, 228, .35); }
.icon-btn.light:hover { background: rgba(243, 238, 228, .12); }
.badge {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 500;
  display: grid; place-items: center;
}
.badge[hidden] { display: none; }

/* ---------------- hero ---------------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 88px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-label {
  background: var(--ink); padding: clamp(36px, 7vw, 72px) clamp(20px, 5vw, 48px);
  border-radius: var(--radius); display: grid; place-items: center;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
                    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px);
}

/* the fabric patch from the logo (drawn by js/doodles.js) */
.patch { width: 100%; max-width: 420px; }
.patch svg { width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }

/* ---------------- shop ---------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 8px 18px; font-size: .9rem; transition: all .15s; min-height: 40px;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 36px rgba(0,0,0,.1); }
.card-img {
  position: relative; aspect-ratio: 4 / 5; background: var(--cream-2);
  display: grid; place-items: center; padding: 18px;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img svg { width: 78%; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); transition: transform .35s ease; }
.card:hover .card-img svg { transform: scale(1.04) rotate(-1deg); }
.card-tag {
  position: absolute; top: 12px; left: 12px; background: var(--paper); border: 1px dashed var(--ink);
  padding: 2px 10px; font-size: .74rem; letter-spacing: .05em; border-radius: 999px;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.4rem; margin-bottom: .2em; }
.card-desc { font-size: .9rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.price { font-weight: 500; font-size: 1.05rem; }
.sizes { font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-align: right; }

/* ---------------- product dialog ---------------- */
.product-dialog {
  border: 0; padding: 0; border-radius: 6px; background: var(--paper); color: var(--ink);
  width: min(920px, 100% - 24px); max-height: calc(100dvh - 24px);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.product-dialog::backdrop { background: rgba(20, 20, 20, .55); backdrop-filter: blur(2px); }
.product-dialog[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--paper); font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow);
}
.dialog-content { display: grid; grid-template-columns: 1fr 1fr; }
.pd-gallery { background: var(--cream-2); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.pd-main { flex: 1; display: grid; place-items: center; min-height: 320px; }
.pd-main svg { width: 85%; filter: drop-shadow(0 10px 16px rgba(0,0,0,.18)); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.pd-thumbs { display: flex; gap: 8px; }
.pd-thumbs button { width: 60px; height: 72px; padding: 4px; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; }
.pd-thumbs button.active { border-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 32px 28px 28px; display: flex; flex-direction: column; overflow-y: auto; }
.pd-info h2 { font-size: 2.1rem; margin-bottom: .1em; }
.pd-price { font-size: 1.25rem; font-weight: 500; margin-bottom: .8em; }
.pd-desc { color: var(--ink-soft); }
.pd-row { margin: 10px 0 14px; }
.pd-label { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-soft); }
.pd-label a { text-transform: none; letter-spacing: 0; font-size: .88rem; text-underline-offset: 3px; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; border-radius: 6px; }
.size-options.error { outline: 1.5px dashed var(--accent); outline-offset: 4px; }
.size-btn {
  min-width: 48px; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: transparent; border-radius: 3px;
  transition: all .15s;
}
.size-btn:hover { border-color: var(--ink); }
.size-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 1.2rem; }
.qty output { min-width: 28px; text-align: center; }
.qty.small button { width: 34px; height: 34px; }
.check { display: flex; align-items: center; gap: 10px; margin: 6px 0; cursor: pointer; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.pd-custom textarea { margin-top: 6px; }

/* ---------------- size chart ---------------- */
.unit-toggle { display: flex; justify-content: center; margin-bottom: 18px; }
.unit-toggle button { border: 1px solid var(--ink); background: transparent; padding: 7px 20px; min-height: 38px; }
.unit-toggle button:first-child { border-radius: 999px 0 0 999px; }
.unit-toggle button:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.unit-toggle button.active { background: var(--ink); color: var(--cream); }
.table-wrap { padding: 18px; overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; text-align: center; position: relative; }
.size-table th, .size-table td { padding: 12px 10px; border-bottom: 1px dashed var(--line); }
.size-table thead th { font-weight: 500; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.size-table tbody th { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.size-table tbody tr:last-child > * { border-bottom: 0; }
.size-table tbody tr:hover { background: var(--cream); }
.measure-tips { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 4px; font-size: .92rem; color: var(--ink-soft); }
.measure-tips strong { font-weight: 500; color: var(--ink); }

/* ---------------- forms ---------------- */
.form { padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.form > * { position: relative; }
.form label:not(.check):not(.upload-drop) { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; letter-spacing: .03em; color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input:not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; font: 400 1rem var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--accent); }

.upload { display: flex; gap: 12px; align-items: stretch; }
.upload-drop {
  flex: 1; display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer;
  border: 1.5px dashed var(--ink-soft); border-radius: 4px; background: var(--cream);
  transition: background .15s, border-color .15s;
}
.upload-drop:hover { background: var(--cream-2); border-color: var(--ink); }
.upload-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.upload-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-drop svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.upload-drop span { display: flex; flex-direction: column; font-size: .92rem; }
.upload-drop strong { font-weight: 500; }
.upload-drop small { color: var(--muted); }
.photo-preview { position: relative; }
.photo-preview:empty { display: none; }
.photo-preview img { width: 84px; height: 100%; min-height: 76px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.photo-remove {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--cream); line-height: 1;
}

/* ---------------- custom order ---------------- */
.custom-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; }
.steps span {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed var(--ink);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500;
}

/* ---------------- instagram band ---------------- */
.ig-band { background: var(--ink); color: var(--cream); padding: 56px 0; }
.ig-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ig-inner h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0; max-width: 18em; }

/* ---------------- faq ---------------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px dashed transparent; transition: border-color .2s; }
.section-alt .faq-item { background: #fff; }
.faq-item[open] { border-color: var(--ink-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative;
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-weight: 300; font-size: 1.5rem; transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* ---------------- cart ---------------- */
.checkout-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.cart-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.line {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: start;
  background: var(--paper); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.line-img { background: var(--cream-2); aspect-ratio: 4/5; display: grid; place-items: center; border-radius: 3px; overflow: hidden; }
.line-img svg { width: 80%; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-info h3 { font-size: 1.3rem; margin-bottom: .2em; }
.line-opts { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.line-opts select { width: auto; min-height: 34px; padding: 4px 28px 4px 10px; }
.line-custom { font-size: .85rem; color: var(--ink-soft); background: var(--cream); border-left: 2px dashed var(--accent); padding: 6px 10px; margin: 8px 0 0; }
.line-custom strong { font-weight: 500; }
.line-bottom { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.line-price { font-weight: 500; white-space: nowrap; }

.checkout { display: grid; gap: 20px; position: sticky; top: 88px; }
.summary { padding: 26px 28px; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; }
.summary dl div:nth-child(2) dd { color: var(--muted); font-size: .88rem; }
.summary .total { border-top: 1px dashed var(--ink-soft); padding-top: 12px; margin-top: 4px; font-size: 1.15rem; }
.summary .total dt, .summary .total dd { color: var(--ink); font-weight: 500; }

.payment-soon {
  border: 1.5px dashed var(--accent); border-radius: 4px; padding: 16px 18px; background: var(--accent-soft);
}
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pay-head h3 { font-size: 1.25rem; margin: 0; }
.pill { font-family: var(--font-script); font-size: .95rem; background: var(--accent); color: #fff; padding: 0 12px; border-radius: 999px; }
.upi-apps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.upi-apps span {
  font-size: .78rem; font-weight: 500; padding: 4px 10px; border-radius: 3px; background: rgba(255,255,255,.6);
  color: var(--muted); border: 1px solid rgba(0,0,0,.08); filter: grayscale(1);
}
.payment-soon p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

.empty { padding: 56px 24px; text-align: center; display: grid; justify-items: center; gap: 8px; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 48px 0 32px; border-top: 1px dashed rgba(243,238,228,.3); }
.ig-band + .section { }
.footer-inner { display: grid; justify-items: center; text-align: center; gap: 10px; }
.footer-inner p { margin: 0; color: var(--line); }
.footer-links { display: flex; gap: 10px; margin: 6px 0; }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px;
  font-size: .92rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s ease, opacity .3s;
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast a { color: var(--accent-soft); margin-left: 6px; }

/* ---------------- thank you ---------------- */
.thanks-page { min-height: 100dvh; display: grid; place-items: center; background: var(--ink); }
.thanks { text-align: center; display: grid; justify-items: center; gap: 28px; padding: 48px 0; }
.thanks .lead { color: var(--line); max-width: 30em; margin: 0; }
.thanks .btn-ghost { color: var(--cream); border-color: var(--cream); }
.thanks .btn-primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------------- studio drift wall (ported from React Bits DriftWall) ---------------- */
.studio { padding: clamp(56px, 9vw, 96px) 0 0; }
.studio .section-head { margin-bottom: 8px; }
@media (hover: none) { .hover-hint { display: none; } }
.studio .studio-wall { height: clamp(420px, 62vw, 620px); }
.d-studio-spool { --s: 52px; left: calc(50% - 400px); top: 30px; --r: -12deg; }
.d-studio-sparkle { --s: 30px; left: calc(50% + 300px); top: 8px; }

.drift-wall {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  perspective: var(--dw-perspective, 1200px); perspective-origin: 50% 50%;
  -webkit-mask-image:
    radial-gradient(ellipse 78% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%),
    linear-gradient(to top, #000 var(--dw-edge), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 78% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%),
    linear-gradient(to top, #000 var(--dw-edge), transparent 100%);
  mask-composite: intersect;
}
.drift-wall__plane {
  position: absolute; top: 50%; left: 50%; display: flex;
  transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform;
}
.drift-wall__col { position: relative; width: calc(var(--dw-tile-w) + var(--dw-gap)); transform-style: preserve-3d; }
.drift-wall__track { display: flex; flex-direction: column; will-change: transform; transform-style: preserve-3d; }
.drift-wall__tile {
  position: relative; display: block; width: 100%; height: calc(var(--dw-tile-h) + var(--dw-gap));
  flex: 0 0 auto; outline: none; transform-style: preserve-3d; cursor: pointer;
}
.drift-wall__inner {
  position: absolute; inset: calc(var(--dw-gap) / 2); display: block; overflow: hidden;
  border-radius: var(--dw-radius); background: var(--cream-2); opacity: var(--dw-dim);
  transform: translateZ(0); pointer-events: none;
  box-shadow: 0 6px 18px -8px rgba(20, 20, 20, .25);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .42s cubic-bezier(.22, 1, .36, 1), box-shadow .42s cubic-bezier(.22, 1, .36, 1);
}
/* a dashed stitch inside every photo, like the label */
.drift-wall__inner::after {
  content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(243, 238, 228, .7);
  border-radius: 3px; opacity: 0; transition: opacity .3s;
}
.drift-wall__tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(var(--dw-gray)) saturate(.85) sepia(.12);
  transition: filter .42s cubic-bezier(.22, 1, .36, 1); user-select: none; -webkit-user-drag: none;
}
.drift-wall__overlay {
  position: absolute; inset: 0; background: var(--dw-overlay); opacity: .28; pointer-events: none;
  transition: opacity .42s cubic-bezier(.22, 1, .36, 1);
}
.drift-wall__label {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1;
  font-family: var(--font-script); font-size: 1rem; line-height: 1.2; color: var(--cream);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.drift-wall__tile.is-active .drift-wall__inner,
.drift-wall__tile:focus-visible .drift-wall__inner {
  opacity: 1; transform: translateZ(var(--dw-lift));
  box-shadow: 0 24px 50px -18px rgba(20, 20, 20, .55);
}
.drift-wall__tile.is-active img, .drift-wall__tile:focus-visible img { filter: grayscale(0) saturate(1.05); }
.drift-wall__tile.is-active .drift-wall__overlay, .drift-wall__tile:focus-visible .drift-wall__overlay { opacity: 0; }
.drift-wall__tile.is-active .drift-wall__inner::after, .drift-wall__tile:focus-visible .drift-wall__inner::after { opacity: 1; }
.drift-wall__tile.is-active .drift-wall__label, .drift-wall__tile:focus-visible .drift-wall__label { opacity: 1; transform: none; }
.drift-wall__tile:focus-visible .drift-wall__inner { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .drift-wall__plane, .drift-wall__track { will-change: auto; }
}

/* ---------------- doodles ----------------
   pen-ink sketches; positions are hand-placed per section */
.doodle {
  position: absolute; display: block; pointer-events: none; z-index: 0;
  width: var(--s, 48px); color: var(--ink); opacity: .82;
  transform: rotate(var(--r, 0deg));
}
.doodle svg { width: 100%; height: auto; overflow: visible; }
.doodle path, .doodle circle { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.doodle .accent { stroke: var(--accent); }
.doodle .dashed { stroke-dasharray: 5 5; }
.doodle .dot { fill: currentColor; stroke: none; }
.d-accent { color: var(--accent); }
.d-chalk { color: #e9e3d8; opacity: .75; }
.d-chalk .accent { stroke: #d9a688; }
.d-inline, .d-inline-lg { position: relative; display: inline-block; vertical-align: -.15em; width: 1.05em; opacity: 1; }
.d-inline-lg { width: .9em; vertical-align: -.05em; --r: 8deg; }
.site-footer .d-inline { color: #d9a688; }

.hero-text, .hero-ctas, .section-head, .custom-intro, .hero-label, .ig-band, .thanks-patch { position: relative; }
.ig-band { overflow: hidden; }
.ig-inner { position: relative; z-index: 1; }
.scribbled { position: relative; white-space: nowrap; }
.d-underline { left: -6%; bottom: -.18em; width: 112%; --r: -1.5deg; color: var(--accent); opacity: .9; }
.d-underline path { stroke-width: 2.2; }
.hand-note {
  position: absolute; left: 196px; top: calc(100% + 22px); white-space: nowrap;
  font-family: var(--font-script); font-size: 1.15rem; color: var(--ink-soft); transform: rotate(-4deg);
}
.d-note-arrow { --s: 58px; left: -66px; top: -30px; transform: rotate(200deg); }
.d-hero-star { --s: 26px; --r: 14deg; right: 6%; top: -18px; color: var(--accent); }
.d-hero-needle { --s: 92px; --r: -12deg; left: 5%; bottom: 7%; }
.d-hero-sparkle { --s: 34px; right: 6%; top: 8%; }
.d-hero-sparkle2 { --s: 18px; right: 13%; top: 20%; --r: 20deg; opacity: .55; }
.d-hero-squiggle { --s: 70px; right: 7%; bottom: 9%; --r: -8deg; }
.d-shop-flower { --s: 54px; left: calc(50% - 130px); top: 4px; --r: -14deg; }
.d-shop-sparkle { --s: 28px; left: calc(50% + 78px); top: 0; }
.d-size-scissors { --s: 58px; left: calc(50% - 190px); top: 18px; --r: -20deg; }
.d-size-button { --s: 36px; left: calc(50% + 160px); top: 6px; --r: 12deg; }
.custom-doodles { position: relative; height: 130px; margin-top: 32px; }
.custom-note { position: absolute; left: 104px; top: 40px; font-family: var(--font-script); font-size: 1.2rem; color: var(--ink-soft); transform: rotate(-3deg); }
.d-custom-spool { --s: 84px; left: 4px; top: 0; --r: -8deg; }
.d-custom-heart { --s: 30px; left: 330px; top: 30px; --r: 12deg; }
.d-custom-splat { --s: 56px; left: 120px; top: 74px; opacity: .55; }
.d-ig-swirl { --s: 64px; left: 3%; bottom: -14px; --r: 20deg; opacity: .4; }
.d-ig-heart { --s: 36px; right: 30%; top: 12px; --r: -12deg; opacity: .5; }
.d-ig-star { --s: 24px; left: 46%; bottom: 10px; opacity: .45; }
.d-faq-q { --s: 46px; left: calc(50% - 300px); top: -6px; --r: -10deg; }
.d-faq-sun { --s: 44px; left: calc(50% + 262px); top: -4px; }
.d-cart-tee { --s: 52px; left: 210px; top: 12px; --r: 9deg; }
.d-cart-sparkle { --s: 24px; left: 270px; top: 4px; }
.d-empty-spool { position: relative; --s: 64px; margin-bottom: 6px; --r: -6deg; }
.thanks-patch { width: min(420px, 100%); }
.d-thanks-heart { --s: 40px; right: -34px; top: -26px; --r: 12deg; color: #d9a688; }
.d-thanks-sparkle { --s: 26px; left: 52%; top: -44px; }
.d-thanks-needle { --s: 92px; left: -18px; top: -54px; --r: 8deg; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0 0; gap: 4px 20px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; padding: 6px 0 10px; border-top: 1px dashed var(--line); }
  .main-nav a { font-size: .88rem; }
  .hero-inner, .custom-grid, .checkout-grid { grid-template-columns: 1fr; }
  .hero-label { order: -1; }
  .checkout { position: static; }
  .dialog-content { grid-template-columns: 1fr; }
  .pd-main { min-height: 220px; }
  .pd-main svg { width: 55%; }
}
@media (max-width: 560px) {
  .d-hide-sm { display: none; }
  .d-studio-sparkle { left: auto; right: 4px; top: -6px; }
  .d-hero-needle { --s: 56px; left: 2%; bottom: 2%; }
  .d-hero-sparkle { --s: 22px; right: 3%; top: 3%; }
  .d-hero-sparkle2 { display: none; }
  .d-shop-flower { left: calc(50% - 100px); --s: 36px; }
  .d-shop-sparkle { left: calc(50% + 64px); }
  .d-size-scissors { left: 0; top: 0; --s: 36px; }
  .d-faq-q { left: 0; top: -14px; --s: 34px; }
  .d-cart-tee { left: auto; right: 4px; }
  .d-cart-sparkle { left: auto; right: 64px; }
  .d-thanks-heart { right: -6px; top: -30px; }
  .d-thanks-needle { left: 0; --s: 76px; }
  .wm-name { font-size: 1.3rem; }
  .hero-ctas { flex-direction: column; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px 12px 14px; }
  .card-body h3 { font-size: 1.15rem; }
  .card-desc { display: none; }
  .card-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .sizes { text-align: left; }
  .card-tag { font-size: .66rem; top: 8px; left: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 26px 18px; }
  .line { grid-template-columns: 72px 1fr; }
  .line-price { grid-column: 2; }
  .pd-info { padding: 24px 20px; }
  .product-dialog { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
