/* ==========================================================
   The Kshumaa Edit
   Palette taken from the logo + cover artwork.
   ========================================================== */
:root {
  --cream: #f3e9df;
  --cream-light: #f8f1e9;
  --sand: #e8dac8;
  --ink: #22201c;
  --ink-soft: #5b544b;
  --gold: #b08d57;
  --gold-text: #7a5b2e;   /* gold dark enough for small text on cream */
  --line: rgba(176, 141, 87, 0.55);

  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --kannada: "Noto Sans Kannada", "Hanken Grotesk", system-ui, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4rem, 9vw, 8rem);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.55rem; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
section { padding-block: var(--section); }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-soft); max-width: 44ch; }
.muted { color: var(--ink-soft); }

/* ---------- Gold rule: the line-and-diamond from the logo ---------- */
.rule { display: flex; align-items: center; gap: .9rem; color: var(--gold); margin: 0 auto; max-width: 340px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--gold); }
.rule i { width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); flex: none; }
.rule.left { margin-inline: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 600 .98rem/1 var(--body); letter-spacing: .02em;
  padding: 1rem 1.6rem; border-radius: var(--radius);
  background: var(--ink); color: var(--cream); border: 1px solid var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #3a362f; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn.light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.light:hover { background: var(--sand); border-color: var(--sand); }
.btn.ghost-light { background: transparent; color: var(--cream); border-color: rgba(243,233,223,.6); }
.btn.ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.text-link { color: var(--gold-text); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(176,141,87,.28);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; gap: 1rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 1.35rem; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: .4rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--gold); }
.nav a[aria-current="page"] { border-color: var(--gold); }
.nav .btn { padding: .72rem 1.1rem; font-size: .9rem; border-bottom: 1px solid var(--ink); }
.menu-btn { display: none; background: none; border: 0; padding: .6rem; margin-right: -.6rem; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; display: block; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid rgba(176,141,87,.4);
    padding: .5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid rgba(176,141,87,.25); font-size: 1.1rem; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(88svh, 860px); display: grid; place-items: center; padding-block: 5rem 4.5rem; text-align: center; }
.hero .fabric { position: absolute; pointer-events: none; user-select: none; }
.hero .fabric.tr { top: 0; right: 0; width: min(46vw, 560px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 58%, transparent 96%); mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 58%, transparent 96%); }
.hero .fabric.bl { bottom: 0; left: 0; width: min(42vw, 480px); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 58%, transparent 96%); mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 58%, transparent 96%); }
.hero-inner { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), 780px); }
.hero h1 { margin: 0; line-height: 0; }
.hero .wordmark { width: 100%; height: auto; margin-inline: auto; }
.hero .ornament { width: 92%; margin: clamp(.9rem, 2vw, 1.5rem) auto 0; height: auto; }
.hero .tagline { font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-style: italic; margin: clamp(1.4rem, 3vw, 2.2rem) 0 .6rem; }
.hero .sub { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 2rem; }
.hero .btn-row { justify-content: center; }

/* The one orchestrated moment: wordmark settles, gold line draws out from the diamond */
@media (prefers-reduced-motion: no-preference) {
  .hero .wordmark { animation: settle 1.1s cubic-bezier(.2,.6,.2,1) both; }
  .hero .ornament { animation: draw 1.5s cubic-bezier(.65,0,.2,1) .5s both; }
  .hero .tagline, .hero .sub, .hero .btn-row { animation: settle .9s ease 1.5s both; }
  .hero .fabric { animation: settle 1.6s ease both; }
}
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { clip-path: inset(0 50% 0 50%); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }

