/* KASHIDA — ivory, ink, and one crimson thread.
   Type: Boska (display, light + italic), Switzer (text), Nastaliq for the Urdu. */
:root {
  --bg: #f4efe7; --bg2: #ebe4d8; --ink: #1c1714; --dim: #71685e; --line: rgba(28,23,20,.14);
  --red: #9e1b2c; --gold: #b8893a;
  --serif: "Boska", "Times New Roman", serif; --sans: "Switzer", system-ui, sans-serif; --ur: "Nastaliq", serif;
  --g: clamp(18px, 3.9vw, 56px); --nav: 88px;
  --ease: cubic-bezier(.2, .7, .1, 1); --ease-io: cubic-bezier(.65, 0, .25, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* clip, not hidden: overflow-x:hidden makes a scroll container and kills sticky */
html, body { overflow-x: clip; }
html { background: var(--bg); scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 15px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.cap { font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; }
.dim { color: var(--dim); }
.red { color: var(--red); }
em { font-style: italic; }
::selection { background: var(--red); color: var(--bg); }

/* ───────── loader ───────── */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; align-content: center; gap: 10px;
  transition: clip-path 1.3s var(--ease-io); clip-path: inset(0 0 0 0); }
.loader-ur { width: min(520px, 76vw); height: auto; overflow: visible; }
.loader-ur text { font-family: var(--ur); font-size: 150px; fill: var(--red); fill-opacity: 0; stroke: var(--red); stroke-width: 1.1;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: ink 2.6s var(--ease-io) .2s forwards, fillin 1.2s ease 1.9s forwards; }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; stroke-width: 0; } }
.loader-row { display: grid; grid-template-columns: 90px 220px 90px; align-items: center; gap: 18px; color: var(--dim); }
.loader-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.loader-thread { position: relative; height: 2px; overflow: hidden; }
/* a running stitch that is sewn left to right as frames arrive */
.loader-thread i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 13px); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease); }
.loader.is-done { clip-path: inset(0 0 100% 0); }

/* ───────── cursor ───────── */
.cursor { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.cursor-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cursor-thread path { fill: none; stroke: var(--red); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 5 4; opacity: .9; }
.cursor-dot { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s; will-change: transform; }
.cursor-dot span { color: var(--bg); opacity: 0; transition: opacity .3s; font-size: 9px; white-space: nowrap; }
.cursor.is-label .cursor-dot { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.cursor.is-label .cursor-dot span { opacity: 1; transition-delay: .12s; }
.cursor.is-hidden { opacity: 0; }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ───────── nav ───────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--g);
  color: var(--navc, var(--ink)); transition: color .6s, background .6s, border-color .6s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-color: var(--line); color: var(--ink); }
.nav nav { display: flex; gap: 34px; }
.nav-r { justify-content: flex-end; }
.nav nav a { position: relative; padding: 6px 0; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.nav nav a:hover::after { transform: scaleX(1); }
.logo { text-align: center; line-height: 1; }
.logo b { display: block; font-family: var(--serif); font-weight: 300; font-size: 29px; letter-spacing: .44em; margin-right: -.44em; }
.logo i { display: block; font-family: var(--ur); font-style: normal; color: var(--red); font-size: 12px; line-height: 1; margin-top: 12px; transition: color .6s; }
.nav.on-film .logo i { color: currentColor; }

/* ───────── hero: film stage ───────── */
.hero { position: relative; height: 560vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
#film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; pointer-events: none; }

.film-hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; color: #f7f1e6; padding: calc(var(--nav) + 20px) var(--g) 34px; }
.film-hud > * { transition: opacity .5s; }
.hud-l { position: absolute; left: var(--g); bottom: 34px; max-width: 560px; }
.hud-kicker { opacity: .85; }
.hud-line { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.7vw, 60px); line-height: 1; letter-spacing: -.01em; margin-top: 16px; text-shadow: 0 1px 30px rgba(0,0,0,.25); }
.hud-line.swap { animation: hudswap .9s var(--ease); }
@keyframes hudswap { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
.hud-r { position: absolute; right: var(--g); bottom: 34px; text-align: right; display: grid; gap: 10px; }
.hud-count { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.4vw, 54px); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.hud-hint { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; }
.hud-hint::after { content: ""; width: 1px; height: 34px; background: repeating-linear-gradient(180deg, currentColor 0 4px, transparent 4px 7px); animation: drip 2.4s var(--ease-io) infinite; transform-origin: 50% 0; }
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); transform-origin: 50% 0; } 56% { transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }

