/* Layout: a tailor's cutting table — dark cloth ground, a gold thread running through the page,
   chalk-mark measurements as detail, and Hadhrami doorway arches framing the photographs. */
:root {
  --ink: #0b0a09;          /* ground, matches the logo's black */
  --cloth: #15130f;        /* raised panels */
  --cloth-2: #1d1a15;
  --gold: #c9a24a;         /* the needle */
  --gold-hi: #ecd296;
  --gold-lo: #8d6c2b;
  --silver: #d3d0c9;       /* the collar */
  --text: #ece6da;
  --muted: #a39c8f;
  --line: rgba(201, 162, 74, .22);
  --linen: #ebe5d8;        /* light section: white thobe cloth */
  --linen-ink: #1c1914;
  --linen-muted: #6b6457;

  --f-display: "Aref Ruqaa", "Amiri", "Traditional Arabic", serif;
  --f-body: "Readex Pro", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  --f-latin: "Marcellus", "Times New Roman", serif;

  --fs-hero: clamp(3.2rem, 8.2vw, 7.4rem);
  --fs-h2: clamp(2.3rem, 5vw, 4.3rem);
  --fs-h3: clamp(1.45rem, 2.2vw, 1.9rem);
  --fs-body: clamp(1rem, .95rem + .25vw, 1.125rem);
  --fs-small: .875rem;

  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* faint twill weave over the whole ground */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .05;
  background-image:
    repeating-linear-gradient(45deg, var(--silver) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-45deg, var(--silver) 0 1px, transparent 1px 12px);
}
main, .site-footer { position: relative; z-index: 1; }

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.section { padding-inline: var(--gutter); padding-block: clamp(80px, 12vw, 160px); max-width: var(--maxw); margin-inline: auto; }
.kicker {
  font-family: var(--f-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: .75rem;
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: repeating-linear-gradient(to left, var(--gold) 0 5px, transparent 5px 9px); }
h2, .reveal-title { font-family: var(--f-display); font-size: var(--fs-h2); line-height: 1.3; color: var(--text); }
.muted { color: var(--muted); }

.skip-link {
  position: fixed; top: 12px; right: 12px; z-index: 110;
  padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 500;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

/* reveal mask for split words */
.w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .12em; margin-block: -.12em; }
.w-mask > span { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.7rem;
  border-radius: 999px;
  font-weight: 500; font-size: 1rem; line-height: 1.2;
  transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .4s;
  white-space: nowrap;
}
.btn-sm { min-height: 42px; padding: .55rem 1.2rem; font-size: .92rem; }
.btn-gold {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  box-shadow: 0 10px 30px -12px rgba(201, 162, 74, .6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(201, 162, 74, .75); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--ink);
  animation: loaderFallback .8s ease 4s forwards; /* if scripts never load */
}
.loader-thread { width: min(320px, 70vw); height: 24px; }
.loader-name { font-family: var(--f-display); font-size: 1.6rem; color: var(--gold-hi); }
@keyframes loaderFallback { to { opacity: 0; visibility: hidden; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding-inline: var(--gutter);
  padding-block: calc(14px + env(safe-area-inset-top, 0px)) 14px;
  transition: background-color .4s, backdrop-filter .4s, transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(11, 10, 9, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: grid; line-height: 1.25; }
.brand-text strong { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.brand-text small { font-family: var(--f-latin); font-size: .62rem; letter-spacing: .32em; color: var(--muted); }
.nav { display: flex; gap: 1.8rem; margin-inline-start: auto; }
.nav a { position: relative; font-size: .95rem; color: var(--muted); transition: color .3s; padding-block: .3rem; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: repeating-linear-gradient(to left, var(--gold) 0 4px, transparent 4px 7px);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; inset-inline: 10px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: calc(120px + env(safe-area-inset-top, 0px)) clamp(60px, 8vw, 110px);
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.hero-copy { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-small); color: var(--muted); letter-spacing: .04em; margin-bottom: 1.6rem; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .18); }
.hero-title { font-family: var(--f-display); font-size: var(--fs-hero); line-height: 1.22; letter-spacing: 0; }
.hero-title .line { display: block; }
.hero-title .word { display: inline-block; }
.hero-title .gold { color: var(--gold); }
.hero-title .gold .word {
  background: linear-gradient(100deg, var(--gold-lo), var(--gold-hi) 40%, var(--gold) 60%, var(--gold-hi));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
  padding-block: .1em;
}
@keyframes sheen { to { background-position: -200% 0; } }
.hero-lead { margin-top: 1.6rem; max-width: 34ch; font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); color: var(--muted); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }

.hero-media { position: relative; margin: 0; max-width: 520px; width: 100%; justify-self: center; aspect-ratio: 3 / 4; }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px 10px 10px / 46% 46% 10px 10px; isolation: isolate; }
.arch::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(236, 210, 150, .28); border-radius: inherit; pointer-events: none; }
.hero-arch { height: 100%; }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 30%; }
.hero-media::before {
  /* chalk-dashed outline offset behind the arch */
  content: ""; position: absolute; inset: -14px; z-index: -1;
  border: 1px dashed rgba(201, 162, 74, .35);
  border-radius: 999px 999px 18px 18px / 46% 46% 18px 18px;
}
.spec-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.spec-lines path { fill: none; stroke: var(--gold-hi); stroke-width: .35; vector-effect: non-scaling-stroke; stroke-width: 1; }
.spec-dot {
  position: absolute; left: var(--x); top: var(--y);
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 0 5px rgba(236, 210, 150, .22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(236, 210, 150, 0); } }
.spec {
  position: absolute; z-index: 2;
  display: grid; gap: 0; line-height: 1.5;
  padding: .45rem .8rem; border-radius: 8px;
  font-size: .78rem; color: var(--text);
  background: rgba(11, 10, 9, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.spec b { font-weight: 500; color: var(--gold-hi); font-size: .72rem; }
.spec-1 { top: 15%; right: 2%; }
.spec-2 { top: 85%; left: 4%; }
.spec-3 { top: 68%; right: 2%; }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 1;
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: 1.3rem; background: var(--cloth);
}
.marquee-track { display: flex; align-items: center; gap: 2.4rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--silver); white-space: nowrap; }
.marquee i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- craft ---------- */
.craft { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px) clamp(32px, 6vw, 100px); }
.craft-body { display: grid; gap: 1.2rem; align-content: end; color: var(--muted); max-width: 58ch; }
.craft-body p:first-child { color: var(--text); }