@media (max-width: 640px) {
  .hero { padding-block: 4rem 3.5rem; }
  .hero .fabric.tr { width: 46vw; opacity: .8; }
  .hero .fabric.bl { width: 42vw; opacity: .8; }
}

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 40ch; color: var(--ink-soft); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.tile { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; display: block; width: 100%; }
.tile .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.tile .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .photo img, .tile:focus-visible .photo img { transform: scale(1.03); }
.tile .name { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; margin: .9rem 0 .2rem; }
.tile .price { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.tile .price s { opacity: .7; }
.tag { position: absolute; left: .7rem; top: .7rem; background: var(--cream); color: var(--ink); font-size: .78rem; font-weight: 600; padding: .3rem .6rem; border-radius: var(--radius); }
.tag.sold { background: var(--ink); color: var(--cream); }

/* Placeholder photo (used until real photos are added) */
.ph { position: absolute; inset: 0; display: grid; place-items: center; background:
  repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 1px, transparent 1px 5px),
  repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 1px, transparent 1px 5px),
  var(--tone, var(--sand)); }
.ph::before { content: ""; width: 2.2rem; height: 2.2rem; border: 1px solid var(--gold); transform: rotate(45deg); box-shadow: inset 0 0 0 5px transparent, 0 0 0 0 transparent; }
.ph::after { content: ""; position: absolute; width: .7rem; height: .7rem; background: var(--gold); transform: rotate(45deg); opacity: .8; }
.ph span { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: .85rem; color: rgba(34,32,28,.65); }

/* ---------- Categories list (editorial, no cards) ---------- */
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; gap: .5rem 2rem; padding: clamp(1.2rem, 2.4vw, 1.9rem) 0; text-decoration: none; transition: padding-left .25s ease, color .25s; }
.cat-list a:hover, .cat-list a:focus-visible { padding-left: .8rem; color: var(--gold-text); }
.cat-list .c-name { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; }
.cat-list .c-desc { color: var(--ink-soft); margin: 0; }
@media (max-width: 640px) { .cat-list a { grid-template-columns: 1fr; } }

/* ---------- Dark band ---------- */
.band { background: var(--ink); color: var(--cream); }
.band .rule { margin-bottom: 2.2rem; }
.band .lede { color: rgba(243,233,223,.82); }
.band-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.band-inner h2 { margin-bottom: .4em; }
@media (max-width: 820px) { .band-inner { grid-template-columns: 1fr; } }

