/* Elu: shared styles for Studio, Motifs and Dyers. Indigo and white only. */
:root {
  --ink: #121A44;
  --mid: #2E3F8F;
  --pale: #9FB0E6;
  --cloth: #F3F4F8;
  --rule: rgba(46, 63, 143, 0.16);
  --rule-d: rgba(159, 176, 230, 0.24);
  --gut: clamp(20px, 4.4vw, 64px);
  --pad: clamp(112px, 15vw, 220px);
  --sans: "Kumbh Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Zina", Georgia, serif;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --hd: 80px;
}
@media (max-width: 760px) { :root { --hd: 64px; } }

html { background: var(--cloth); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { font: 400 18px/1.5 var(--sans); background: var(--cloth); color: var(--ink); -webkit-font-smoothing: antialiased; }
em, i { font-style: normal; }
::selection { background: var(--pale); color: var(--ink); }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
img { width: 100%; height: 100%; object-fit: cover; }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 8.4vw, 132px); line-height: 0.98; letter-spacing: -0.006em; }
.lede { font-size: clamp(18px, 1.3vw, 19px); line-height: 1.5; max-width: 30em; color: var(--mid); }
.on-ink { background: var(--ink); color: var(--cloth); }
.on-ink .lede { color: var(--pale); }
.ngn { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 400; }
.tag { font-size: 14px; font-weight: 500; color: var(--mid); }
.on-ink .tag { color: var(--pale); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 90; background: var(--ink); color: var(--cloth); padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--mid); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--pale); }

/* ---------- Buttons: square, like the cloth's squares. Hover: wipe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 52px; padding: 0 28px; border: 0; border-radius: 0;
  background: var(--ink); color: var(--cloth); font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  --k-fill: var(--mid); --k-fill-ink: var(--cloth);
  transition: transform 0.3s var(--out), color 0.45s var(--ease), background-color 0.5s var(--ease), opacity 0.4s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn[disabled]::before { display: none; }
.btn--light { background: var(--cloth); color: var(--ink); --k-fill: var(--pale); --k-fill-ink: var(--ink); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn .k-arrow svg { width: 16px; height: 16px; }
.tlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; padding: 6px 0 4px; }
.tlink .k-arrow svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.hd {
  position: fixed; z-index: 60; inset: 0 0 auto; height: var(--hd);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-inline: var(--gut);
  color: var(--ink); border-bottom: 1px solid transparent;
  transition: transform 0.7s var(--ease), background-color 0.4s, border-color 0.4s, color 0.4s;
}
.hd.is-solid { background: var(--cloth); border-bottom-color: var(--rule); }
.hd.is-hidden { transform: translateY(-101%); }
.hd-mark { font: 400 36px/1 var(--display); text-decoration: none; margin-right: auto; padding: 4px 0; }
.hd-nav { display: flex; gap: clamp(22px, 2.6vw, 40px); }
.hd-nav a {
  font: 500 15px/1 var(--sans); text-decoration: none; padding: 12px 0;
  background: linear-gradient(currentColor, currentColor) 100% calc(100% - 5px) / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.hd-nav a:hover, .hd-nav a:focus-visible { background-position: 0 calc(100% - 5px); background-size: 100% 1px; }
.hd-nav a[aria-current="page"] { background-size: 100% 1px; }
.hd-menu {
  display: none; height: 44px; padding: 0 18px; align-items: center; border: 1px solid currentColor; border-radius: 0;
  background: transparent; font: 500 15px/1 var(--sans); --k-fill: var(--ink); --k-fill-ink: var(--cloth);
  transition: transform 0.3s var(--out), color 0.45s var(--ease);
}
.hd-menu:active { transform: scale(0.97); }
.sheet {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--cloth);
  padding: calc(var(--hd) + 48px) var(--gut) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease);
}
.sheet.is-open { clip-path: inset(0 0 0 0); }
.sheet nav { display: grid; gap: 4px; }
.sheet nav a { font: 400 64px/1.1 var(--display); text-decoration: none; }
.sheet .btn { align-self: flex-start; }
.menu-open .hd { color: var(--cloth); background: transparent; border-bottom-color: transparent; }
.menu-open .hd-menu { --k-fill: var(--cloth); --k-fill-ink: var(--ink); }
@media (max-width: 760px) {
  .hd-nav, .hd-cta { display: none; }
  .hd-menu { display: inline-flex; }
  .hd-mark { font-size: 32px; }
}

/* ---------- Footer ---------- */
.ft { background: var(--ink); color: var(--cloth); padding: clamp(80px, 9vw, 132px) var(--gut) 36px; border-top: 1px solid var(--rule-d); }
.ft-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: end; padding-bottom: clamp(64px, 8vw, 112px); }
.ft-mark { grid-column: 1 / span 4; font: 400 64px/1 var(--display); text-decoration: none; justify-self: start; }
.ft-line { grid-column: 6 / span 4; color: var(--pale); max-width: 24em; }
.ft-nav { grid-column: 11 / span 2; display: grid; gap: 10px; justify-items: start; }
.ft-nav a { text-decoration: none; font-weight: 500; }
.ft-base { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--rule-d); font-size: 14px; color: var(--pale); }
@media (max-width: 900px) {
  .ft-mark, .ft-line, .ft-nav { grid-column: 1 / -1; }
  .ft-nav { grid-auto-flow: column; justify-content: start; gap: 28px; }
}