/* ---------- services ---------- */
.services { padding-top: 0; }
.services-head { margin-bottom: clamp(36px, 5vw, 64px); }
.services-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  min-width: 0; display: flex; flex-direction: column; gap: .7rem;
  padding: clamp(22px, 2.6vw, 32px); border-radius: 14px;
  background: var(--cloth); border: 1px solid var(--line);
}
.service svg { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .6rem; }
.service h3 { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.4; }
.service p { color: var(--muted); font-size: .95rem; }
.service-alter { background: linear-gradient(160deg, var(--cloth-2), var(--cloth)); border-color: rgba(201, 162, 74, .45); }
.service-link, .fabric-ask { margin-top: auto; padding-top: .6rem; align-self: flex-start; color: var(--gold-hi); font-weight: 500; font-size: .92rem; transition: color .3s; }
.service-link span, .fabric-ask span { display: inline-block; transition: transform .4s var(--ease); }
.service-link:hover, .fabric-ask:hover { color: var(--text); }
.service-link:hover span, .fabric-ask:hover span { transform: translateX(-5px); }

/* ---------- work (horizontal) ---------- */
.work { position: relative; overflow: hidden; }
.work-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); padding-block: clamp(80px, 10vh, 120px); }
.work-intro { padding-inline: var(--gutter); max-width: var(--maxw); width: 100%; margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1rem 4rem; }
.work-intro .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.work-intro .muted { max-width: 36ch; }
.work-hint { color: var(--gold); font-size: var(--fs-small); display: flex; gap: .5rem; align-items: center; }
.work-hint .arrow { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(-8px); } }
.work-track {
  display: flex; align-items: stretch; gap: clamp(14px, 1.6vw, 24px);
  padding-inline: var(--gutter);
  height: min(62vh, 640px);
  will-change: transform;
}
.work-chapter {
  flex: none; width: clamp(220px, 20vw, 290px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem;
  padding: 1.6rem 0 .4rem;
  border-top: 1px solid var(--line);
}
.work-chapter .swatch { width: 54px; height: 54px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(236, 210, 150, .4); box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .35); margin-bottom: auto; }
.work-chapter h3 { font-family: var(--f-display); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.3; }
.work-chapter p { color: var(--muted); font-size: .95rem; }
.work-card {
  flex: none; height: 100%; aspect-ratio: 3 / 4; max-width: 82vw;
  position: relative; overflow: hidden; border-radius: 6px;
  background: var(--cloth);
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.work-card:hover img { transform: scale(1.14); filter: saturate(1.05); }
.work-card::after {
  content: "+"; position: absolute; bottom: 14px; left: 14px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 10, 9, .6); color: var(--gold-hi); font-size: 1.3rem; line-height: 1;
  border: 1px solid var(--line); opacity: 0; transform: scale(.7); transition: .4s var(--ease);
}
.work-card:hover::after, .work-card:focus-visible::after { opacity: 1; transform: none; }
.work-end {
  flex: none; width: clamp(240px, 22vw, 320px);
  display: grid; place-content: center; gap: .5rem; text-align: center;
  border: 1px dashed var(--line); border-radius: 6px; transition: border-color .3s, background-color .3s;
}
.work-progress { margin-inline: var(--gutter); height: 1px; background: var(--line); position: relative; }
.work-progress i { position: absolute; inset: 0; background: var(--gold); transform-origin: right; transform: scaleX(0); }
.work-end span { font-family: var(--f-display); font-size: 1.7rem; }
.work-end b { font-family: var(--f-latin); font-weight: 400; color: var(--gold); letter-spacing: .04em; }
.work-end:hover { border-color: var(--gold); background: var(--cloth); }

