/* ==========================================================================
   Hamisha Industries LLP — handloom rug export house
   Design tokens. Palette drawn from the mill floor at Bhadohi:
   raw cotton warp, pine-olive dyed weft, vat indigo, brass loom fittings.
   ========================================================================== */

:root {
  --ink:        #101B2D;   /* near-black with a green cast — dyed wool at rest */
  --ink-2:      #2A3A52;
  --paper:      #E9EAE2;   /* raw cotton warp, cool not cream */
  --paper-2:    #DEE0D5;
  --paper-3:    #F3F4EE;
  --olive:      #3E5474;   /* the olive in their own dhurrie */
  --olive-lt:   #6E82A0;
  --indigo:     #1F3D6E;   /* vat blue — interactive states only */
  --brass:      #C9A24A;   /* loom fittings — hairlines and rules only */
  --thread:     rgba(16, 27, 45, .11);
  --thread-lt:  rgba(233, 234, 226, .16);

  --display: "Fraunces", Georgia, serif;
  --body:    "Karla", system-ui, -apple-system, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  --gut: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-synthesis-weight: none;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 96;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.018em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 20; }
p  { margin: 0 0 1.1em; }
h1 + p, h2 + p, h2 + ul, h2 + .steps { margin-top: 1.15rem; }

/* the warp: fine vertical threads, the one motif this site is built on */
.warp {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg,
    transparent 0 13px, var(--thread) 13px 14px);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.warp--light { background-image: repeating-linear-gradient(90deg,
  transparent 0 13px, var(--thread-lt) 13px 14px); }

.wrap { width: min(100% - (var(--gut) * 2), var(--max)); margin-inline: auto; position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 1.4rem;
  display: flex; align-items: center; gap: .8rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--brass); opacity: .55; }
.eyebrow--light { color: #C9CFC2; }
.eyebrow--light::after { background: var(--brass); opacity: .7; }

.lede { font-size: clamp(1.05rem, 1.55vw, 1.28rem); max-width: 60ch; color: var(--ink-2); }

/* --------------------------------------------------------------- header -- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(233, 234, 226, .92);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--thread);
}
.masthead__in {
  display: flex; align-items: center; gap: 2rem;
  padding: .85rem 0;
}
.brand { display: flex; align-items: center; gap: .72rem; text-decoration: none; line-height: 1; }
.brand__mark { width: 42px; height: 42px; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; }
.brand__name b { font-weight: inherit; letter-spacing: .015em; }
@media (max-width: 400px) { .brand__mark { width: 36px; height: 36px; } .brand { gap: .5rem; } }
.brand__name {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 72;
  font-weight: 520;
  font-size: 1.3rem; letter-spacing: .045em;
  text-transform: uppercase;
  color: #A8823A;
}
.brand__llp {
  font-family: var(--body);
  font-weight: 600; font-size: .5rem;
  letter-spacing: .30em; text-transform: uppercase;
  color: var(--ink); margin-top: .3rem;
}
.brand__sub {
  font-family: var(--mono); font-size: .48rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: #A8823A; margin-top: .3rem; white-space: nowrap;
}
@media (max-width: 400px) { .brand__name { font-size: 1.1rem; } .brand__sub { font-size: .42rem; letter-spacing: .12em; } .brand__llp { font-size: .44rem; letter-spacing: .24em; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.7rem; }
.nav a {
  text-decoration: none; font-size: .92rem;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover, .nav a:focus-visible { border-color: var(--brass); }
.nav a[aria-current="page"] { border-color: var(--olive); }
.nav__cta {
  background: var(--ink); color: var(--paper);
  padding: .58rem 1.1rem !important; border: 0 !important;
  border-radius: 2px; font-size: .84rem !important;
}
.nav__cta:hover { background: var(--indigo); }
.nav__burger { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; }

@media (max-width: 860px) {
  .nav__burger { display: block; margin-left: auto; }
  .nav {
    position: fixed; inset: 62px 0 auto; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--thread);
    padding: .5rem 0 1.2rem; margin: 0;
    transform: translateY(-140%); transition: transform .32s var(--ease);
  }
  .nav[data-open="true"] { transform: none; }
  .nav a { width: 100%; padding: .85rem var(--gut); font-size: 1.05rem; border: 0; border-top: 1px solid var(--thread); }
  .nav__cta { margin: .9rem var(--gut) 0; text-align: center; border-radius: 2px; }
}

/* ----------------------------------------------------------------- hero -- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,27,45,.58) 0%, rgba(16,27,45,.30) 40%, rgba(16,27,45,.88) 100%),
              linear-gradient(90deg, rgba(16,27,45,.72) 0%, rgba(16,27,45,.04) 60%);
}
.hero__in { position: relative; padding: clamp(5rem, 15vh, 9.5rem) 0 clamp(3rem, 7vh, 5rem); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: #E6D08A; }
.hero__lede { max-width: 48ch; margin-top: 1.6rem; color: #D3D8CC; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero__acts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }

/* warp curtain — animates open on load, the one orchestrated moment */
.hero__curtain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 13px, rgba(233,234,226,.13) 13px 14px);
  mask-image: linear-gradient(180deg, #000 0 62%, transparent);
  transform-origin: top;
  animation: warp-open 1.5s var(--ease) both;
}
@keyframes warp-open { from { transform: scaleY(0); opacity: .9; } to { transform: scaleY(1); opacity: 1; } }