/* ---------- Motif art (SVG) ---------- */
.m-halo, .m-soft, .m-line { fill: none; stroke: #FFFFFF; stroke-linecap: round; stroke-linejoin: round; }
.m-halo { opacity: 0.32; }
.m-halo circle, .m-soft circle, .m-line circle { fill: #FFFFFF; stroke: none; }
.rep-g { transform-box: view-box; transform-origin: 50% 50%; transition: transform 1.1s var(--ease); }

/* ================= Studio ================= */
/* 1. The vat */
.vat { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--cloth); color: var(--ink); }
.vat-cv {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23F3F4F8' stroke-width='3'/%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%232E3F8F' stroke-width='1.4'/%3E%3C/svg%3E") 12 12, crosshair;
}
.vat-ui { position: absolute; inset: auto 0 0 0; padding: 0 var(--gut) clamp(28px, 5.5vh, 56px); display: grid; gap: clamp(24px, 3.6vh, 40px); pointer-events: none; }
.vat-title { position: relative; justify-self: start; }
.vat-h { font: 400 clamp(76px, 12.2vw, 196px)/0.92 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.vat-h--dyed { position: absolute; inset: 0; color: var(--cloth); clip-path: inset(0 0 100% 0); }
.kit-js:not(.is-static) .vat-h { visibility: hidden; }
.vat-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.vat-bar > * { pointer-events: auto; }
.vat-tools { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; }
.vat-reset {
  height: 52px; padding: 0 4px; border: 0; background: none; font: 500 16px/1 var(--sans); color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 100% calc(50% + 12px); background-size: 0 1px;
  transition: background-size 0.5s var(--ease), color 0.5s var(--ease), transform 0.3s var(--out);
}
.vat-reset:hover, .vat-reset:focus-visible { background-position: 0 calc(50% + 12px); background-size: 100% 1px; }
.vat-reset:active { transform: scale(0.97); }
.vat-count { font-size: 15px; color: var(--mid); font-variant-numeric: tabular-nums; transition: color 0.5s var(--ease); }
.vat-next { font-size: 15px; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0.6s, color 0.5s; }
.vat.has-dye .vat-next { opacity: 1; visibility: visible; }
.vat-hint { margin-left: auto; font-size: 15px; color: var(--mid); max-width: 22em; text-align: right; transition: color 0.5s var(--ease); pointer-events: none; }
.vat .btn { transition: transform 0.3s var(--out), color 0.5s var(--ease), background-color 0.5s var(--ease), opacity 0.4s; }
.vat.is-dyed .vat-bar .btn { background: var(--cloth); color: var(--ink); --k-fill: var(--pale); --k-fill-ink: var(--ink); }
.vat.is-dyed .vat-reset, .vat.is-dyed .vat-next { color: var(--cloth); }
.vat.is-dyed .vat-count, .vat.is-dyed .vat-hint { color: var(--cloth); }
.vat.is-dyed :focus-visible { outline-color: var(--pale); }
@media (max-width: 760px) {
  .vat-hint { order: -1; margin-left: 0; text-align: left; flex-basis: 100%; }
  .vat-tools { gap: 6px 22px; }
}
@media (pointer: coarse) {
  /* On touch screens the lower band scrolls the page; the cloth above it takes the drawing. */
  .vat-ui { pointer-events: auto; touch-action: pan-y; }
}

/* 2. From a sketch to a cloth */
.rep-pin {
  min-height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  padding: calc(var(--hd) + 40px) var(--gut) 48px;
}
.rep-copy { grid-column: 1 / span 5; }
.rep-h { font-size: clamp(64px, 6.6vw, 108px); }
.rep-steps { margin-top: clamp(40px, 7vh, 80px); max-width: 400px; border-top: 1px solid var(--rule); }
.rep-steps li { display: grid; grid-template-columns: 72px 1fr; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--rule); color: rgba(46, 63, 143, 0.42); transition: color 0.5s var(--ease); }
.rep-steps li.is-on { color: var(--ink); }
.rep-steps b { font: 600 22px/1 var(--sans); font-variant-numeric: tabular-nums; }
.rep-cap { display: none; }
.rep-stage { grid-column: 7 / span 6; justify-self: end; width: min(100%, calc(100svh - var(--hd) - 120px)); aspect-ratio: 1; background: var(--ink); }
.rep-cv { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .rep-pin { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 24px; padding-top: calc(var(--hd) + 20px); }
  .rep-copy { display: contents; }
  .rep-h { font-size: 64px; order: 0; }
  .rep-stage { order: 1; width: min(100%, calc(100svh - 400px)); align-self: center; }
  .rep-steps { order: 2; }
  .rep-cap { order: 3; }
  .rep-steps { margin-top: 0; max-width: none; border: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .rep-steps li { display: block; padding: 0; border: 0; }
  .rep-steps li span { display: none; }
  .rep-cap { display: block; margin-top: -14px; color: var(--mid); font-size: 16px; }
}

/* 3. The vat decides */
.dips { padding: var(--pad) var(--gut); }
.dips-head { align-items: end; }
.dips-head h2 { grid-column: 1 / span 7; }
.dips-head p { grid-column: 9 / span 4; }
.dips-row { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.dips-row canvas { width: 100%; aspect-ratio: 1; display: block; background: var(--cloth); }
.dips-row p { margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.dips-row b { font-weight: 600; }
.dips-row span { color: var(--mid); font-size: 15px; text-align: right; }
.dips-proof { margin-top: clamp(96px, 12vw, 180px); align-items: end; }
.dips-proof figure { grid-column: 5 / span 8; aspect-ratio: 3 / 2; overflow: hidden; }
.dips-proof p { grid-column: 1 / span 3; grid-row: 1; color: var(--mid); font-size: 16px; max-width: 17em; }
@media (max-width: 900px) {
  .dips-head h2, .dips-head p, .dips-proof figure, .dips-proof p { grid-column: 1 / -1; }
  .dips-head p { margin-top: 28px; }
  .dips-row { grid-template-columns: 1fr; gap: 40px; }
  .dips-row li { width: min(100%, 420px); }
  .dips-proof p { grid-row: auto; margin-top: 20px; }
}

/* 4. Made by hand */
.hand { position: relative; padding: var(--pad) var(--gut) calc(var(--pad) * 0.7); }
.hand-tide { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(24px, 3.4vw, 48px); display: block; }
.hand-tide path { fill: var(--cloth); }
.hand-head { align-items: end; }
.hand-head h2 { grid-column: 1 / span 7; }
.hand-side { grid-column: 9 / span 4; display: grid; gap: 28px; justify-items: start; }
.hand-media { margin-top: clamp(72px, 9vw, 140px); align-items: start; }
.hand-vat { grid-column: 1 / span 7; aspect-ratio: 3 / 2; overflow: hidden; }
.hand-dry { grid-column: 9 / span 4; aspect-ratio: 4 / 5; overflow: hidden; margin-top: clamp(80px, 13vw, 200px); }
.sway { width: 100%; height: 100%; overflow: hidden; }
.sway img { transform-origin: 50% 0; transform: scale(1.08); }
@media (max-width: 900px) {
  .hand-head h2, .hand-side, .hand-vat { grid-column: 1 / -1; }
  .hand-side { margin-top: 28px; }
  .hand-dry { grid-column: 4 / -1; margin-top: 24px; }
}

/* 5. Price */
.price { padding: 0 var(--gut) var(--pad); }
.price-in { border-top: 1px solid var(--rule-d); padding-top: clamp(72px, 9vw, 140px); align-items: end; row-gap: 36px; }
.price-in h2 { grid-column: 1 / span 7; }
.price-side { grid-column: 8 / span 5; display: grid; gap: 32px; justify-items: start; }
.price-line { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.4; max-width: 20em; }
.price-line .tag { font-size: 0.75em; }
@media (max-width: 900px) { .price-in h2, .price-side { grid-column: 1 / -1; } }

/* ================= Motifs ================= */
.mi-intro { padding: calc(var(--hd) + clamp(72px, 11vw, 170px)) var(--gut) clamp(72px, 9vw, 140px); align-items: end; row-gap: 40px; }
.mi-intro h1 { grid-column: 1 / span 7; font-size: clamp(72px, 10.5vw, 168px); }
.mi-side { grid-column: 9 / span 4; display: grid; gap: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: 500 15px/1 var(--sans); --k-fill: var(--ink); --k-fill-ink: var(--cloth);
  transition: transform 0.3s var(--out), color 0.45s var(--ease), background-color 0.45s var(--ease);
}
.chip span { font-variant-numeric: tabular-nums; opacity: 0.6; }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cloth); }
.mi-grid { padding: 0 var(--gut) var(--pad); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 6.5vw, 104px); row-gap: clamp(80px, 9vw, 140px); align-items: start; }
.card.is-low { margin-top: clamp(80px, 12vw, 200px); }
.card[hidden] { display: none; }
.card-art { position: relative; aspect-ratio: 1; background: var(--ink); overflow: hidden; }
.card-art svg { width: 100%; height: 100%; display: block; }
.card.is-rep .rep-g { transform: scale(0.3334); }
.card-cap { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; padding-top: 22px; }
.card-name { font: 600 24px/1.2 var(--sans); }
.card-meta { grid-column: 1; margin-top: 4px; }
.card-line { grid-column: 1 / -1; margin-top: 14px; max-width: 30em; }
.card-rep {
  grid-column: 2; grid-row: 1 / span 2; align-self: start; height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--rule); border-radius: 0; background: transparent; color: var(--ink); font: 500 14px/1 var(--sans);
  --k-fill: var(--ink); --k-fill-ink: var(--cloth); transition: transform 0.3s var(--out), color 0.45s var(--ease), border-color 0.45s;
}
.card-rep svg { width: 14px; height: 14px; }
.card-rep:active { transform: scale(0.97); }
.card-rep[aria-pressed="true"] { border-color: var(--ink); }
.mi-two { padding: var(--pad) var(--gut); }
.mi-two .lede { margin-top: 32px; }
.two-row { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 6.5vw, 104px); }
.two-art { aspect-ratio: 1; background: var(--mid); overflow: hidden; }
.two-art svg { width: 100%; height: 100%; display: block; }
.two-row h3 { font: 600 24px/1.2 var(--sans); margin-top: 24px; }
.two-row p { color: var(--pale); max-width: 28em; margin-top: 10px; }
.mi-cta { padding: var(--pad) var(--gut); align-items: end; row-gap: 36px; }
.mi-cta h2 { grid-column: 1 / span 8; }
.mi-cta-side { grid-column: 9 / span 4; display: grid; gap: 28px; justify-items: start; }
@media (max-width: 900px) {
  .mi-intro h1, .mi-side, .mi-cta h2, .mi-cta-side { grid-column: 1 / -1; }
  .mi-grid, .two-row { grid-template-columns: 1fr; }
  .card.is-low { margin-top: 0; }
}