/* the approved composition: headline either side of the arch */
.hero-grid { position: absolute; z-index: 1; inset: var(--nav) 0 0; display: grid; grid-template-columns: 1fr var(--archw, 440px) 1fr; align-items: center; padding: 0 var(--g); pointer-events: none; }
.hero-grid .meta, .hero-grid .btn { pointer-events: auto; }
.arch-slot { align-self: end; height: 88%; }
.hero-l { padding-right: 48px; text-align: right; }
.hero-r { padding-left: 48px; }
.hero-grid h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(76px, 8.6vw, 156px); line-height: .86; letter-spacing: -.03em; }
.hero-grid h1 em { color: var(--red); font-weight: 300; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: inline-block; }
.meta { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-l .meta { align-items: flex-end; }
.lede { max-width: 290px; font-size: 14px; line-height: 1.7; color: var(--dim); }
.hero-foot-l, .hero-foot-r { position: absolute; bottom: 30px; }
.hero-foot-l { left: var(--g); } .hero-foot-r { right: var(--g); }
/* JS drives --in (0→1) as the arch closes */
.hero-grid { --in: 0; }
.hero-l .ln > span { transform: translateX(calc((1 - var(--in)) * 24vw)); }
.hero-r .ln > span { transform: translateX(calc((1 - var(--in)) * -24vw)); }
.hero-grid .meta, .hero-foot-l, .hero-foot-r { opacity: calc(var(--in) * 2 - 1); transform: translateY(calc((1 - var(--in)) * 30px)); }

.btn { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 15px 26px; border: 1px solid var(--ink); border-radius: 999px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.btn.fill { background: var(--ink); color: var(--bg); }
/* hover: crimson rises in an arch */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); border-radius: 50% 50% 0 0; transform: translateY(101%); transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.btn:hover::before { transform: none; border-radius: 0; }
.btn:hover { color: var(--bg); border-color: var(--red); }
.btn .arr { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ───────── everything after the film, sewn by one thread ───────── */
.sewn { position: relative; }
/* the thread: a viewport canvas UNDER photos (z 2) and section panels, over plain ivory */
.thread-cv { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
.ticker { border-block: 1px solid var(--line); padding: 20px 0; white-space: nowrap; overflow: hidden; font-family: var(--serif); font-size: 28px; font-style: italic; font-weight: 300; background: var(--bg); position: relative; z-index: 2; }
.ticker-in { display: inline-block; will-change: transform; }
.ticker span { margin: 0 30px; } .ticker b { color: var(--red); font-weight: 300; font-style: normal; font-size: .7em; vertical-align: .15em; }

.statement { padding: 180px var(--g) 160px; display: grid; grid-template-columns: 260px 1fr; gap: 80px; }
.statement h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 4.2vw, 74px); line-height: 1.1; letter-spacing: -.015em; max-width: 1120px; }
.statement h2 em { color: var(--red); }
.statement .w { color: color-mix(in srgb, var(--ink) 18%, var(--bg)); transition: color .5s; }
.statement .w.on { color: var(--ink); }
.statement em .w.on { color: var(--red); }
.statement .fig { display: inline-block; width: 1.9em; height: .82em; border-radius: 999px; overflow: hidden; vertical-align: -.08em; margin: 0 .12em; transform: scale(var(--fs, .4)); transition: transform 1.2s var(--ease); }
.statement .fig.on { --fs: 1; }

.head { display: flex; justify-content: space-between; align-items: end; padding: 0 var(--g) 44px; }
.head h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -.02em; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 0 var(--g); }
.card { position: relative; }
.card .ph { position: relative; z-index: 2; aspect-ratio: 3/4; overflow: hidden; background: var(--bg2);
  border-radius: 0; transition: border-radius .9s var(--ease); clip-path: inset(22% 16% 0 16% round 999px 999px 0 0); }