/* ---------- details ---------- */
.details-head { margin-bottom: clamp(40px, 6vw, 80px); }
.details-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.details-media { position: sticky; top: 14vh; }
.details-arch { aspect-ratio: 3 / 4; max-height: 72vh; margin-inline: auto; }
.details-arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.details-arch img.is-active { opacity: 1; transform: scale(1); }
.details-counter { display: block; text-align: center; margin-top: 1rem; font-family: var(--f-latin); color: var(--muted); letter-spacing: .2em; }
.details-counter b { color: var(--gold-hi); font-weight: 400; }
.details-list { list-style: none; margin: 0; padding: 0; display: grid; }
.detail { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--line); opacity: .32; transition: opacity .6s var(--ease); }
.detail:first-child { border-top: 0; }
.detail.is-active { opacity: 1; }
.detail h3 { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.3; color: var(--text); }
.detail p { max-width: 42ch; color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.detail .measure {
  align-self: flex-start; font-size: .82rem; color: var(--gold-hi);
  padding: .35rem .9rem; border: 1px dashed rgba(201, 162, 74, .5); border-radius: 999px;
}
.detail-img { display: none; }

/* ---------- journey (light linen section) ---------- */
.journey {
  max-width: none; margin: 0;
  background: var(--linen); color: var(--linen-ink);
  position: relative;
}
.journey::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(28, 25, 20, .05) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(28, 25, 20, .04) 0 1px, transparent 1px 9px);
}
.journey > * { position: relative; max-width: var(--maxw); margin-inline: auto; }
.journey .kicker { color: var(--gold-lo); }
.journey .kicker::before { background: repeating-linear-gradient(to left, var(--gold-lo) 0 5px, transparent 5px 9px); }
.journey h2 { color: var(--linen-ink); }
.journey-head { margin-bottom: clamp(40px, 6vw, 80px); }
.journey-body { position: relative; }
.thread { position: absolute; top: 0; right: 0; width: 120px; height: 100%; overflow: visible; pointer-events: none; }
.thread path { fill: none; stroke-linecap: round; }
.thread-base { stroke: rgba(28, 25, 20, .22); stroke-width: 1.5; stroke-dasharray: 6 7; }
.thread-gold { stroke: var(--gold-lo); stroke-width: 2.2; }
.thread-knot { fill: var(--linen); stroke: var(--gold-lo); stroke-width: 1.5; transition: fill .5s; }
.thread-knot.is-done { fill: var(--gold-lo); }
.needle { position: absolute; top: 0; left: 0; pointer-events: none; opacity: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 7vw, 96px); padding-inline-start: 150px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; max-width: 860px; }
.step-no { font-family: var(--f-latin); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold-lo); transition: color .6s var(--ease); font-variant-numeric: tabular-nums; }
.step.is-done .step-no { color: var(--gold-lo); }
.step h3 { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.4; margin-bottom: .5rem; }
.step p { color: var(--linen-muted); max-width: 50ch; }