/* ================= Dyers ================= */
.dy-intro { padding: calc(var(--hd) + clamp(72px, 11vw, 170px)) var(--gut) var(--pad); align-items: end; row-gap: 40px; }
.dy-intro h1 { grid-column: 1 / span 8; font-size: clamp(72px, 9.6vw, 156px); }
.dy-side { grid-column: 9 / span 4; }
.dy-index { margin-top: 36px; border-top: 1px solid var(--rule); }
.dy-index a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 500; }
.dy-index a span { color: var(--mid); font-size: 15px; font-weight: 400; }
.dyer { min-height: 100svh; padding: clamp(96px, 10vw, 150px) var(--gut); align-items: center; row-gap: 40px; }
.dyer-photo { grid-column: 1 / span 5; aspect-ratio: 3 / 4; max-height: 82svh; overflow: hidden; }
.dyer-body { grid-column: 7 / span 6; }
.dyer--flip .dyer-photo { grid-column: 8 / span 5; grid-row: 1; }
.dyer--flip .dyer-body { grid-column: 1 / span 6; grid-row: 1; }
.dyer-name { font-size: clamp(64px, 6.4vw, 104px); }
.dyer-place { margin-top: 18px; }
.dyer-text { margin-top: 32px; max-width: 30em; }
.dyer-facts { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 24px 56px; }
.dyer-facts dt { font-size: 14px; color: var(--mid); }
.dyer-facts dd { margin-top: 6px; font: 600 26px/1.1 var(--sans); }
.on-ink .dyer-facts dt { color: var(--pale); }
.dyer-note { margin-top: 14px; }
.dyer .btn { margin-top: 44px; }
.dy-end { padding: var(--pad) var(--gut); align-items: end; row-gap: 36px; }
.dy-end h2 { grid-column: 1 / span 7; }
.dy-end-side { grid-column: 9 / span 4; display: grid; gap: 28px; justify-items: start; }
@media (max-width: 900px) {
  .dy-intro h1, .dy-side, .dy-end h2, .dy-end-side { grid-column: 1 / -1; }
  .dyer-photo, .dyer--flip .dyer-photo { grid-column: 1 / span 10; grid-row: 1; max-height: none; aspect-ratio: 4 / 5; }
  .dyer-body, .dyer--flip .dyer-body { grid-column: 1 / -1; grid-row: 2; }
  .dyer { min-height: 0; }
}
@media (max-width: 560px) { .dyer-photo, .dyer--flip .dyer-photo { grid-column: 1 / -1; } }

/* Keep the hint above the cloth canvas so it reads at full strength; pointer events still reach the canvas. */
.vat-hint { position: relative; z-index: 3; }
