/* Nila Boutique sample site by Final Draft (round 3)
   Palette: peacock night, wine velvet, peacock, zari gold, ivory silk.
   Type: Bodoni Moda (display) with Jost (text): the Didone + geometric pairing of fashion magazines. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-latin-ext.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+20A0-20C0, U+1E00-1EFF;
}
@font-face {
  font-family: "Nila Tamil";
  src: url("assets/fonts/tamil-nila.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0B80-0BFF;
}

:root {
  --night: #0B1A1D;
  --wine: #5C1027;
  --velvet: #3A0A18;
  --wine-deep: #22050E;
  --peacock: #0F4F57;
  --peacock-deep: #072A2F;
  --zari: #C9A24E;
  --zari-light: #E8CF8E;
  --ivory: #F4ECDF;
  --ink: #2B0712;
  --ivory-dim: rgba(244, 236, 223, 0.74);
  --hair: rgba(232, 207, 142, 0.24);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --gutter: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1.05);
  --bar-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); }
body {
  margin: 0;
  padding-top: var(--bar-h);
  background: var(--wine-deep);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

h2 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 11.5vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fine { font-size: 0.8125rem; color: var(--ivory-dim); }

:focus-visible { outline: 2px solid var(--zari-light); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ivory); color: var(--ink); padding: 10px 14px; border-radius: 6px;
}
.skip:focus { top: 52px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 var(--s5);
  border-radius: 999px; border: 0;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease-spring), background-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-icon { width: 20px; height: 20px; flex: none; }
.btn-zari {
  color: var(--ink);
  background: linear-gradient(180deg, #E6C77E 0%, #C9A24E 55%, #B38A3A 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 -1px 0 rgba(0, 0, 0, 0.12) inset, 0 14px 30px -16px rgba(201, 162, 78, 0.95);
}
.btn-ghost { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1.5px rgba(244, 236, 223, 0.55); }
@media (hover: hover) {
  .no-touch .btn:hover { transform: translateY(-2px); }
  .no-touch .btn:active { transform: scale(0.97); }
}
.link-ivory {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--ivory); font-weight: 500; text-underline-offset: 5px; text-decoration-color: var(--zari);
}
.link-btn {
  background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer;
  color: var(--zari-light); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(232, 207, 142, 0.5);
}

/* ---------- Final Draft sample bar ---------- */
.fd-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: center; gap: 4px 14px;
  padding: 0 var(--gutter);
  background: #12060A; color: rgba(244, 236, 223, 0.86);
  font-size: 0.8125rem; line-height: 1.2;
  border-bottom: 1px solid rgba(232, 207, 142, 0.18);
}
.fd-bar-line { white-space: nowrap; }
.fd-bar-cta {
  display: inline-flex; align-items: center; min-height: var(--bar-h);
  color: var(--zari-light); font-weight: 500; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 3px;
}
.fd-bar-cta:hover { color: var(--ivory); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: max(calc(100svh - var(--bar-h)), 600px);
  display: flex; flex-direction: column;
  background: radial-gradient(120% 60% at 0% 0%, rgba(15, 79, 87, 0.5), transparent 60%), var(--night);
  color: var(--ivory);
  overflow: clip;
  isolation: isolate;
}
.hero-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.layer { position: absolute; inset: 0; will-change: transform; }
.layer-photo img {
  position: absolute;
  top: var(--photo-top, calc(112px + 1.96 * var(--h1) - min(20vw, 110px))); left: 50%;
  width: min(128%, 640px);
  max-width: none;
  transform: translateX(-52%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%), linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, transparent 0%, #000 24%), linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%);
          mask-composite: intersect;
}
.layer-shade { background: linear-gradient(to top, var(--night) 0%, rgba(11, 26, 29, 0.92) 22%, rgba(11, 26, 29, 0.5) 40%, transparent 58%); }
.layer-zari {
  inset: -40px;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23E8CF8E' stroke-width='1.1'%3E%3Cpath d='M36 14c6 0 9 6 7 11s-8 7-11 3-1-8 3-7c3 1 2 5 0 5' /%3E%3Cpath d='M0 36 36 0 72 36 36 72Z' stroke-dasharray='3 4'/%3E%3C/g%3E%3Cg fill='%23E8CF8E'%3E%3Ccircle cx='36' cy='50' r='1.4'/%3E%3Ccircle cx='22' cy='36' r='1.1'/%3E%3Ccircle cx='50' cy='36' r='1.1'/%3E%3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='72' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='72' r='1.6'/%3E%3Ccircle cx='72' cy='72' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(105deg, #000 0%, rgba(0,0,0,0.65) 28%, transparent 52%);
          mask-image: linear-gradient(105deg, #000 0%, rgba(0,0,0,0.65) 28%, transparent 52%);
}
.layer-thread { width: 100%; height: 100%; overflow: visible; }
.thread { fill: none; stroke: var(--zari-light); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 6; }
.thread-shadow { fill: none; stroke: rgba(0, 0, 0, 0.45); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 8 6; transform: translate(1px, 1.6px); }
.thread-reveal { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.daisy ellipse { fill: none; stroke: var(--zari-light); stroke-width: 1.5; }
.daisy-knot { fill: #E9B8BE; }
.daisy { transform-box: fill-box; transform-origin: center; }
.thread-go .thread-reveal { animation: thread-draw 2.1s var(--ease-out) 0.35s both; }
.thread-go .daisy { animation: daisy-in 0.7s var(--ease-spring) 2.2s both; }
@keyframes thread-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes daisy-in { from { opacity: 0; transform: scale(0.2) rotate(-60deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }

.masthead { position: relative; z-index: 5; padding: 10px var(--gutter) 0; }
.wordmark {
  display: inline-grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center;
  min-height: 44px; padding-right: 8px; text-decoration: none; color: var(--ivory);
}
.wordmark-moon { width: 18px; height: 18px; color: var(--zari); grid-row: 1 / span 2; }
.wordmark-name { font-family: var(--display); font-size: 1.9rem; line-height: 1; letter-spacing: -0.01em; }
.wordmark-sub { grid-column: 2; font-size: 0.75rem; line-height: 1.2; opacity: 0.8; letter-spacing: 0.02em; }
.nav { display: flex; gap: 2px; margin: 2px -10px 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; flex: none;
  color: rgba(244, 236, 223, 0.86); text-decoration: none; font-size: 0.9375rem;
}
.nav a:hover { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--zari); text-underline-offset: 6px; }
.nav-wide { display: none !important; }

.hero-copy {
  position: relative; z-index: 5;
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s3) var(--gutter) var(--s5);
}
.hero { --h1: clamp(2.6rem, 12vw, 3.7rem); }
.hero-title {
  font-family: var(--display);
  font-size: var(--h1);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 8.4em;
  text-wrap: balance;
}
.hero-foot { position: relative; padding-left: 36px; display: grid; gap: var(--s4); }
.hero-sub { font-size: 1rem; line-height: 1.55; color: rgba(244, 236, 223, 0.9); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.hero-actions .btn { width: 100%; }
.hero-hours { font-size: 0.8125rem; color: rgba(244, 236, 223, 0.7); }
.tilt-ask {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0;
  background: transparent; color: rgba(244, 236, 223, 0.86);
  box-shadow: inset 0 0 0 1px rgba(244, 236, 223, 0.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.8125rem; cursor: pointer;
}
@media (max-width: 719px) { .tilt-ask { display: none !important; } }

/* ---------- LOOKBOOK ---------- */
.lookbook { position: relative; background: #12080A; }
.lb-pin { position: relative; }
.lb-title {
  position: relative; z-index: 4;
  padding: var(--s7) var(--gutter) var(--s5);
  font-size: clamp(1.6rem, 6.4vw, 2.4rem);
  color: var(--ivory);
}
.lb-slide { position: relative; height: max(88svh, 560px); }
.lb-inner { position: relative; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); }
.lb-media { position: absolute; inset: 0; overflow: hidden; }
.lb-media img[data-src] { opacity: 0; }
.lb-media img {
  transition: opacity 0.6s;
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%);
  transform-origin: 50% 40%;
}
.lb-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 4%, color-mix(in srgb, var(--bg) 70%, transparent) 30%, transparent 58%);
}
.lb-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--s6) + env(safe-area-inset-bottom));
  display: grid; gap: var(--s3); justify-items: start;
}
.js .lb-copy { bottom: calc(84px + env(safe-area-inset-bottom)); }
.lb-name {
  font-family: var(--display);
  font-size: clamp(2.8rem, 13.5vw, 4.6rem);
  line-height: 0.9; letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 7.5em;
}
.lb-line { max-width: 32ch; font-size: 1rem; line-height: 1.5; opacity: 0.9; }
.lb-price { font-family: var(--display); font-size: 1.5rem; color: var(--zari-light); }
.lb-light .lb-price { color: #7A4E12; }
.lb-ask {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-weight: 500; text-underline-offset: 5px; text-decoration-color: var(--zari);
}
.lb-progress { display: none; }

/* pinned curtain mode (script adds .is-pinned when motion is allowed) */
.lookbook.is-pinned { height: calc(var(--n) * 100svh); }
.is-pinned .lb-pin { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); overflow: hidden; }
.is-pinned .lb-title {
  position: absolute; left: 0; top: 0; padding: var(--s4) var(--gutter);
  font-size: clamp(1.05rem, 4.2vw, 1.4rem); letter-spacing: -0.01em;
  transition: color 0.4s;
}
.is-pinned.on-light .lb-title { color: var(--ink); }
.is-pinned .lb-slides { position: absolute; inset: 0; }
.is-pinned .lb-slide { position: absolute; inset: 0; height: auto; overflow: hidden; will-change: transform; }
.is-pinned .lb-slide:not(:first-child) { transform: translate3d(0, 100%, 0); }
.is-pinned .lb-inner { will-change: transform; }
.is-pinned .lb-progress {
  display: flex; gap: 6px; position: absolute; z-index: 4; right: var(--gutter); top: 26px;
}
.lb-progress i { display: block; width: 18px; height: 2px; background: rgba(244, 236, 223, 0.32); transition: background-color 0.3s; }
.lb-progress i.on { background: var(--zari-light); }
.on-light .lb-progress i { background: rgba(43, 7, 18, 0.25); }
.on-light .lb-progress i.on { background: #7A4E12; }

/* ---------- DESIGN YOUR BLOUSE ---------- */
.atelier {
  position: relative;
  background:
    radial-gradient(90% 60% at 20% 10%, rgba(120, 24, 52, 0.55), transparent 70%),
    linear-gradient(180deg, #3A0A18 0%, #2A0612 70%, var(--wine-deep) 100%);
  padding-top: var(--s8);
}
.atelier-head { display: grid; gap: var(--s4); padding-bottom: var(--s5); }
.atelier-head h2 { font-size: clamp(3rem, 14vw, 7.5rem); line-height: 0.9; }
.atelier-head p { max-width: 40ch; color: var(--ivory-dim); }

.atelier-stage {
  position: sticky; top: var(--bar-h); z-index: 3;
  height: min(50svh, 128vw);
  min-height: 300px;
  background: radial-gradient(70% 70% at 50% 40%, #5A1530 0%, #3A0A18 60%, #2C0713 100%);
  overflow: hidden;
  touch-action: pan-y;
  outline-offset: -3px;
}
.atelier-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(34, 5, 14, 0.85));
}
.atelier-glow {
  position: absolute; left: 50%; top: 46%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(232, 160, 120, 0.16), transparent);
  pointer-events: none;
}
.atelier-gl { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease-out); }
.atelier-gl canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.is-turning .atelier-gl canvas { cursor: grabbing; }
.atelier-stage.is-3d .atelier-gl { opacity: 1; }
.atelier-sketch {
  position: absolute; inset: 6% 2% 18%; width: 96%; height: 76%;
  transition: opacity 0.7s var(--ease-out);
}
.sk-label { font-family: var(--sans); font-size: 22px; fill: rgba(244, 236, 223, 0.6); letter-spacing: 0.04em; }
.atelier-stage.no-3d .atelier-views, .atelier-stage.no-3d .atelier-hint { display: none; }
.atelier-stage.is-3d .atelier-sketch { opacity: 0; visibility: hidden; transition: opacity 0.7s, visibility 0s 0.7s; }
.atelier-views {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(20, 3, 9, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(232, 207, 142, 0.2);
}
.atelier-views button {
  min-height: 44px; min-width: 64px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  font-size: 0.875rem; color: var(--ivory-dim); cursor: pointer; transition: background-color 0.25s, color 0.25s;
}
.atelier-views button[aria-pressed="true"] { background: rgba(232, 207, 142, 0.18); color: var(--ivory); }
.atelier-hint {
  position: absolute; right: var(--gutter); top: 12px; z-index: 2;
  font-size: 0.75rem; color: var(--ivory-dim);
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity 0.6s;
}
.atelier-hint::before { content: ""; width: 22px; height: 8px; border: 1px solid currentColor; border-radius: 8px; opacity: 0.7; }
.atelier-stage.was-turned .atelier-hint, .atelier-stage:not(.is-3d) .atelier-hint { opacity: 0; }

.atelier-panel { padding: var(--s5) var(--gutter) 0; display: grid; gap: var(--s5); }
.opt legend {
  width: 100%; margin-bottom: var(--s3);
  font-size: 0.875rem; letter-spacing: 0.02em; color: var(--ivory-dim);
}
.opt-val { float: right; font-family: var(--display); font-size: 1.05rem; color: var(--zari-light); letter-spacing: 0; line-height: 1.2; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip { position: relative; display: block; cursor: pointer; }
/* keep a focused option clear of the sticky blouse view and the price bar */
.chip input, .swatch input, .atelier-panel .link-btn { scroll-margin-top: calc(var(--bar-h) + max(min(50svh, 128vw), 300px) + 16px); scroll-margin-bottom: 104px; }
.chip input, .swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 68px; padding: 8px 6px; border-radius: 14px;
  text-align: center; font-size: 0.875rem; line-height: 1.2; color: var(--ivory-dim);
  box-shadow: inset 0 0 0 1px rgba(244, 236, 223, 0.16);
  transition: box-shadow 0.25s, background-color 0.25s, color 0.25s, transform 0.25s var(--ease-spring);
}
.chips-4 .chip-face { flex-direction: row; min-height: 52px; gap: 10px; }
.chip-face svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.chip-face svg circle { fill: currentColor; stroke: none; }
.chip-face svg .ghost { stroke-dasharray: 1.5 2.5; opacity: 0.5; }
.chip input:checked + .chip-face {
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(232, 207, 142, 0.16), rgba(232, 207, 142, 0.06));
  box-shadow: inset 0 0 0 1.5px var(--zari), 0 10px 24px -16px rgba(201, 162, 78, 0.9);
}
.chip input:checked + .chip-face svg { color: var(--zari-light); }
.chip input:active + .chip-face { transform: scale(0.96); }
.chip input:focus-visible + .chip-face, .swatch input:focus-visible + .swatch-face { outline: 2px solid var(--zari-light); outline-offset: 3px; }
@media (hover: hover) { .chip:hover .chip-face { color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(232, 207, 142, 0.5); } }
.work-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(244, 236, 223, 0.25); }
.w-plain { background: #5A1530; }
.w-aari { background: radial-gradient(circle at 50% 50%, #E9B8BE 0 2.5px, transparent 3px) 0 0 / 9px 9px, #5A1530; }
.w-maggam { background: radial-gradient(circle, #1E8A57 0 2.6px, #D9B05A 3px 4px, transparent 4.5px) 0 0 / 11px 11px, #5A1530; }
.w-zardosi { background: linear-gradient(180deg, #5A1530 0 50%, #D9B05A 50% 78%, #5A1530 78%); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: block; cursor: pointer; }
.swatch-face {
  display: block; width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(120% 90% at 30% 20%, var(--c2) 0%, var(--c1) 46%, color-mix(in srgb, var(--c1) 70%, #000) 100%);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(244, 236, 223, 0.18);
  transition: box-shadow 0.25s, transform 0.25s var(--ease-spring);
}
.swatch input:checked + .swatch-face { box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.3), 0 0 0 3px #2A0612, 0 0 0 4.5px var(--zari-light); transform: scale(1.04); }

.atelier-buy {
  position: sticky; bottom: 0; z-index: 4;
  margin: 0 calc(-1 * var(--gutter));
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  background: rgba(30, 4, 12, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--hair);
}
.buy-figures { min-width: 0; }
.buy-price { font-family: var(--display); font-size: 1.7rem; line-height: 1.05; white-space: nowrap; }
.buy-from { font-family: var(--sans); font-size: 0.8125rem; color: var(--ivory-dim); vertical-align: 0.35em; }
.buy-days { font-size: 0.8125rem; color: var(--ivory-dim); white-space: nowrap; }
.buy-send { flex: none; padding: 0 18px; min-height: 50px; font-size: 0.9375rem; }
.buy-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bump { animation: bump 0.5s var(--ease-spring); }
@keyframes bump { 0% { transform: translateY(0); } 35% { transform: translateY(-4px); color: var(--zari-light); } 100% { transform: none; } }
.atelier-summary { font-family: var(--display); font-size: 1.15rem; line-height: 1.35; color: var(--ivory); margin-top: calc(-1 * var(--s2)); }
.atelier-extra { display: grid; gap: var(--s2); padding-bottom: var(--s8); }

/* ---------- PRICES ---------- */
.services { position: relative; background: var(--peacock-deep); color: var(--ivory); }
.silk-stage {
  position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden;
  background:
    linear-gradient(160deg, #0F5A62 0%, #0B3A44 45%, #072A2F 100%);
}
.silk-photo {
  position: absolute; left: 0; top: -40px; width: 100%; height: calc(100% + 80px); object-fit: cover; object-position: 60% 50%;
  transform: translate3d(0, var(--sy, 0px), 0);
}
.silk-sheen {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 236, 200, 0.75) 46%, rgba(255, 250, 235, 0.95) 50%, rgba(255, 236, 200, 0.75) 54%, transparent 70%);
  background-size: 300% 100%;
  background-position: calc(100% - var(--sx, 50%)) 0;
}
.silk-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: linear-gradient(to top, var(--peacock-deep) 8%, rgba(7, 42, 47, 0.7) 45%, transparent);
  pointer-events: none;
}
.silk-copy { position: relative; z-index: 1; padding: var(--s8) 0 var(--s6); display: grid; gap: var(--s4); }
.silk-copy .lede { max-width: 38ch; color: rgba(244, 236, 223, 0.86); }
.tariff-wrap { padding-bottom: var(--s8); }
.tariff { border-top: 1px solid var(--hair); }
.tariff li { border-bottom: 1px solid var(--hair); }
.tariff summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 12px;
  min-height: 60px; padding: 16px 0;
}
.tariff summary::-webkit-details-marker { display: none; }
.t-name { font-family: var(--display); font-size: clamp(1.35rem, 5.4vw, 2rem); line-height: 1.1; }
.t-price { margin-left: auto; white-space: nowrap; color: var(--zari-light); font-size: 1rem; }
.tariff summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-left: 6px; align-self: center;
  border-right: 1.5px solid var(--zari); border-bottom: 1.5px solid var(--zari);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease-out);
}
.tariff details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.tariff details p { padding: 0 0 18px; max-width: 46ch; color: rgba(244, 236, 223, 0.82); }
.tariff details p b { font-weight: 500; color: var(--ivory); white-space: nowrap; }
.tariff-note { margin-top: var(--s3); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s5); margin: var(--s8) 0 var(--s7); counter-reset: none; }
.step-n { display: block; font-family: var(--display); font-size: 3.4rem; line-height: 0.9; color: var(--zari); margin-bottom: var(--s3); }
.steps h3 { font-size: 1.0625rem; font-weight: 500; margin-bottom: 4px; }
.steps p { font-size: 0.9375rem; color: rgba(244, 236, 223, 0.78); }
.tariff-wrap > .btn { width: 100%; }

/* ---------- VISIT ---------- */
.visit { position: relative; background: var(--wine-deep); }
.visit-photo { position: relative; height: min(110vw, 78svh); overflow: hidden; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.visit-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, var(--wine-deep), transparent); }
.visit-body { position: relative; padding: 0 var(--gutter) var(--s8); margin-top: calc(-1 * var(--s8)); display: grid; gap: var(--s5); justify-items: start; }
.visit address { font-style: normal; font-family: var(--display); font-size: 1.45rem; line-height: 1.3; }
.landmark { max-width: 38ch; color: var(--ivory-dim); }
.hours { margin: 0; width: 100%; max-width: 460px; border-top: 1px solid var(--hair); }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.hours dt { color: var(--ivory-dim); }
.hours dd { margin: 0; text-align: right; }
.visit .btn { width: 100%; }
.map { width: 100%; max-width: 520px; margin-top: var(--s3); }
.map svg { width: 100%; height: auto; }
.map-label { font-family: var(--display); font-size: 17px; fill: var(--ivory); }
.map-road { font-size: 11px; fill: rgba(232, 207, 142, 0.85); letter-spacing: 0.04em; }
.map-small { font-size: 12px; fill: rgba(244, 236, 223, 0.75); }
.map figcaption { margin-top: var(--s2); font-size: 0.8125rem; color: var(--ivory-dim); }

/* ---------- INSTAGRAM ---------- */
.insta { background: #12080A; padding: var(--s8) 0 0; }
.insta-head { display: grid; gap: var(--s3); padding-bottom: var(--s5); }
.insta-head h2 { font-size: clamp(2rem, 8.6vw, 3.6rem); }
.insta-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 64vw; gap: 3px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.insta-strip::-webkit-scrollbar { display: none; }
.insta-strip li { scroll-snap-align: start; }
.insta-strip a { display: block; overflow: hidden; }
.insta-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.8s var(--ease-out), filter 0.8s; }
@media (hover: hover) { .insta-strip a:hover img { transform: scale(1.05); filter: saturate(1.15); } }

/* ---------- FAQ ---------- */
.faq { background: var(--ivory); color: var(--ink); padding: var(--s8) 0; }
.faq h2 { font-size: clamp(2.3rem, 10vw, 4.6rem); }
.faq-grid { display: grid; gap: var(--s6); }
.faq-list { border-top: 1px solid rgba(43, 7, 18, 0.18); }
.faq details { border-bottom: 1px solid rgba(43, 7, 18, 0.18); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 0;
  font-family: var(--display); font-size: 1.25rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; font-weight: 400; color: #8C5A16; transition: transform 0.3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 54ch; color: rgba(43, 7, 18, 0.82); }
.faq-more a { color: var(--ink); font-weight: 500; text-underline-offset: 4px; text-decoration-color: #B38A3A; display: inline-block; padding: 12px 0; }

/* ---------- FOOTER ---------- */
.footer { background: var(--wine-deep); color: var(--ivory); padding: 0 0 calc(96px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer-mark {
  font-family: "Nila Tamil", var(--display); font-weight: 500;
  font-size: clamp(5rem, 30vw, 22rem); line-height: 1.15; text-align: center;
  background: linear-gradient(180deg, rgba(232, 207, 142, 0.5) 0%, rgba(201, 162, 78, 0.12) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: calc(-0.12em);
  user-select: none;
}
.footer-grid { display: grid; gap: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--hair); }
.footer-name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.6rem; }
.footer-grid > div p:last-child { color: var(--ivory-dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--ivory); text-underline-offset: 4px; }
.footer-base { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--hair); display: grid; gap: var(--s2); font-size: 0.875rem; color: var(--ivory-dim); }
.footer-base a { color: var(--zari-light); text-underline-offset: 3px; display: inline-block; padding: 12px 0; }

/* ---------- Sticky WhatsApp bar (phones) ---------- */
.wa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: var(--s2);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(18, 6, 10, 0.95);
  border-top: 1px solid var(--hair);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-spring);
}
.wa-bar.is-on { transform: translateY(0); }
.wa-bar.is-on.is-hidden { transform: translateY(110%); }
.wa-bar-main { flex: 1; }
.wa-bar-call { flex: 0 0 auto; padding: 0 22px; }
html:not(.js) .wa-bar { transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 420px) {
  .buy-long { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero { --h1: clamp(3.4rem, 8vw, 4.6rem); }
  .hero-actions .btn { width: auto; }
  .layer-photo { left: 34%; }
  .layer-photo img {
    top: 0; left: 0; width: 100%; height: 100%; transform: none;
    object-fit: cover; object-position: 50% 28%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
    -webkit-mask-composite: source-over;
            mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
            mask-composite: add;
  }
  .layer-shade { background: linear-gradient(90deg, rgba(11, 26, 29, 0.7) 0%, transparent 50%), linear-gradient(to top, rgba(11, 26, 29, 0.7), transparent 40%); }
  .hero-copy { max-width: 64%; padding-bottom: var(--s7); }
  .hero-title { max-width: 6.4em; }
  .chips-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips-4 .chip-face { flex-direction: column; min-height: 68px; gap: 4px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .tariff-wrap > .btn, .visit .btn { width: auto; }
  .insta-strip { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .lb-name { font-size: clamp(4rem, 11vw, 6rem); }
  .atelier-stage { height: min(56svh, 90vw); }
  .chip input, .swatch input, .atelier-panel .link-btn { scroll-margin-top: calc(var(--bar-h) + min(56svh, 90vw) + 16px); }
}

/* ---------- Laptop ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 56px; }
  .fd-bar { font-size: 0.875rem; }
  .wa-bar { display: none; }
  .footer { padding-bottom: var(--s7); }

  .hero { min-height: max(calc(100vh - var(--bar-h)), 680px); }
  .masthead { display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter) 0; }
  .nav { gap: 28px; margin: 0; }
  .nav-wide { display: inline-flex !important; }
  .layer-photo { left: 36%; }
  .layer-photo img {
    top: 0; left: 0; width: 100%; height: 100%; transform: none;
    object-fit: cover; object-position: 50% 28%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
    -webkit-mask-composite: source-over;
            mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
            mask-composite: add;
  }
  .layer-shade { background: linear-gradient(90deg, rgba(11, 26, 29, 0.6) 0%, transparent 46%); }
  .hero-copy { padding: var(--s7) var(--gutter) var(--s7); max-width: 760px; }
  .hero { --h1: clamp(4.6rem, 6.6vw, 6.8rem); }
  .hero-foot { padding-left: 56px; max-width: 560px; }
  .hero-sub { font-size: 1.0625rem; }

  /* lookbook: big photo on the right, a magazine-size title crossing onto it */
  .lb-title { padding: var(--s8) var(--gutter) var(--s6); font-size: 2.6rem; }
  .lb-slide { height: max(92vh, 640px); }
  .lb-media { left: 40%; }
  .lb-media::after { background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 14%, transparent 40%); }
  .lb-copy, .js .lb-copy { left: var(--gutter); right: auto; bottom: auto; top: 50%; transform: translateY(-46%); width: min(46vw, 640px); gap: var(--s4); }
  .lb-name { font-size: clamp(5rem, 8.4vw, 9rem); max-width: none; }
  .lb-line { font-size: 1.0625rem; max-width: 30ch; }
  .lb-price { font-size: 1.8rem; }
  .is-pinned .lb-title { padding: var(--s5) var(--gutter); font-size: 1.25rem; }
  .is-pinned .lb-progress { top: auto; bottom: var(--s5); left: var(--gutter); right: auto; }
  .lb-progress i { width: 28px; }

  .atelier { padding-top: var(--s9); }
  .atelier-head { grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: var(--s7); padding-bottom: var(--s6); }
  .atelier-head p { justify-self: end; font-size: 1.0625rem; }
  .atelier-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    width: min(1340px, 100% - 2 * var(--gutter)); margin-inline: auto; gap: var(--s7);
    align-items: start;
  }
  .atelier-stage {
    top: calc(var(--bar-h) + 20px);
    height: calc(100vh - var(--bar-h) - 40px); max-height: 860px;
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(232, 207, 142, 0.14), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  }
  .atelier-stage::after { display: none; }
  .chip input, .swatch input, .atelier-panel .link-btn { scroll-margin: 24px; }
  .atelier-views { bottom: 20px; }
  .atelier-hint { top: 22px; right: 26px; }
  .atelier-panel { padding: 0 0 var(--s8); gap: var(--s6); }
  .atelier-buy {
    position: static; margin: 0; padding: var(--s5) 0 0; background: none; border-top: 1px solid var(--hair);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    flex-direction: column; align-items: stretch; gap: var(--s4);
  }
  .buy-price { font-size: 2.6rem; }
  .buy-send { width: 100%; min-height: 56px; font-size: 1rem; }
  .atelier-summary { margin-top: 0; }
  .atelier-extra { padding-bottom: 0; }

  .silk-stage { min-height: 560px; }
  .silk-copy { padding: var(--s9) 0 var(--s7); }
  .tariff-wrap { display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--s8); align-items: start; padding-bottom: var(--s9); }
  .tariff, .tariff-note { grid-column: 1; }
  .steps { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: 1fr; margin: 0; gap: var(--s6); }
  .steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: var(--s4); }
  .step-n { grid-row: 1 / span 2; margin: 0; }
  .tariff-wrap > .btn { grid-column: 2; justify-self: start; margin-top: var(--s6); }

  .visit { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .visit-photo { height: auto; min-height: 100%; }
  .visit-photo::after { inset: 0 0 0 auto; width: 30%; height: auto; background: linear-gradient(to left, var(--wine-deep), transparent); }
  .visit-body { margin: 0; padding: var(--s9) var(--gutter) var(--s8) var(--s7); align-content: center; }
  .visit address { font-size: 1.9rem; }

  .insta-head { grid-template-columns: 1fr auto; align-items: end; }
  .faq-grid { grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; }
  .faq-more { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .thread-reveal { stroke-dashoffset: 0 !important; }
  .daisy { opacity: 1 !important; transform: none !important; }
}

/* sturdier optical size for small Bodoni (prices, values), so thin digits stay readable */
.buy-price, .lb-price, .opt-val, .atelier-summary, .visit address, .faq summary, .map-label, .footer-name, .t-name { font-variation-settings: "opsz" 14; }