.card .ph img { transform: scale(1.18); transition: transform 1.6s var(--ease); }
.card.in .ph { clip-path: inset(0 0 0 0 round 0); transition: clip-path 1.5s var(--ease), border-radius .9s var(--ease); }
.card.in .ph img { transform: scale(1); }
.card .ph video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.card.playing .ph video { opacity: 1; }
/* hover: the frame becomes an arch */
@media (hover: hover) { .card:hover .ph { border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0; } }
.card .row { display: flex; justify-content: space-between; margin-top: 16px; }
.card h4 { font-family: var(--serif); font-weight: 300; font-size: 26px; margin-top: 6px; letter-spacing: -.005em; }
.c1 { grid-column: 1/6; } .c2 { grid-column: 7/10; margin-top: 200px; } .c3 { grid-column: 10/13; margin-top: 40px; }
.c4 { grid-column: 2/5; margin-top: 120px; } .c5 { grid-column: 6/9; margin-top: 260px; } .c6 { grid-column: 10/13; margin-top: 60px; }

.craft { position: relative; z-index: 2; margin-top: 200px; height: 340vh; background: var(--bg2); }
.craft-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 42vw) 90px 1fr; padding: calc(var(--nav) + 26px) var(--g) 0; }
.craft-arch { position: relative; border-radius: 999px 999px 0 0; overflow: hidden; background: #d8cfc1; align-self: stretch; }
.craft-arch canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.craft-rail { position: relative; margin: 34px auto 60px; width: 1px; background: var(--line); }
.craft-rail i { position: absolute; left: -4px; width: 9px; height: 1px; background: var(--dim); }
.craft-rail b { position: absolute; left: -.5px; top: 0; width: 2px; height: 100%; transform-origin: 50% 0; transform: scaleY(0);
  background: repeating-linear-gradient(180deg, var(--red) 0 9px, transparent 9px 15px); }
.craft-rail svg { position: absolute; left: -24px; width: 48px; height: 7px; margin-top: -3.5px; transform: rotate(90deg); }
.craft-rail svg path { fill: #8d8378; } .craft-rail svg ellipse { fill: var(--bg2); }
.craft-txt { padding: 14px 0 0 10px; max-width: 620px; }
.craft h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(50px, 5.2vw, 82px); line-height: .96; letter-spacing: -.02em; margin: 24px 0 0; }
.craft h3 em { color: var(--red); }
.craft-count { margin-top: clamp(28px, 5vh, 54px); display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.craft-count b { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 7.6vw, 116px); line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.craft-count span { color: var(--dim); font-family: var(--serif); font-size: 22px; }
.steps { list-style: none; margin-top: clamp(26px, 5vh, 52px); }
.steps li { display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-top: 1px solid var(--line); color: color-mix(in srgb, var(--ink) 28%, var(--bg2)); transition: color .6s; }
.steps b { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 24px; transition: color .6s; }
.steps h5 { font-family: var(--serif); font-weight: 300; font-size: 29px; }
.steps p { font-size: 14px; line-height: 1.7; color: var(--dim); max-width: 440px; overflow: hidden; max-height: 0; opacity: 0; margin-top: 0; transition: max-height .8s var(--ease), opacity .5s, margin .7s var(--ease); }
.steps li.on { color: var(--ink); } .steps li.on b { color: var(--red); }
.steps li.on p { opacity: 1; margin-top: 8px; max-height: 120px; }

.commission { padding: 190px var(--g) 170px; display: grid; grid-template-columns: 5fr 7fr; gap: 90px; align-items: center; }
.cm-media { display: grid; gap: 16px; }
.cm-arch { position: relative; aspect-ratio: 4/5; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--bg2); }
.cm-img { position: absolute; inset: 0; }
.cm-img.is-new { clip-path: inset(0 100% 0 0); }
.cm-img.is-sewing { clip-path: inset(0 0 0 0); transition: clip-path 1.25s var(--ease-io); }
.cm-seam { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--red) 0 9px, transparent 9px 15px); opacity: 0; pointer-events: none; }
.cm-seam.run { animation: seam 1.25s var(--ease-io); }
@keyframes seam { 0% { opacity: 1; transform: translateX(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--w)); } }
.commission h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 6.6vw, 104px); line-height: .9; letter-spacing: -.025em; margin: 22px 0 28px; }
.commission h3 em { color: var(--red); }
.cm-lede { max-width: 460px; line-height: 1.8; }
.opt { border: 0; margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px; }
.opt legend { margin-bottom: 14px; }
.sw, .sp { display: inline-flex; align-items: center; gap: 12px; padding: 9px 20px 9px 9px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .4s, background .4s; }
.sw i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
/* thread option: a tiny spool with wound thread */
.sp i { width: 26px; height: 26px; border-radius: 50%; background: repeating-linear-gradient(0deg, var(--c) 0 2px, color-mix(in srgb, var(--c) 70%, #000) 2px 3px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.sw span, .sp span { font-family: var(--serif); font-size: 19px; }
.sw:hover, .sp:hover { border-color: var(--ink); }
.sw.is-on, .sp.is-on { border-color: var(--ink); background: var(--bg2); }
.spec { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 44px 0 0; }
.spec div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dd { font-family: var(--serif); font-size: 22px; margin-top: 6px; }
.price { font-family: var(--serif); font-size: 42px; font-weight: 300; margin-right: 10px; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 36px; }

.foot { border-top: 1px solid var(--line); padding: 90px var(--g) 36px; overflow: hidden; }
.foot-big { position: relative; z-index: 2; font-family: var(--serif); font-weight: 300; font-size: 19.4vw; line-height: .8; letter-spacing: .03em; text-align: center; margin: 0 -.03em 10px 0; }
.foot-big .ch { display: inline-block; transform: translateY(var(--y, 0)); transition: transform 1.4s var(--ease); }
.foot-row { display: flex; justify-content: space-between; align-items: center; }
.foot-ur { font-family: var(--ur); letter-spacing: 0; text-transform: none; font-size: 15px; color: var(--red); }

/* line reveals for section heads */
.reveal-lines .ln > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.reveal-lines.in .ln > span { transform: none; }
.reveal-lines.in .ln:nth-child(2) > span { transition-delay: .1s; }

/* ───────── phone ───────── */
@media (max-width: 900px) {
  :root { --nav: 68px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav .nav-l { display: none; }
  .nav .logo { justify-self: start; text-align: left; }
  .logo b { font-size: 21px; letter-spacing: .36em; margin-right: 0; }
  .logo i { font-size: 10px; margin-top: 8px; }
  .nav .nav-r a:first-child { display: none; }
  .hud-l { right: var(--g); bottom: 96px; }
  .hud-r { top: calc(var(--nav) + 14px); bottom: auto; }
  .hud-hint { bottom: 30px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-items: stretch; padding: 14px var(--g) 22px; }
  .hero-l { padding: 0; text-align: left; order: 1; }
  .hero-l .meta { display: none; }
  .arch-slot { order: 2; align-self: stretch; height: auto; width: min(76vw, 360px); justify-self: center; margin: 14px 0; }
  .hero-r { padding: 0; order: 3; text-align: right; }
  .hero-r .meta { align-items: flex-end; margin-top: 16px; }
  .hero-grid h1 { font-size: clamp(50px, 14.5vw, 76px); }
  .hero-grid h1.h-left { display: flex; gap: .22em; }
  .hero-foot-l, .hero-foot-r { display: none; }
  .ticker { font-size: 22px; padding: 16px 0; }
  .statement { grid-template-columns: 1fr; gap: 28px; padding: 120px var(--g) 110px; }
  .statement h2 { font-size: clamp(32px, 8.4vw, 44px); }
  .head { padding-bottom: 30px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .grid { grid-template-columns: repeat(6, 1fr); gap: 16px; row-gap: 50px; }
  .c1 { grid-column: 1/7; } .c2 { grid-column: 1/4; margin-top: 0; } .c3 { grid-column: 4/7; margin-top: 80px; }
  .c4 { grid-column: 1/4; margin-top: 0; } .c5 { grid-column: 4/7; margin-top: 80px; } .c6 { grid-column: 2/6; margin-top: 0; }
  .card h4 { font-size: 21px; }
  .commission { grid-template-columns: 1fr; gap: 44px; padding: 120px var(--g); }
  .cm-arch { width: min(100%, 440px); justify-self: center; }
  .price { font-size: 34px; width: 100%; }
  .foot-row { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ───────── tacks: the thread tacks each photo down as it passes ───────── */
.tack { position: absolute; top: 14px; width: 12px; height: 12px; z-index: 3; pointer-events: none; transform: scale(0) rotate(-40deg); transition: transform .7s var(--ease), opacity .3s; }
.tack.tl { left: 14px; } .tack.tr { right: 14px; transition-delay: .12s; }
.tack::before, .tack::after { content: ""; position: absolute; left: 50%; top: -2px; width: 1.8px; height: 16px; margin-left: -.9px; background: var(--red); border-radius: 1px; transform: rotate(45deg); }
.tack::after { transform: rotate(-45deg); }
.card.tacked .tack { transform: none; }
@media (hover: hover) { .card:hover .tack { opacity: 0; } }

/* ───────── finale: the Urdu name, embroidered ───────── */
.foot-ur-stitch { position: relative; z-index: 2; height: clamp(130px, 14vw, 280px); margin: 30px auto 60px; }
.foot-ur-stitch svg { display: block; width: 100%; height: 100%; overflow: visible; }
.foot-ur-stitch text { font-family: var(--ur); font-size: 190px; }
.ur-stitch { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-dasharray: 9 6; stroke-linecap: round; transition: stroke-opacity 1.2s ease .3s; }
.is-sewn .ur-stitch { stroke-opacity: 0; }
/* while stitching: a dashed outline; once knotted it settles into solid calligraphy, like the logo's */
.ur-fill { fill: var(--red); fill-opacity: 0; transition: fill-opacity 1.4s ease; }
.is-sewn .ur-fill { fill-opacity: 1; }
.ur-knot { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; opacity: 0; transition: opacity .5s; }
.ur-needle path { fill: #8d8378; } .ur-needle { transition: opacity .3s; }

/* ───────── the look page ───────── */
.look { position: fixed; inset: 0; z-index: 45; visibility: hidden; --aw: min(39vw, calc((100vh - var(--nav) - 30px) * .74)); }
.look.is-open, .look.is-leaving { visibility: visible; }
.look-bg { position: absolute; inset: 0; background: var(--bg); opacity: 0; transition: opacity .8s var(--ease); }
.look.is-open .look-bg { opacity: 1; }
.look-in { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; }
.look-arch { position: absolute; left: var(--g); top: calc(var(--nav) + 30px); bottom: 0; width: var(--aw); border-radius: 999px 999px 0 0; overflow: hidden; opacity: 0; background: var(--bg2); }
.look.is-in .look-arch, .look.is-swapping .look-arch { opacity: 1; }
.look-arch img, .look-arch video { position: absolute; inset: 0; }
.look-arch video { opacity: 0; transition: opacity 1s; }
.look-arch.playing video { opacity: 1; }
.look-next-img { z-index: 2; }
.look-next-img:not([src]) { display: none; }
.look-next-img.is-new { clip-path: inset(0 100% 0 0); }
.look-next-img.is-sewing { clip-path: inset(0 0 0 0); transition: clip-path 1.25s var(--ease-io); }
.look-arch .cm-seam { z-index: 3; }
.look-fly { position: fixed; z-index: 46; display: none; overflow: hidden; pointer-events: none; will-change: left, top, width, height; box-shadow: 0 50px 90px -50px rgba(28,23,20,.45); }
.look-fly img { position: absolute; inset: 0; }
.look-col { position: absolute; left: calc(var(--g) + var(--aw) + 5vw); right: var(--g); top: calc(var(--nav) + 40px); padding-bottom: 150px; }
.lk-title { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 6.8vw, 104px); line-height: .9; letter-spacing: -.03em; margin: 22px 0 26px; }
.lk-title em { color: var(--red); }
.lk-title .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.look.is-in .lk-title .ln > span { transform: none; }
.look.is-in .lk-title .ln:nth-child(2) > span { transition-delay: .09s; }
.look.is-swapping .lk-title .ln > span { transform: translateY(-105%); transition: transform .5s var(--ease-io); }
.lk-r { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.look.is-in .lk-r { opacity: 1; transform: none; }
.look.is-in .lk-lede { transition-delay: .22s; } .look.is-in .lk-spec { transition-delay: .3s; }
.look.is-in .lk-acts { transition-delay: .38s; } .look.is-in .lk-details { transition-delay: .5s; }
.look.is-swapping .lk-r { opacity: 0; transform: translateY(-12px); transition: opacity .35s, transform .5s var(--ease-io); }
.lk-lede { max-width: 480px; font-size: 15px; line-height: 1.8; color: var(--dim); }
.lk-spec { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 32px; }
.lk-spec div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.lk-spec dd { font-family: var(--serif); font-size: 21px; margin-top: 6px; }
.lk-acts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.lk-acts .price { font-size: 36px; }
.lk-details { display: flex; gap: 16px; margin-top: 38px; }
.lk-det { width: 128px; margin: 0; }
.lk-det .ph { height: 168px; border-radius: 64px 64px 0 0; overflow: hidden; background: var(--bg2); }
.lk-det figcaption { margin-top: 12px; }
.lk-det b { font-family: var(--serif); font-weight: 300; font-style: italic; color: var(--red); margin-right: 8px; font-size: 17px; letter-spacing: 0; text-transform: none; }
.look-close { position: absolute; right: var(--g); top: calc(var(--nav) + 30px); display: flex; align-items: center; gap: 12px; opacity: 0; transition: opacity .6s .4s; z-index: 3; }
.look-close i { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 15px; transition: background .4s, color .4s, border-color .4s; }
.look-close:hover i { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.look-next { position: absolute; right: var(--g); bottom: 40px; display: flex; align-items: center; gap: 18px; text-align: right; opacity: 0; transition: opacity .6s .6s; }
.look-next h4 { font-family: var(--serif); font-weight: 300; font-size: 24px; margin-top: 6px; }
.look-next .ph { width: 64px; height: 84px; border-radius: 32px 32px 0 0; overflow: hidden; }
.look-next .ph img { transition: transform .8s var(--ease); } .look-next:hover .ph img { transform: scale(1.08); }
.look.is-in .look-close, .look.is-in .look-next, .look.is-swapping .look-close, .look.is-swapping .look-next { opacity: 1; }
html.look-lock, html.look-lock body { overflow: hidden; }

@media (max-width: 900px) {
  .craft { height: 300vh; margin-top: 130px; }
  .craft-pin { grid-template-columns: 1fr; grid-template-rows: 46svh auto; padding: calc(var(--nav) + 8px) var(--g) 0; gap: 18px; }
  .craft-arch { width: min(78vw, 340px); justify-self: center; }
  .craft-rail { display: none; }
  .craft-txt { padding: 0; }
  .craft h3 { font-size: 34px; margin-top: 10px; }
  .craft h3 br { display: none; }
  .craft-count { margin-top: 14px; } .craft-count b { font-size: 56px; } .craft-count span { font-size: 16px; }
  .steps { margin-top: 14px; } .steps li { padding: 10px 0; grid-template-columns: 40px 1fr; } .steps h5 { font-size: 22px; } .steps b { font-size: 19px; }
  .steps li:not(.on) { display: none; }
  .look-arch { position: relative; left: auto; top: auto; bottom: auto; margin: calc(var(--nav) + 70px) auto 0; width: min(78vw, 360px); height: min(104vw, 480px); }
  .look-col { position: relative; left: auto; right: auto; top: auto; padding: 0 var(--g) 150px; margin-top: 26px; }
  .lk-title { font-size: 54px; }
  .lk-spec { grid-template-columns: 1fr 1fr; }
  .lk-details { gap: 12px; } .lk-det { width: calc((100% - 24px) / 3); } .lk-det .ph { height: 120px; }
  .look-close { top: calc(var(--nav) + 16px); }
  .look-next { position: fixed; bottom: 18px; background: color-mix(in srgb, var(--bg) 90%, transparent); padding: 8px 8px 8px 16px; border-radius: 999px; backdrop-filter: blur(8px); }
  .look-next h4 { font-size: 18px; } .look-next .ph { width: 44px; height: 56px; }
  .foot-ur-stitch { height: 112px; margin: 22px auto 30px; }
}

/* focus: rings only for keyboard users, drawn in the house red */
button:focus, a:focus, [tabindex]:focus { outline: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 1.5px solid var(--red); outline-offset: 4px; }
.look-close:focus-visible { outline: none; } .look-close:focus-visible i { box-shadow: 0 0 0 2px var(--red); }

/* ───────── phone refinements ───────── */
@media (max-width: 900px) {
  /* craft: a shorter pin, a smaller arch, and the active step always fully on screen */
  .craft { height: 190vh; }
  .craft-pin { grid-template-rows: 40svh auto; gap: 14px; padding-top: calc(var(--nav) + 6px); }
  .craft-arch { width: min(64vw, 300px); }
  .craft h3 { font-size: 30px; margin-top: 6px; }
  .craft-count { margin-top: 8px; gap: 2px 12px; } .craft-count b { font-size: 46px; } .craft-count span { font-size: 14px; }
  .steps { margin-top: 8px; } .steps li { padding: 8px 0; } .steps h5 { font-size: 20px; }
  .steps li.on p { margin-top: 4px; font-size: 13px; line-height: 1.55; }

  /* commission: title, then the photo, then the choices right under it — one screen,
     so every tap visibly re-sews the photo. The thread passes under this panel. */
  .commission { position: relative; z-index: 2; background: var(--bg); display: flex; flex-direction: column; gap: 0; padding: 90px var(--g) 90px; }
  .cm-panel { display: contents; }
  .cm-panel > .cap { order: 1; } .commission h3 { order: 2; font-size: 52px; margin: 14px 0 12px; } .cm-lede { order: 3; font-size: 14px; }
  .cm-media { order: 4; margin: 22px 0 6px; position: sticky; top: calc(var(--nav) + 8px); z-index: 1; background: var(--bg); padding-bottom: 8px; }
  .cm-arch { width: min(58vw, 250px); aspect-ratio: 4/5; }
  .cm-note { text-align: center; }
  .opt { order: 5; margin-top: 16px; flex-wrap: nowrap; gap: 8px; }
  .opt legend { margin-bottom: 10px; }
  .sw, .sp { padding: 6px 12px 6px 6px; gap: 8px; flex: 1 1 0; min-width: 0; }
  .sw i, .sp i { width: 22px; height: 22px; flex: none; }
  .sw span, .sp span { font-size: 16px; }
  .spec { order: 6; margin-top: 26px; } .actions { order: 7; }
}