/* ---------- Order steps (a true sequence, so numbered) ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid rgba(243,233,223,.25); }
.steps li:last-child { border-bottom: 1px solid rgba(243,233,223,.25); }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--gold); }
.steps b { display: block; font-family: var(--display); font-size: 1.45rem; font-weight: 500; margin-bottom: .15rem; }
.steps span { color: rgba(243,233,223,.78); font-size: 1rem; }

/* ---------- Story teaser / two column ---------- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Shop page ---------- */
.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; }
.page-head .fabric { position: absolute; top: 0; right: 0; width: min(36vw, 380px); pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 58%, transparent 96%); mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 58%, transparent 96%); opacity: .9; }
.page-head .wrap { position: relative; }
.page-head h1 { margin-bottom: .3em; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.filters button { font: 500 .98rem var(--body); padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.filters button:hover { background: var(--sand); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.empty { padding: 3rem 0; color: var(--ink-soft); }

/* ---------- Product dialog ---------- */
dialog { border: 0; padding: 0; background: var(--cream); color: var(--ink); width: min(1000px, 94vw); max-height: 92svh; overflow: auto; }
dialog::backdrop { background: rgba(34,32,28,.55); }
.dlg { display: grid; grid-template-columns: 1fr 1fr; }
.dlg .photo { position: relative; aspect-ratio: 4 / 5; background: var(--sand); }
.dlg .photo > img { width: 100%; height: 100%; object-fit: cover; }
.dlg .thumbs { display: flex; gap: .5rem; padding: .6rem; position: absolute; left: 0; bottom: 0; }
.dlg .thumbs button { width: 52px; height: 52px; padding: 0; border: 1px solid var(--cream); cursor: pointer; background: none; }
.dlg .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dlg .info { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; }
.dlg .info h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .2em; }
.dlg .price { font-size: 1.25rem; margin-bottom: 1rem; }
.dlg ul { padding-left: 1.1rem; color: var(--ink-soft); margin: 0 0 1.6rem; }
.dlg .btn-row { margin-top: auto; }
.dlg .code { font-size: .88rem; color: var(--ink-soft); margin-top: 1rem; }
.dlg .close { position: absolute; right: .6rem; top: .6rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); cursor: pointer; font-size: 1.4rem; line-height: 1; }
dialog { position: fixed; }
@media (max-width: 720px) { .dlg { grid-template-columns: 1fr; } .dlg .photo { aspect-ratio: 1 / 1; } }

/* ---------- Story page ---------- */
.story-body { font-size: clamp(1.12rem, 1.6vw, 1.28rem); line-height: 1.8; }
.story-body .pair { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.3; margin-bottom: 2.4rem; }
.story-body p { max-width: var(--measure); }
.story-body .closing { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.35; margin-top: 2.4rem; }
.kannada-sec { background: var(--sand); position: relative; overflow: hidden; }
.kannada-sec .fabric { position: absolute; bottom: 0; left: 0; width: min(34vw, 340px); opacity: .8; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 58%, transparent 96%); mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 58%, transparent 96%); }
.kannada-sec .narrow { position: relative; }
.kn { font-family: var(--kannada); line-height: 2; font-size: clamp(1.05rem, 1.5vw, 1.18rem); }
.kn h2 { font-family: var(--kannada); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.3; }
.kn .pair { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; margin-bottom: 1.8rem; }
.kn p { max-width: var(--measure); }
.lang-jump { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; font-family: var(--kannada); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--line); }
.channels li { border-bottom: 1px solid var(--line); }
.channels a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.15rem 0; text-decoration: none; }
.channels a:hover .v { color: var(--gold-text); }
.channels .k { font-family: var(--display); font-size: 1.5rem; }
.channels .v { color: var(--ink-soft); font-size: .98rem; text-align: right; overflow-wrap: anywhere; }
form .field { margin-bottom: 1.2rem; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
input, textarea, select { width: 100%; font: inherit; color: var(--ink); background: var(--cream-light); border: 1px solid rgba(34,32,28,.35); border-radius: var(--radius); padding: .85rem 1rem; }
input:focus, textarea:focus { border-color: var(--ink); }
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ---------- Policies ---------- */
.policy-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: 3rem; }
.policy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 3rem; scroll-margin-top: 6rem; }
.policy h2:first-of-type { margin-top: 0; }
.policy ul { padding-left: 1.2rem; }
.policy li { margin-bottom: .4rem; }
.policy .updated { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer img.f-logo { width: 190px; height: auto; margin-bottom: 1.2rem; filter: brightness(0) invert(.93); }
.site-footer p { color: rgba(243,233,223,.75); max-width: 34ch; font-size: .98rem; }
.site-footer h3 { font-family: var(--body); font-size: .95rem; font-weight: 600; margin-bottom: .8rem; color: var(--cream); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: rgba(243,233,223,.8); text-decoration: none; font-size: .98rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.foot-base { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(243,233,223,.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; font-size: .9rem; color: rgba(243,233,223,.65); }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(34,32,28,.3); }
.wa-float:hover { background: #3a362f; }
.wa-float svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Instagram link */
.nav .nav-ig { display: inline-flex; align-items: center; gap: .5rem; }
.nav-ig svg { width: 22px; height: 22px; }
.nav-ig .ig-label { display: none; }
.site-footer li a svg { width: 1em; height: 1em; vertical-align: -.12em; margin-right: .4rem; }
@media (max-width: 820px) { .nav-ig .ig-label { display: inline; } }

/* Instagram reels grid */
.reels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.4vw, 1.1rem); }
@media (max-width: 560px) { .reels { grid-template-columns: repeat(2, 1fr); } }
.reel { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.reel:hover img, .reel:focus-visible img { transform: scale(1.03); }
.reel .play { position: absolute; right: .7rem; top: .7rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(34,32,28,.6); color: var(--cream); display: grid; place-items: center; }
.reel .play svg { width: 1rem; height: 1rem; margin-left: 2px; }
.reels-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: 2.4rem; }