/* ---------- fabrics fan ---------- */
.fabrics { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; overflow: hidden; max-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
.fabrics-copy { display: grid; gap: 1.2rem; justify-items: start; min-width: 0; }
.fabrics-copy > p:not(.kicker) { color: var(--muted); max-width: 44ch; }
.fabrics-copy .btn { margin-top: .6rem; white-space: normal; text-align: center; }
.fan { position: relative; height: clamp(380px, 46vw, 560px); min-width: 0; }
.fan-card {
  --r: 0deg;
  position: absolute; left: 50%; bottom: 4%;
  width: clamp(150px, 17vw, 230px); aspect-ratio: 4 / 5;
  margin-left: calc(clamp(150px, 17vw, 230px) / -2);
  transform-origin: 50% 135%;
  transform: rotate(var(--r));
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(236, 210, 150, .18);
  background: var(--cloth);
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fan-card:hover img { transform: scale(1.06); }
.fabric-list { grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 56px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.fabric-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 2rem; margin-bottom: 1.6rem; }
.fabric-list-head h3 { font-family: var(--f-display); font-size: var(--fs-h3); }
.fabric-list-head .muted { font-size: .92rem; }
.fabric-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fabric-item { min-width: 0; display: flex; flex-direction: column; gap: .45rem; padding: 1.3rem 1.4rem; border-radius: 12px; border: 1px dashed var(--line); transition: border-color .3s, background-color .3s; }
.fabric-item:hover { border-color: rgba(201, 162, 74, .55); background: var(--cloth); }
.fabric-item .origin { align-self: flex-start; font-size: .75rem; color: var(--gold-hi); padding: .15rem .75rem; border: 1px solid var(--line); border-radius: 999px; }
.fabric-item h4 { margin: .2rem 0 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.35rem, 1.9vw, 1.6rem); line-height: 1.4; }
.fabric-item p { color: var(--muted); font-size: .92rem; }

/* ---------- visit ---------- */
.visit-head { display: grid; gap: .6rem; margin-bottom: clamp(36px, 5vw, 64px); }
.visit-head .muted { max-width: 48ch; }
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; }
.panel { min-width: 0; background: var(--cloth); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: .7rem; }
.panel h3 { font-size: var(--fs-small); font-family: var(--f-body); font-weight: 500; color: var(--gold); letter-spacing: .06em; }
.panel .big { font-family: var(--f-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.4; }
.panel-place { background: linear-gradient(160deg, var(--cloth-2), var(--cloth)); }
.panel-place p:not(.big) { color: var(--muted); }
.panel-place .btn { margin-top: auto; align-self: flex-start; white-space: normal; }
.hours-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.open-badge { font-size: .78rem; padding: .25rem .75rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem; background: rgba(120, 190, 120, .12); color: #9fd39f; }
.open-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-badge.is-closed { background: rgba(220, 120, 100, .12); color: #e6a08f; }
.hours { margin: .4rem 0 0; display: grid; gap: 1rem; }
.hours div { display: grid; gap: .2rem; padding: .8rem 1rem; border-radius: 10px; border: 1px solid transparent; }
.hours div.is-today { border-color: var(--line); background: rgba(201, 162, 74, .06); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.9; }
.note { color: var(--muted); font-size: .8rem; margin-top: auto; }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; }
.contacts li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .75rem; border-bottom: 1px dashed var(--line); }
.contacts li:last-child { border-bottom: 0; }
.contacts span { color: var(--muted); font-size: .9rem; }
.contacts a { font-family: var(--f-latin); font-size: 1.12rem; letter-spacing: .03em; color: var(--text); transition: color .3s; font-variant-numeric: tabular-nums; }
.contacts a:hover { color: var(--gold-hi); }

/* ---------- footer ---------- */
.site-footer { display: grid; justify-items: center; gap: .4rem; text-align: center; padding-inline: var(--gutter); padding-block: 60px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.site-footer img { width: 96px; height: 96px; }
.footer-name { font-family: var(--f-display); font-size: 1.5rem; }
.footer-sub, .footer-copy { color: var(--muted); font-size: .85rem; }
.footer-copy { margin-top: .8rem; font-size: .78rem; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60;
  left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: #1faa59;
  box-shadow: 0 12px 30px -8px rgba(31, 170, 89, .6);
  transition: transform .4s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa59; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(6, 5, 4, .94); display: grid; place-items: center; padding: 60px 16px; }
.lightbox img { max-height: 86vh; max-width: min(92vw, 900px); width: auto; object-fit: contain; border-radius: 6px; }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 18px; font-size: 2.4rem; line-height: 1; width: 48px; height: 48px; color: var(--text); }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11, 10, 9, .5); font-size: 2rem; line-height: 1; color: var(--gold-hi); }
.lb-prev { right: 16px; }
.lb-next { left: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 1rem; }
  .nav a { font-size: .9rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .fabric-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .panel-place { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; margin-inline-start: auto; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem;
    background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav a { font-family: var(--f-display); font-size: 2rem; color: var(--text); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { background: var(--ink); }

  .hero { grid-template-columns: 1fr; padding-top: calc(104px + env(safe-area-inset-top, 0px)); }
  .hero-media { order: -1; max-width: 400px; }
  .craft { grid-template-columns: 1fr; }

  .work-pin { min-height: 0; }
  .work-progress { display: none; }
  .work-intro { grid-template-columns: 1fr; }
  .work-track { overflow-x: auto; scroll-snap-type: x mandatory; height: auto; padding-bottom: 12px; scrollbar-width: none; }
  .work-track::-webkit-scrollbar { display: none; }
  .work-track > * { scroll-snap-align: center; }
  .work-card { height: auto; width: 72vw; }
  .work-chapter { width: 60vw; }
  .work-end { width: 60vw; }

  .details-grid { grid-template-columns: 1fr; }
  .details-media { display: none; }
  .detail { min-height: 0; opacity: 1; padding-block: 2.4rem; }
  .detail-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 8px 8px / 40% 40% 8px 8px; margin-bottom: .6rem; }

  .thread { width: 60px; }
  .steps { padding-inline-start: 64px; }
  .step { grid-template-columns: 1fr; gap: .6rem; }

  .fabrics { grid-template-columns: 1fr; }
  .fan { height: 380px; }
}
@media (max-width: 640px) {
  .visit-grid { grid-template-columns: 1fr; }
  .services-grid, .fabric-grid { grid-template-columns: 1fr; }
  .spec { font-size: .7rem; padding: .35rem .6rem; }
  .spec b { font-size: .66rem; }
  .fan { height: 330px; }
  .fan-card { width: 130px; margin-left: -65px; }
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
}