.hero__rail {
  position: relative; display: flex; flex-wrap: wrap;
  gap: 0; border-top: 1px solid rgba(233,234,226,.22);
}
.hero__stat { flex: 1 1 160px; padding: 1.15rem 1.2rem 1.15rem 0; }
.hero__stat b {
  display: block; font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40;
  font-size: 1.9rem; font-weight: 400; line-height: 1;
}
.hero__stat span {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: #A9B3A2; display: block; margin-top: .5rem;
}

/* --------------------------------------------------------------- button -- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .82rem 1.5rem; border-radius: 2px;
  font-family: var(--mono); font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: #E6D08A; }
.btn--ghost { border-color: rgba(233,234,226,.4); color: var(--paper); }
.btn--ghost:hover { border-color: #E6D08A; color: #E6D08A; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--indigo); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* -------------------------------------------------------------- section -- */
.section { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .lede { color: #C3CABB; }
.section__head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }

/* ---------------------------------------------------- construction grid -- */
.cons {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px; background: var(--thread); border: 1px solid var(--thread);
}
.cons__card {
  background: var(--paper); text-decoration: none;
  display: flex; flex-direction: column;
  transition: background .22s var(--ease);
}
.cons__card:hover { background: var(--paper-3); }
.cons__fig { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.cons__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cons__card:hover .cons__fig img { transform: scale(1.045); }
.cons__body { padding: 1.15rem 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.cons__body h3 { margin-bottom: .4rem; }
.cons__body p { font-size: .9rem; color: var(--ink-2); margin: 0 0 1rem; }
.cons__n {
  margin-top: auto; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--olive);
}

/* ----------------------------------------------------------- loom strip -- */
.loom { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 26px); }
.loom figure { margin: 0; }
.loom img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.loom figcaption {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--olive); margin-top: .8rem;
  padding-top: .7rem; border-top: 1px solid var(--brass);
}
.section--ink .loom figcaption { color: #B4BEAB; }
@media (max-width: 720px) { .loom { grid-template-columns: 1fr 1fr; } .loom figure:last-child { display: none; } }

/* ------------------------------------------------------------- process -- */
.steps { border-top: 1px solid var(--thread); }
.steps__row {
  display: grid; grid-template-columns: 5.5rem 15rem 1fr;
  gap: 1.5rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--thread);
  align-items: start;
}
.steps__n { font-family: var(--mono); font-size: .78rem; color: var(--brass); letter-spacing: .1em; padding-top: .3rem; }
.steps__row h3 { font-size: 1.18rem; }
.steps__row p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.section--ink .steps { border-color: rgba(233,234,226,.16); }
.section--ink .steps__row { border-color: rgba(233,234,226,.16); }
.section--ink .steps__row p { color: #B9C1B1; }
@media (max-width: 760px) {
  .steps__row { grid-template-columns: 3rem 1fr; gap: .8rem 1rem; }
  .steps__row p { grid-column: 2; }
}

/* --------------------------------------------------------------- splits -- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.split--tall img { aspect-ratio: 3 / 4; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.marketlist { list-style: none; margin: 0; padding: 0; }
.marketlist li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--thread);
  font-size: .98rem;
}
.marketlist span { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.section--ink .marketlist li { border-color: rgba(233,234,226,.16); }
.section--ink .marketlist span { color: #B4BEAB; }

/* ----------------------------------------------------------- collection -- */
.filters {
  position: sticky; top: 62px; z-index: 40;
  background: rgba(233,234,226,.94); backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--thread); padding: .9rem 0;
}
.filters__in { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .48rem .8rem; border: 1px solid var(--thread); background: transparent;
  border-radius: 2px; cursor: pointer; color: var(--ink-2);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--brass); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search {
  margin-left: auto; display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--thread); border-radius: 2px; padding: .3rem .7rem; background: var(--paper-3);
}
.search input { border: 0; background: none; outline: none; font-family: var(--mono); font-size: .78rem; width: 11rem; padding: .3rem 0; }
.search label { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.count { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--olive); padding: 1.6rem 0 .4rem; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1px; background: var(--thread); border: 1px solid var(--thread);
}
.tile {
  background: var(--paper); border: 0; padding: 0; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; transition: background .2s var(--ease);
}
.tile:hover, .tile:focus-visible { background: var(--paper-3); }
.tile__fig { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.tile__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.tile:hover .tile__fig img { transform: scale(1.04); }
.tile__meta { padding: .75rem .85rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.tile__code { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; }
.tile__cat { font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.empty { padding: 4rem 0; font-family: var(--mono); font-size: .8rem; color: var(--olive); }

/* -------------------------------------------------------------- lightbox -- */
.lb {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(12, 19, 33, .94); padding: var(--gut);
  align-items: center; justify-content: center;
}
.lb[data-open="true"] { display: flex; }
.lb__panel {
  background: var(--paper); border-radius: 2px; max-width: 900px; width: 100%;
  max-height: 88vh; overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr;
}
.lb__panel img { width: 100%; height: 100%; object-fit: cover; max-height: 88vh; }
.lb__side { padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.lb__code { font-family: var(--display); font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40; font-size: 2rem; margin: .3rem 0 0; }
.lb__spec { list-style: none; padding: 0; margin: 1.6rem 0; }
.lb__spec li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--thread); font-size: .9rem; }
.lb__spec b { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); font-weight: 400; }
.lb__acts { margin-top: auto; display: flex; flex-direction: column; gap: .6rem; }
.lb__close { position: absolute; top: 1rem; right: 1rem; background: none; border: 1px solid rgba(233,234,226,.4); color: var(--paper); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
@media (max-width: 720px) { .lb__panel { grid-template-columns: 1fr; } .lb__panel img { max-height: 40vh; } }

/* --------------------------------------------------------------- contact -- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--thread); border: 1px solid var(--thread); }
.contact-card { background: var(--paper); padding: 1.8rem 1.6rem; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.contact-card a { display: block; text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent; width: fit-content; }
.contact-card a:hover { border-color: var(--brass); }
.contact-card .k { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); display: block; margin-bottom: .2rem; }

.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); display: block; margin-bottom: .4rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: .95rem;
  background: var(--paper-3); border: 1px solid var(--thread); border-radius: 2px; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--indigo); outline-offset: 1px; }
.form textarea { min-height: 130px; resize: vertical; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer -- */
.foot { background: var(--ink); color: var(--paper); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; position: relative; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; position: relative; }
.foot h4 { font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: #A9B3A2; margin: 0 0 1.1rem; font-weight: 400; }
.foot a { text-decoration: none; display: block; padding: .28rem 0; color: #DCE0D6; font-size: .93rem; }
.foot a:hover { color: #E6D08A; }
.foot__mark { font-family: var(--display); font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 60; font-size: 1.8rem; line-height: 1; margin: 0 0 .8rem; }
.foot__note { font-size: .88rem; color: #A9B3A2; max-width: 34ch; }
.foot__base {
  margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(233,234,226,.16);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #8E9889;
}
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

/* floating whatsapp */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--olive); color: var(--paper);
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 8px 24px rgba(16,27,45,.28);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.wa:hover { background: var(--ink); transform: translateY(-2px); }
.wa svg { width: 26px; height: 26px; fill: currentColor; }

/* ------------------------------------------------------------- reveals -- */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.section--ink :focus-visible, .hero :focus-visible { outline-color: #E6D08A; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rise { opacity: 1; transform: none; }
}

/* two columns of designs on small screens rather than one very large one */
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tile__meta { padding: .6rem .65rem .8rem; }
  .tile__code { font-size: .66rem; }
  .tile__cat { font-size: .52rem; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
}

/* ------------------------------------------------- registrations block -- */
.creds {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--thread); border: 1px solid var(--thread);
}
@media (max-width: 900px) { .creds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .creds { grid-template-columns: 1fr; } }
.cred { background: var(--paper); padding: 1.5rem 1.4rem 1.7rem; display: flex; flex-direction: column; }
.cred__n {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .18em;
  color: var(--brass); display: block; margin-bottom: .9rem;
  padding-bottom: .8rem; border-bottom: 1px solid var(--thread);
}
.cred h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.cred p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.creds__note {
  font-size: .88rem; color: var(--ink-2); margin: 1.6rem 0 0; max-width: 62ch;
}
.creds__note a { text-decoration: none; border-bottom: 1px solid var(--brass); }
