:root {
  --bg: #fbfaf7;
  --ink: #1b1a18;
  --muted: #76716a;
  --line: #d9d4cc;
  --teal: #0f5e5c;
  --oxblood: #6b1e2b;
  --gold: #b8923a;
  --linen: #f3ede1;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
main:focus { outline: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
.wordmark {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: .14em; text-transform: uppercase;
}
.nav { display: flex; gap: 28px; font-size: 15px; letter-spacing: .02em; }
.nav a { position: relative; padding-bottom: 3px; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }
.icons { justify-self: end; display: flex; gap: 14px; }
.icons a { opacity: .8; } .icons a:hover { opacity: 1; }

/* Home hero */
.intro { align-items: start; }
.intro .hero-text h1 { font-size: clamp(46px, 6.4vw, 104px); line-height: .95; letter-spacing: -.02em; }
.intro .urdu { font-family: "Noto Nastaliq Urdu", serif; font-size: clamp(18px, 1.8vw, 24px); color: var(--muted); margin-top: 22px; line-height: 2; text-align: left; }
.hero-brief { padding-top: clamp(0px, 3vw, 40px); }
.hero-brief p { color: #3b3834 !important; font-size: 16px !important; max-width: 460px; }
.hero-brief p + p { margin-top: 12px; }
.translate { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--ink); max-width: 480px; }
.translate li { padding: 12px 8px 0 0; position: relative; min-width: 0; }
.translate { counter-reset: t; }
.translate li { counter-increment: t; }
.translate li::before { content: "0" counter(t); display: block; font-size: 10px; color: var(--gold); letter-spacing: .1em; margin-bottom: 2px; }
.translate b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(15px, 1.3vw, 19px); }
.translate span { display: block; font-size: 10px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* CV */
.cv { padding: clamp(30px, 5vw, 70px) var(--gutter) 0; max-width: 1100px; margin: 0 auto; }
.cv-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--ink); }
.cv-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.cv-head p { color: var(--muted); margin-top: 8px; }
.cv-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; }
.cv-actions .btn { margin-top: 12px; }
.cv-sec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.cv-sec > h2 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; padding-top: 6px; }
.cv-item + .cv-item { margin-top: 24px; }
.cv-row { display: flex; justify-content: space-between; gap: 20px; }
.cv-row h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; }
.cv-row span { font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.cv-sub { font-size: 14px; color: var(--oxblood); margin-top: 2px; }
.cv-item p { font-size: 15px; color: #3b3834; margin-top: 6px; max-width: 700px; }
.cv-item ul { margin: 8px 0 0 18px; font-size: 15px; color: #3b3834; }
@media (max-width: 700px) { .cv-sec { grid-template-columns: 1fr; gap: 12px; } .cv-actions { align-items: flex-start; } .cv-row { flex-direction: column; gap: 0; } }

/* Home */
.intro {
  padding: clamp(40px, 8vw, 110px) var(--gutter) clamp(36px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end;
}
.intro h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.01em;
}
.intro h1 em { color: var(--oxblood); }
.intro p { color: var(--muted); max-width: 440px; font-size: 16px; }
.intro .label { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }

.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  padding: 0 var(--gutter) 60px;
}
.card { display: block; }
.card .frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--linen);
}
.card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s; }
.card:hover .frame img { transform: scale(1.04); }
.card .overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 26px;
  background: linear-gradient(to top, rgba(20,16,12,.55), rgba(20,16,12,0) 55%);
  color: #fff; opacity: 0; transition: opacity .45s;
}
.card:hover .overlay, .card:focus-visible .overlay { opacity: 1; }
.card .overlay span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.card .meta { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px 0; }
.card h2 { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; }
.card .meta small { color: var(--muted); font-size: 13px; white-space: nowrap; padding-top: 4px; }
.card.feature { grid-column: span 2; }
.card.feature .frame { aspect-ratio: 21 / 9; }

.card .panels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; width: 100%; height: 100%; background: var(--bg); }
.card .panels img { width: 100%; height: 100%; object-fit: cover; min-width: 0; }
.card:hover .panels img { transform: scale(1.03); }
.card .panels img:nth-child(2) { transition-delay: .06s; }
.card .panels img:nth-child(3) { transition-delay: .12s; }

/* Heritage Loop generated cover */
.hl-cover {
  width: 100%; height: 100%; background: var(--linen);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6%;
  padding: 0 9%;
}
.hl-cover .hl-word { font-family: var(--serif); color: var(--oxblood); font-size: clamp(30px, 4.2vw, 64px); line-height: .95; }
.hl-cover .hl-word small { display: block; font-family: var(--sans); color: var(--teal); font-size: clamp(10px, .9vw, 13px); letter-spacing: .2em; text-transform: uppercase; margin-top: 18px; }
.hl-cover .hl-dots { display: flex; gap: 8px; margin-top: 18px; }
.hl-cover .hl-dots i { width: 16px; height: 16px; border-radius: 50%; }
.hl-cover .phone { width: clamp(110px, 13vw, 190px); }

/* Project page */
.project-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px); align-items: start;
  padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(50px, 6vw, 90px);
}
.project-head .cover { border-radius: var(--radius); overflow: hidden; background: var(--linen); cursor: zoom-in; }
.project-head .cover img { width: 100%; height: auto; }
.project-head .cover.hl { aspect-ratio: 4 / 3; cursor: default; }
.project-info { position: sticky; top: 110px; padding-top: clamp(0px, 4vw, 60px); }
.project-info h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: .08em; text-transform: uppercase;
}
.project-info .sub { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--muted); margin-top: 8px; }
.project-info .date { font-size: 14px; margin: 22px 0 6px; }
.project-info .tags { font-size: 13px; color: var(--muted); margin-bottom: 30px; }

.acc { border-top: 1px solid var(--ink); }
.acc-item { border-bottom: 1px solid var(--ink); }
.acc-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 2px; font-family: var(--serif); font-size: 19px; text-align: left;
}
.acc-item .pm { position: relative; width: 18px; height: 18px; flex: none; }
.acc-item .pm::before, .acc-item .pm::after { content: ""; position: absolute; background: var(--ink); left: 0; right: 0; top: 50%; height: 1px; transition: transform .3s; }
.acc-item .pm::after { transform: rotate(90deg); }
.acc-item.open .pm::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 2px 20px; color: #3b3834; font-size: 15px; }

.note {
  margin: 24px 0 0; padding: 14px 16px; border-left: 2px solid var(--gold);
  background: var(--linen); font-size: 13px; color: var(--muted);
}

/* Gallery blocks */
.blocks { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: clamp(20px, 3vw, 44px); }
.blk figure { margin: 0; }
.blk img { width: 100%; border-radius: var(--radius); cursor: zoom-in; background: var(--linen); }
.blk figcaption { font-size: 13px; color: var(--muted); padding: 10px 2px 0; max-width: 620px; }
.blk.contain img { background: #fff; object-fit: contain; }
.blk.full.contain img { max-height: 92vh; width: auto; margin: 0 auto; padding: 3%; border: 1px solid var(--line); }
.blk.full.contain figcaption { text-align: center; margin: 0 auto; }
.blk.pair, .blk.trio { display: grid; gap: clamp(16px, 2vw, 28px); align-items: start; }
.blk.pair { grid-template-columns: 1fr 1fr; }
.blk.trio { grid-template-columns: repeat(3, 1fr); }
.blk.pair img, .blk.trio img { aspect-ratio: 4 / 5; object-fit: cover; }
.blk.natural img { aspect-ratio: auto !important; height: auto; }
.blk.natural { align-items: center; }
.blk.pair .contain img, .blk.trio .contain img { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4%; }
.blk.text {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px;
  padding: clamp(20px, 4vw, 60px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.blk.text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.blk.text p { color: #3b3834; font-size: 17px; max-width: 640px; }
.blk.related { padding: 20px 0; }
.blk.related p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.blk.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.blk.related a { display: inline-block; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; transition: background .2s, color .2s; }
.blk.related a:hover { background: var(--ink); color: var(--bg); }

.blk.step { display: grid; grid-template-columns: 70px minmax(0, 1fr); column-gap: 20px; align-items: baseline; padding-top: clamp(24px, 4vw, 50px); border-top: 1px solid var(--line); }
.blk.step span { font-family: var(--serif); font-size: 34px; color: var(--oxblood); line-height: 1; }
.blk.step h3 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.blk.step p { grid-column: 2; color: var(--muted); font-size: 15px; max-width: 640px; margin-top: 6px; }
.blk[class*="grid-"] { display: grid; gap: clamp(12px, 1.6vw, 22px); align-items: start; }
.blk.grid-3 { grid-template-columns: repeat(3, 1fr); }
.blk.grid-4 { grid-template-columns: repeat(4, 1fr); }
.blk[class*="grid-"] img { aspect-ratio: 1; object-fit: cover; }
.blk.tall img { aspect-ratio: 3 / 4 !important; }
.blk[class*="grid-"] .contain img { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4%; }
.blk[class*="grid-"] figcaption { font-size: 12px; }

/* Heritage Loop blocks */
.hl-sec { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 50px); }
.hl-sec > h3 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 24px; font-weight: 500; }
.personas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.persona { background: var(--linen); border-radius: var(--radius); padding: clamp(22px, 3vw, 40px); }
.persona h4 { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--oxblood); }
.persona .who { font-size: 14px; color: var(--muted); margin: 4px 0 18px; }
.persona p { font-size: 15px; }
.persona .focus { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--teal); }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); background: var(--linen); border-radius: var(--radius); padding: clamp(24px, 4vw, 60px); }
.screen { display: flex; flex-direction: column; align-items: center; text-align: center; }
.screen .phone { width: min(100%, 250px); }
.screen h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-top: 18px; }
.screen p { font-size: 13px; color: var(--muted); max-width: 250px; }
.phone {
  aspect-ratio: 9 / 19; border-radius: 28px; background: #1b1a18; padding: 8px;
  box-shadow: 0 30px 50px -30px rgba(40,20,10,.5);
}
.phone .scr { width: 100%; height: 100%; border-radius: 21px; overflow: hidden; background: #f5f0e4; display: flex; flex-direction: column; font-size: 9px; text-align: left; }
.scr .bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 8px; }
.scr .bar b { font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--oxblood); }
.scr .bar i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--gold); }
.scr .feed { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px; }
.scr .item:first-child { grid-column: span 2; }
.scr .item:first-child img { aspect-ratio: 16/10; }
.scr .item img { aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; width: 100%; }
.scr .item b { display: block; font-weight: 500; margin-top: 3px; line-height: 1.2; }
.scr .item span { color: var(--muted); font-size: 8px; }
.scr .item .row { display: flex; justify-content: space-between; align-items: center; }
.scr .item em { font-style: normal; background: var(--teal); color: #fff; border-radius: 99px; padding: 1px 6px; font-size: 7px; }
.scr .twin { position: relative; margin: 0 10px; border-radius: 10px; overflow: hidden; }
.scr .twin img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.scr .twin .src { position: absolute; right: 6px; bottom: 6px; width: 42%; border: 2px solid #f5f0e4; border-radius: 6px; }
.scr .lbl { padding: 8px 12px 2px; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.scr .txt { padding: 0 12px; font-family: var(--serif); font-size: 13px; line-height: 1.2; }
.scr .score { margin: 10px; border-radius: 10px; background: var(--teal); color: #f5f0e4; padding: 12px; }
.scr .score b { font-family: var(--serif); font-size: 34px; font-weight: 500; display: block; line-height: 1; }
.scr .meter { margin: 6px 12px; }
.scr .meter div { height: 5px; background: #e2d8c4; border-radius: 99px; overflow: hidden; margin-top: 3px; }
.scr .meter div i { display: block; height: 100%; background: var(--oxblood); }
.scr .cta { margin: auto 10px 12px; background: var(--oxblood); color: #fff; text-align: center; border-radius: 99px; padding: 7px; letter-spacing: .1em; text-transform: uppercase; font-size: 8px; }
.system { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 3vw, 40px); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sw div { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); }
.sw b { display: block; font-weight: 500; font-size: 14px; margin-top: 8px; }
.sw span { font-size: 12px; color: var(--muted); display: block; line-height: 1.4; }
.type-spec { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.type-spec .big { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--oxblood); }
.type-spec .small { font-size: 16px; margin-top: 14px; }
.type-spec p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.type-spec .ui { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: #3b3834; }

/* Prev / next */
.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: clamp(50px, 7vw, 100px) var(--gutter) 0; padding: 30px 0; border-top: 1px solid var(--ink);
}
.pager a { display: block; }
.pager small { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pager span { font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); letter-spacing: .1em; text-transform: uppercase; }
.pager a:hover span { color: var(--oxblood); }
.pager .next { text-align: right; }

/* Research */
.page-head { padding: clamp(40px, 7vw, 100px) var(--gutter) clamp(30px, 4vw, 60px); max-width: 980px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 70px); line-height: 1.05; }
.page-head p { color: var(--muted); margin-top: 20px; max-width: 560px; }
.masonry { columns: 3 300px; column-gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); }
.masonry figure { break-inside: avoid; margin-bottom: clamp(16px, 2vw, 28px); }
.masonry img { width: 100%; border-radius: var(--radius); cursor: zoom-in; }
.masonry figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 100px); padding: clamp(30px, 5vw, 70px) var(--gutter); align-items: start; }
.about .pic { border-radius: var(--radius); overflow: hidden; position: sticky; top: 110px; }
.about h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; }
.about .lead { font-size: 18px; margin-top: 28px; color: #3b3834; }
.about .lead + .lead { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--ink); }
.facts h3 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; }
.facts li { list-style: none; font-size: 15px; color: #3b3834; }
.contact { margin: clamp(50px, 7vw, 100px) var(--gutter) 0; padding: clamp(40px, 6vw, 90px) 0; border-top: 1px solid var(--ink); text-align: center; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 72px); line-height: 1.05; }
.contact p { color: var(--muted); margin: 18px auto 30px; max-width: 460px; }
.btn { display: inline-block; padding: 13px 28px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; letter-spacing: .08em; transition: background .2s; }
.btn:hover { background: var(--oxblood); }

.site-footer { display: flex; justify-content: space-between; padding: 40px var(--gutter) 30px; font-size: 13px; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(251,250,247,.97); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 88vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { font-size: 13px; color: var(--muted); padding-top: 12px; text-align: center; }
.lightbox button { position: absolute; font-size: 38px; line-height: 1; padding: 16px; color: var(--ink); font-weight: 200; }
.lb-close { top: 10px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.page-enter { animation: pageIn .6s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-enter { animation: none; }
  .card .frame img { transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .intro, .project-head, .about, .blk.text, .system { grid-template-columns: 1fr; }
  .project-info, .about .pic { position: static; padding-top: 0; }
  .blk.trio, .blk.grid-3, .blk.grid-4 { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: 1fr; }
  .type-spec { border-left: 0; padding-left: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header { grid-template-columns: 1fr auto; row-gap: 10px; padding-top: 16px; padding-bottom: 12px; }
  .wordmark { font-size: 18px; }
  .nav { grid-column: 1 / -1; grid-row: 2; gap: 20px; font-size: 14px; }
  .icons { grid-column: 2; grid-row: 1; }
  .grid, .personas { grid-template-columns: 1fr; }
  .card.feature { grid-column: auto; }
  .card.feature .frame { aspect-ratio: 4 / 3; }
  .card .panels.n4 img:nth-child(n+3) { display: none; }
  .card .overlay { display: none; }
  .blk.pair, .blk.trio { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 4px; }
  .lightbox button.lb-prev, .lightbox button.lb-next { top: auto; bottom: 10px; transform: none; }
}

/* ===== Hero: the House of Talpur (vintage paper) ===== */
.hx { position: relative; height: 1250vh; --age: 1; --hint: 1; margin-top: -76px; --ink2: #3a2a1c; --sepia: #6b4a2a; --gold: #a88540; }
.hx-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--ink); }
.hx-paper { position: absolute; inset: 0; background: color-mix(in srgb, #e8d9bd calc(var(--age) * 100%), var(--bg)); }
.hx-paper::before { content: ""; position: absolute; inset: 0; opacity: calc(var(--age) * .7);
  background:
    radial-gradient(55% 45% at 15% 20%, rgba(150,105,55,.2), transparent 70%),
    radial-gradient(40% 35% at 85% 80%, rgba(120,80,40,.2), transparent 70%),
    radial-gradient(30% 25% at 70% 12%, rgba(160,120,70,.14), transparent 70%),
    radial-gradient(35% 30% at 30% 85%, rgba(140,100,60,.12), transparent 70%); }
.hx-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 20; background: radial-gradient(ellipse at center, transparent 58%, rgba(70,40,15,.38)); opacity: var(--age); }
.hx-grain { position: absolute; inset: -50%; pointer-events: none; z-index: 21; opacity: calc(.1 + var(--age) * .14); mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .22  0 0 0 0 .12  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* title card */
.hx-intro { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%); margin-top: 4vh; z-index: 10; }
.hx-intro .label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; animation: up 1s .1s both; }
.hx-intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 9vw, 150px); line-height: .95; letter-spacing: -.02em; color: var(--ink2); }
.hx-intro h1 i { font-style: normal; display: inline-block; animation: ink 1.2s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d) + 300ms); }
.hx-sub { margin-top: 26px; max-width: 460px; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.5vw, 22px); color: var(--sepia); animation: up 1.2s 1.3s both; }
@keyframes ink { from { opacity: 0; transform: translateY(.35em); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* I. lithographs */
.hx-print { position: absolute; left: 50%; top: 52%; margin: 0; z-index: 3; visibility: hidden; background: #f3e9d4; padding: clamp(10px,1.2vw,16px) clamp(10px,1.2vw,16px) clamp(34px,3.6vw,50px);
  box-shadow: 0 2px 0 rgba(0,0,0,.03), 0 40px 70px -35px rgba(60,35,10,.6); outline: 1px solid rgba(120,90,50,.25); outline-offset: -7px; will-change: transform, opacity; }
.hx-print img { display: block; width: min(30vw, 440px); height: auto; filter: sepia(.35) contrast(1.05); }
.hx-print figcaption { position: absolute; left: 0; right: 0; bottom: clamp(9px, 1.1vw, 15px); text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(12px, 1vw, 15px); color: var(--sepia); }

/* II. zoom-out wall */
.hx-wall { position: absolute; inset: 0; z-index: 4; visibility: hidden; }
.hx-grid { position: absolute; left: 50%; top: 50%; display: grid; grid-template-columns: repeat(7, min(12.4vw, 25vh)); gap: min(1.1vw, 14px); transform-origin: center center; }
.hx-tile { aspect-ratio: 4 / 5; overflow: hidden; background: #d8c6a2; box-shadow: 0 16px 30px -22px rgba(60,35,10,.7); }
.hx-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-tile.c { opacity: 1 !important; }
.hx-sharp { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 2; overflow: hidden; pointer-events: none; }
.hx-sharp img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* III. museum wall */
.hx-museum { position: absolute; inset: 0; z-index: 5; visibility: hidden; display: flex; align-items: center; }
.hx-track { display: flex; align-items: center; gap: clamp(30px, 4vw, 70px); padding-right: 10vw; will-change: transform; }
.hx-plaque { flex: none; width: min(26vw, 340px); padding-right: 2vw; }
.hx-plaque small, .hx-pair-head small { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.hx-plaque b, .hx-pair-head b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 58px); line-height: 1; color: var(--ink2); }
.hx-plaque span { display: block; margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: clamp(15px, 1.2vw, 18px); color: var(--sepia); }
.hx-piece { flex: none; margin: 0; transform: translateY(calc(var(--o) * 3vh + var(--d, 0) * var(--o) * 4vh)) rotate(calc(var(--d, 0) * var(--o) * 3deg)); }
.hx-mat { background: #f3e9d4; padding: clamp(10px, 1.2vw, 18px); box-shadow: 0 30px 50px -30px rgba(60,35,10,.65); outline: 1px solid rgba(120,90,50,.2); outline-offset: -6px; }
.hx-mat img { display: block; height: min(48vh, 480px); width: auto; max-width: min(46vw, 640px); object-fit: cover; }
.hx-piece figcaption { margin-top: 12px; font-family: var(--serif); font-size: clamp(14px, 1.1vw, 17px); color: var(--ink2); }
.hx-piece figcaption span { display: block; font-family: var(--sans); font-size: 12px; color: var(--sepia); margin-top: 2px; }
.hx-piece figcaption em { display: block; font-style: normal; font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }

/* IV. object to drawing */
.hx-pairs { position: absolute; inset: 0; z-index: 6; visibility: hidden; }
.hx-pair-head { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(26vw, 340px); }
.hx-pair { position: absolute; left: 60%; top: 52%; margin: 0; visibility: hidden; will-change: transform, opacity; }
.hx-pair-frame { position: relative; height: min(66vh, 640px); aspect-ratio: 4 / 5; background: #f3e9d4; padding: clamp(10px,1.2vw,16px); box-shadow: 0 40px 70px -35px rgba(60,35,10,.65); outline: 1px solid rgba(120,90,50,.25); outline-offset: -7px; }
.hx-pair-frame img { position: absolute; inset: clamp(10px,1.2vw,16px); width: calc(100% - 2 * clamp(10px,1.2vw,16px)); height: calc(100% - 2 * clamp(10px,1.2vw,16px)); object-fit: cover; }
.hx-pair-frame .b { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--w, 0)) * 100%) 0 0); }
.hx-wipe { position: absolute; top: 4%; bottom: 4%; left: calc(clamp(10px,1.2vw,16px) + (100% - 2 * clamp(10px,1.2vw,16px)) * var(--w, 0)); width: 1px; background: var(--gold); box-shadow: 0 0 12px rgba(168,133,64,.8); opacity: calc(1 - var(--w, 0) * var(--w, 0)); }
.hx-wipe::before { content: "✎"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; border-radius: 50%; background: #f3e9d4; border: 1px solid var(--gold); display: grid; place-items: center; font-size: 15px; color: var(--sepia); font-style: normal; }
.hx-pair figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hx-pair figcaption b { font-family: var(--serif); font-weight: 400; font-size: clamp(16px, 1.4vw, 21px); letter-spacing: 0; text-transform: none; color: var(--ink2); }

/* V. finale */
.hx-finale { position: absolute; inset: 0; z-index: 7; visibility: hidden; --f: 0; }
.hx-final { position: absolute; right: clamp(40px, 8vw, 150px); top: 50%; transform: translateY(-50%); margin: 0; height: min(78vh, 780px); aspect-ratio: 9 / 16;
  display: flex; overflow: hidden; background: #f3e9d4; padding: 0; box-shadow: 0 0 0 10px #f3e9d4, 0 0 0 11px rgba(168,133,64,.55), 0 60px 100px -40px rgba(60,35,10,.7); }
.hx-final span { position: relative; flex: 1; overflow: hidden; will-change: transform; }
.hx-final span img { position: absolute; top: 0; height: 100%; width: 1200%; max-width: none; left: calc(var(--i) * -100%); object-fit: cover; object-position: center 25%; }
.hx-final figcaption { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--sepia); opacity: var(--f); }
.hx-finale::before { content: ""; position: absolute; right: calc(clamp(40px, 8vw, 150px) + min(78vh, 780px) * 9 / 32); top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(168,133,64,.5), transparent); transform: scaleY(var(--f)); }
.hx-copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); max-width: 48vw; opacity: var(--f); }
.hx-copy .label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hx-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.2vw, 92px); line-height: .96; letter-spacing: -.02em; }
.hx-copy .l2 { display: inline-block; clip-path: inset(0 calc((1 - var(--f)) * 100%) 0 0); }
.hx-copy em { color: var(--oxblood); }

/* chrome */
.hx-cap { position: absolute; left: var(--gutter); top: clamp(92px, 14vh, 140px); z-index: 22; display: flex; gap: 14px; align-items: baseline; opacity: 0; }
.hx-cap.in { animation: capin .9s both; }
@keyframes capin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hx-cap b { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--oxblood); min-width: 34px; }
.hx-cap span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.hx-year { position: absolute; right: var(--gutter); bottom: clamp(26px, 5vh, 50px); z-index: 22; text-align: right; pointer-events: none; }
.hx-year small { display: block; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.hx-year span { font-family: var(--serif); font-size: clamp(54px, 7.4vw, 120px); line-height: .9; color: var(--sepia); font-variant-numeric: tabular-nums; }
.hx-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 22; opacity: var(--hint); text-align: center; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink2); }
.hx-hint i { display: block; width: 1px; height: 44px; margin: 12px auto 0; background: linear-gradient(var(--ink2), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hx-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14px; height: 1px; background: rgba(120,90,50,.2); z-index: 22; }
.hx-progress i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

.site-header { transition: background .4s, backdrop-filter .4s; }
body.on-hero .site-header { background: transparent; backdrop-filter: none; }

.intro-brief { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding-top: clamp(50px, 8vw, 110px); }
.intro-brief .hero-brief { grid-column: 2; padding-top: 0; }

.hx.still { height: 100vh; }
.hx.still .hx-grain, .hx.still .hx-hint i { animation: none; }

@media (max-width: 900px) {
  .hx { margin-top: -110px; height: 1000vh; }
  .hx-intro h1 { font-size: clamp(44px, 12vw, 70px); }
  .hx-print img { width: 58vw; }
  .hx-grid { grid-template-columns: repeat(7, 17vw); }
  .hx-plaque { width: 70vw; }
  .hx-mat img { height: 44vh; }
  .hx-pair-head { top: 170px; transform: none; width: auto; right: var(--gutter); }
  .hx-pair-head small { display: none; }
  .hx-pair-head b { font-size: 28px; }
  .hx-pair { left: 50%; top: 58%; }
  .hx-pair-frame { height: 50vh; }
  .hx-final { right: 50%; margin-right: calc(46vh * 9 / 32 * -1); height: 46vh; top: 40%; }
  .hx-finale::before, .hx-final figcaption { display: none; }
  .hx-mat img { max-width: 78vw; height: 38vh; }
  .hx-copy { top: auto; bottom: 90px; transform: none; max-width: none; right: var(--gutter); }
  .hx-copy h2 { font-size: clamp(36px, 10vw, 56px); }
  .hx-copy .label { display: none; }
  .hx-cap { top: 124px; }
  .hx-year span { font-size: 44px; }
  .intro-brief { grid-template-columns: 1fr; }
  .intro-brief .hero-brief { grid-column: 1; }
}

/* ===== Heritage Loop case study ===== */
.hl-ov { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); padding: clamp(28px, 4vw, 56px); background: #1f2826; color: #f3ede1; border-radius: var(--radius); }
.hl-ov-q span, .hl-ov-grid small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #d4af37; margin-bottom: 12px; }
.hl-ov-q p { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.15; }
.hl-ov-q em { color: #d4af37; }
.hl-ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-content: center; }
.hl-ov-grid div { border-top: 1px solid rgba(212,175,55,.35); padding-top: 12px; }
.hl-ov-grid small { margin-bottom: 4px; }
.hl-ov-grid b { font-weight: 400; font-size: 15px; }
.hl-gaps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.hl-gap { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.hl-gap img { height: 64px; width: auto; filter: brightness(.55) sepia(1) hue-rotate(-10deg); }
.hl-gap h4 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 14px 0 6px; color: var(--oxblood); }
.hl-gap p { font-size: 15px; color: #3b3834; }
.hl-journey { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.hl-journey li { padding: 18px 18px 0 0; position: relative; }
.hl-journey li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.hl-journey span { font-family: var(--serif); font-size: 30px; color: #008080; }
.hl-journey b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; margin-top: 6px; }
.hl-journey small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 2px 0 8px; }
.hl-journey p { font-size: 14px; color: #3b3834; }
.hl-lede { color: var(--muted); max-width: 640px; margin: -8px 0 20px; }
.hl-twin { background: #1f2826; border-radius: var(--radius); padding: clamp(18px, 3vw, 36px); }
.hl-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(18px, 3vw, 30px); }
.hl-tabs button { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border: 1px solid rgba(212,175,55,.4); border-radius: 999px; color: #f3ede1; font-size: 14px; transition: background .25s; }
.hl-tabs button img { height: 26px; width: 26px; object-fit: contain; }
.hl-tabs button[aria-selected="true"], .hl-tabs button:hover { background: rgba(212,175,55,.18); border-color: #d4af37; }
.hl-chain { display: flex; align-items: center; gap: clamp(6px, 1vw, 14px); }
.hl-chain figure { flex: 1; margin: 0; min-width: 0; }
.hl-chain figure div { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: #f3ede1; }
.hl-chain figure img { width: 100%; height: 100%; object-fit: cover; }
.hl-chain figcaption { color: #f3ede1; font-size: 13px; margin-top: 8px; }
.hl-chain figcaption em { display: block; font-style: normal; font-size: 10px; letter-spacing: .2em; color: #d4af37; }
.hl-arrow { color: #d4af37; font-style: normal; font-size: 18px; flex: none; }
.hl-chain.play figure { animation: chainIn .7s both; animation-delay: calc(var(--j) * 110ms); }
@keyframes chainIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hl-ui { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.hl-ui-card { border-radius: var(--radius); padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--line); background: #fff; }
.hl-ui-card.dark { background: #1f2826; color: #f3ede1; border-color: #1f2826; }
.hl-ui-card h4 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 18px 0 6px; }
.hl-ui-card p { font-size: 14px; opacity: .85; }
.hl-mandala { position: relative; width: 150px; height: 150px; margin: 0 auto; display: grid; place-items: center; }
.hl-mandala img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: spin 24s linear infinite; }
.hl-mandala span { position: relative; background: #008080; color: #fff; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hl-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 150px; align-items: center; }
.hl-icons img { width: 100%; height: 90px; object-fit: contain; }
.hl-bgdemo { position: relative; height: 150px; border-radius: 10px; overflow: hidden; background: #F5F5DC; display: grid; place-items: center; }
.hl-bgdemo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.hl-bgdemo b { position: relative; font-family: var(--serif); font-weight: 500; font-size: 22px; color: #800020; text-align: center; padding: 0 16px; }
.hl-next { max-width: 760px; }
.hl-next p { color: #3b3834; }
.hl-next ol { margin: 14px 0 0 20px; color: #3b3834; }
.hl-next li + li { margin-top: 6px; }
@media (max-width: 900px) {
  .hl-ov, .hl-gaps, .hl-ui { grid-template-columns: 1fr; }
  .hl-journey { grid-template-columns: 1fr 1fr; }
  .hl-journey li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hl-chain { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .hl-chain figure { flex: 0 0 42%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .hl-mandala img, .hl-chain.play figure { animation: none; } }
.hl-chain[hidden] { display: none; }
.hl-gap img { filter: brightness(0) saturate(100%) invert(14%) sepia(60%) saturate(2400%) hue-rotate(330deg); height: 70px; }

/* Heritage Loop: openable UI cards */
button.hl-ui-card { text-align: left; font: inherit; cursor: pointer; transition: transform .3s, box-shadow .3s; position: relative; }
button.hl-ui-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(0,0,0,.5); }
.hl-open { display: inline-block; margin-top: 14px; font-style: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #d4af37; }
.hl-ui-card:not(.dark) .hl-open { color: var(--oxblood); }
.hl-dlg { border: 0; padding: 0; border-radius: 16px; width: min(1100px, 94vw); max-height: 90vh; background: #fbfaf7; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
.hl-dlg::backdrop { background: rgba(20,24,23,.7); backdrop-filter: blur(4px); }
.hl-dlg-x { position: sticky; top: 0; float: right; margin: 10px 14px 0 0; font-size: 32px; line-height: 1; padding: 6px 10px; z-index: 2; }
.hl-dlg-body { padding: clamp(24px, 4vw, 48px); }
.hl-dlg-body > small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hl-dlg-body > h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); margin: 6px 0 10px; }
.hl-dlg-body > p { max-width: 680px; color: #3b3834; margin-bottom: 26px; }
.hl-dlg-body figure { margin: 0; }
.hl-dlg-body figure img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }
.hl-dlg-body figure.paper img { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 6px; }
.hl-dlg-body figure.ink { background: #1f2826; border-radius: 10px; display: grid; place-items: center; padding: 10%; }
.hl-dlg-body figure.ink img { object-fit: contain; border-radius: 0; }
.hl-dlg-body figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.hl-dlg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hl-dlg-row figure > img, .hl-dlg-row figure.ink { aspect-ratio: 1; }
.hl-try { margin-top: 30px; display: flex; align-items: center; gap: 24px; background: #1f2826; color: #f3ede1; border-radius: 12px; padding: 22px; }
.hl-scan { position: relative; width: 120px; height: 120px; flex: none; display: grid; place-items: center; }
.hl-scan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: spin 24s linear infinite; }
.hl-scan.go img { animation-duration: 1.2s; }
.hl-scan span { position: relative; background: #008080; color: #fff; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.hl-try-out { font-family: var(--serif); font-size: 20px; }
.hl-try-out b { color: #d4af37; font-weight: 500; }
.hl-dlg-icons { display: grid; gap: 14px; }
.hl-ic-row { display: grid; grid-template-columns: 110px 110px 110px 1fr; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hl-ic-row figure { aspect-ratio: 1; }
.hl-ic-row b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.hl-ic-row span { font-size: 14px; color: var(--muted); }
.hl-dlg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hl-dlg-grid figure { aspect-ratio: 3 / 4; }
.hl-dlg-demo { position: relative; margin-top: 24px; height: 220px; border-radius: 12px; overflow: hidden; background: #F5F5DC; display: grid; place-items: center; }
.hl-dlg-demo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.hl-dlg-demo div { position: relative; background: rgba(255,255,255,.85); padding: 18px 26px; border-radius: 10px; text-align: center; }
.hl-dlg-demo small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #008080; }
.hl-dlg-demo b { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; color: #800020; }
.hl-dlg-demo span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .hl-dlg-row, .hl-dlg-grid { grid-template-columns: 1fr 1fr; }
  .hl-ic-row { grid-template-columns: repeat(3, 1fr); }
  .hl-ic-row > div { grid-column: 1 / -1; }
  .hl-try { flex-direction: column; text-align: center; }
}
.hl-dlg-row { align-items: start; }
.hl-dlg-row figure > img { aspect-ratio: 1; height: auto; }
.hl-dlg-body figure.ink { aspect-ratio: 1; overflow: hidden; padding: 0; }
.hl-dlg-body figure.ink img { width: 78%; height: 78%; }
.hl-dlg-body figure.ink figcaption { display: none; }
.hl-ic-row figure { aspect-ratio: 1; overflow: hidden; }
.hl-ic-row figure img { height: 100%; }

/* About: photo collage */
.about.me { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 6vw, 90px); }
.collage { columns: 3; column-gap: 12px; }
.collage figure { margin: 0 0 12px; break-inside: avoid; border-radius: 14px; overflow: hidden; animation: colIn .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
.collage img { width: 100%; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.collage figure:hover img { transform: scale(1.04); }
@keyframes colIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.me-text h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 68px); letter-spacing: .02em; text-transform: uppercase; line-height: 1; margin-bottom: 26px; }
.me-text .lead { font-family: var(--serif); font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: #2e2b28; margin-top: 16px; }
.me-text u, .me-text a.u { text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.me-text a.u { color: var(--oxblood); }
.me-text .facts { margin-top: 36px; }
@media (max-width: 900px) { .about.me { grid-template-columns: 1fr; } .collage { columns: 2; } }
@media (prefers-reduced-motion: reduce) { .collage figure { animation: none; } }

/* Contact page */
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); padding: clamp(50px, 9vw, 140px) clamp(16px, 9vw, 160px) clamp(60px, 9vw, 130px); align-items: start; }
.cp-left h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5vw, 76px); line-height: .98; text-transform: uppercase; letter-spacing: -.005em; margin-bottom: clamp(28px, 3vw, 44px); }
.cp-left p { font-family: var(--serif); font-size: clamp(18px, 1.4vw, 22px); color: #3b3834; margin-top: 12px; }
.cp-left a:hover { color: var(--oxblood); }
.cp-icons { margin-top: clamp(40px, 6vw, 90px) !important; display: flex; gap: 16px; }
.cp-form { display: grid; gap: 22px; font-family: var(--serif); }
.cp-form fieldset { border: 0; padding: 0; margin: 0; }
.cp-form legend { font-size: 20px; margin-bottom: 10px; }
.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-form label { display: grid; gap: 8px; font-size: 18px; }
.cp-form label span { font-size: 15px; color: var(--muted); }
.cp-form input, .cp-form textarea { font: inherit; font-size: 16px; padding: 14px; border: 1px solid #3b3834; background: #fbfaf7; border-radius: 0; color: var(--ink); width: 100%; }
.cp-form input:focus, .cp-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.cp-send { justify-self: start; font-family: var(--serif); font-size: 20px; padding: 14px 32px; border-radius: 999px; background: #a89484; color: #fff; transition: background .25s; }
.cp-send:hover { background: var(--oxblood); }
.cp-send:disabled { opacity: .6; }
.cp-status { font-size: 16px; color: var(--teal); min-height: 1em; }
.cp-status a { text-decoration: underline; }
@media (max-width: 800px) { .contact-page { grid-template-columns: 1fr; } .cp-row { grid-template-columns: 1fr; } }

/* Footer band */
.site-footer { display: block; padding: 0; margin-top: clamp(40px, 6vw, 80px); background: #d6d2cb; color: var(--ink); }
.sf-inner { padding: clamp(50px, 7vw, 90px) clamp(16px, 9vw, 160px) clamp(30px, 4vw, 50px); display: grid; gap: 22px; justify-items: start; }
.sf-name { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 52px); text-transform: uppercase; line-height: 1; }
.sf-inner small { font-size: 12px; color: #5c5750; letter-spacing: .04em; }
.cp-form label b { font-weight: 400; }

/* ===== Research ===== */
.rs { --rs-ink: #1b1a18; }
.rs-kicker { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; color: var(--oxblood); margin-bottom: 18px; }
.rs-hero { padding: clamp(50px, 9vw, 130px) var(--gutter) clamp(30px, 4vw, 50px); }
.rs-hero small { display: block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.rs-split { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 11vw, 190px); line-height: .88; letter-spacing: -.03em; }
.rs-split i { font-style: normal; display: inline-block; animation: rsUp 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d) + 150ms); }
@keyframes rsUp { from { opacity: 0; transform: translateY(.5em) rotate(4deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.rs-hero > p { max-width: 620px; margin-top: 28px; font-family: var(--serif); font-size: clamp(19px, 1.6vw, 24px); color: #3b3834; animation: rsFade 1s .9s both; }
@keyframes rsFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rs-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--ink); }
.rs-stats div { padding: 18px 18px 0 0; }
.rs-stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.rs-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.4vw, 70px); line-height: 1; font-variant-numeric: tabular-nums; }
.rs-stats span { font-size: 12px; letter-spacing: .08em; color: var(--muted); }

.rs-marquee { overflow: hidden; padding: clamp(20px, 3vw, 40px) 0; }
.rs-marquee div { display: flex; gap: 14px; width: max-content; animation: rsMarq 60s linear infinite; }
.rs-marquee img { height: clamp(160px, 22vw, 300px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; filter: sepia(.25); transition: filter .5s; }
.rs-marquee img:hover { filter: none; }
.rs-marquee:hover div { animation-play-state: paused; }
@keyframes rsMarq { to { transform: translateX(-50%); } }

.rs-method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); padding: clamp(40px, 6vw, 90px) var(--gutter); }
.rs-sticky { position: sticky; top: 110px; height: calc(100vh - 150px); }
.rs-frames { position: relative; height: 100%; border-radius: 16px; overflow: hidden; background: #efe6d4; }
.rs-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); clip-path: inset(0 0 100% 0); transition: opacity .9s, transform 1.4s cubic-bezier(.2,.7,.2,1), clip-path 1s cubic-bezier(.7,0,.2,1); }
.rs-frames img.on { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.rs-count { position: absolute; left: 18px; bottom: 16px; color: #fff; font-size: 13px; letter-spacing: .1em; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.rs-count b { font-family: var(--serif); font-weight: 400; font-size: 34px; }
.rs-steps { padding: 20vh 0 30vh; }
.rs-steps article { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; opacity: .18; transform: translateX(20px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
.rs-steps article.on { opacity: 1; transform: none; }
.rs-steps span { font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.rs-steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 96px); line-height: 1; margin: 8px 0 18px; }
.rs-steps p { font-family: var(--serif); font-size: clamp(18px, 1.5vw, 22px); color: #3b3834; max-width: 480px; }

.rs-atlas { height: calc(var(--n) * 55vh + 100vh); position: relative; background: #1f1a15; color: #efe4cc; }
.rs-atlas-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.rs-atlas-head { padding: 90px var(--gutter) 24px; }
.rs-atlas-head .rs-kicker { color: #c9a45c; }
.rs-atlas-head p { color: rgba(239,228,204,.7); font-family: var(--serif); font-size: 20px; }
.rs-track { display: flex; gap: clamp(20px, 3vw, 44px); padding-left: var(--gutter); will-change: transform; }
.rs-room { flex: none; width: min(34vw, 460px); margin: 0; }
.rs-room-img { height: min(46vh, 480px); overflow: hidden; border-radius: 14px; }
.rs-room-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); will-change: transform; }
.rs-room figcaption { padding-top: 14px; }
.rs-room em { font-style: normal; font-size: 11px; letter-spacing: .2em; color: #c9a45c; }
.rs-room b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 2px 0 6px; }
.rs-room span { display: block; font-size: 14px; color: rgba(239,228,204,.7); max-width: 400px; }
.rs-pal { display: flex; gap: 6px; margin-top: 12px; }
.rs-pal i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(239,228,204,.25); transition: transform .3s; }
.rs-pal i:hover { transform: scale(1.3); }
.rs-atlas-bar { margin: 28px var(--gutter) 0; height: 1px; background: rgba(239,228,204,.2); }
.rs-atlas-bar i { display: block; height: 100%; background: #c9a45c; transform-origin: left; transform: scaleX(0); }

.rs-archive { padding: clamp(60px, 8vw, 120px) var(--gutter); }
.rs-archive-head p { font-family: var(--serif); font-size: 20px; color: #3b3834; }
.rs-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.rs-filters button { padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; letter-spacing: .06em; text-transform: capitalize; transition: background .25s, color .25s; }
.rs-filters button[aria-pressed="true"], .rs-filters button:hover { background: var(--ink); color: var(--bg); }
.rs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.rs-spec { margin: 0; cursor: pointer; transition: opacity .4s; }
.rs-spec.out { display: none; }
.rs-spec-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: #efe6d4; }
.rs-spec-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.rs-spec-img .sk { object-fit: contain; background: #fbf8f1; padding: 6%; clip-path: circle(0% at 50% 50%); transition: clip-path .8s cubic-bezier(.7,0,.2,1); }
.rs-spec:hover .rs-spec-img img:first-child { transform: scale(1.06); }
.rs-spec:hover .sk, .rs-spec:focus .sk, .rs-spec.flip .sk { clip-path: circle(75% at 50% 50%); }
.rs-spec figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; }
.rs-spec b { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.rs-spec figcaption span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); white-space: nowrap; padding-top: 5px; }

.rs-history { padding: clamp(60px, 8vw, 120px) var(--gutter); background: #ece2cc; }
.rs-big { font-family: var(--serif); font-size: clamp(26px, 3vw, 46px); line-height: 1.2; max-width: 1000px; }
.rs-litho { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 36px); margin-top: clamp(40px, 6vw, 80px); }
.rs-litho figure { margin: 0; background: #f6eedc; padding: 14px 14px 44px; box-shadow: 0 30px 50px -30px rgba(60,35,10,.55); transform: translateY(var(--y, 0)) rotate(calc((var(--k) - 1) * 1.5deg)); transition: transform .2s linear; position: relative; }
.rs-litho img { width: 100%; filter: sepia(.35); }
.rs-litho figcaption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--serif); font-style: italic; color: var(--sepia, #6b4a2a); }
.rs-credit { margin-top: 30px; font-size: 12px; color: var(--muted); }

.rs-findings { padding: clamp(60px, 8vw, 120px) var(--gutter); }
.rs-find { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.rs-find article { padding: 22px 22px 0 0; transition-delay: calc(var(--k) * 120ms); }
.rs-find article + article { padding-left: 22px; border-left: 1px solid var(--line); }
.rs-find span { font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.rs-find h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 44px); margin: 6px 0 10px; }
.rs-find p { font-size: 15px; color: #3b3834; }

@media (max-width: 900px) {
  .rs-stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .rs-stats div + div { border-left: 0; padding-left: 0; }
  .rs-method { grid-template-columns: 1fr; }
  .rs-sticky { top: 100px; height: 45vh; z-index: 2; }
  .rs-steps { padding: 10vh 0 20vh; }
  .rs-steps article { min-height: 50vh; }
  .rs-room { width: 78vw; }
  .rs-grid, .rs-find { grid-template-columns: 1fr 1fr; }
  .rs-find article + article { border-left: 0; padding-left: 0; }
  .rs-litho { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-split i, .rs-hero > p, .rs-marquee div { animation: none; }
  .rs-frames img, .rs-steps article { transition: none; }
}

.rs-split .w { display: inline-block; white-space: nowrap; }
.rs-step-img { display: none; }
.rs-grid > * { min-width: 0; }
@media (max-width: 900px) {
  .rs-sticky { display: none; }
  .rs-steps { padding: 0; }
  .rs-steps article { min-height: 0; padding: 30px 0; opacity: 1; transform: none; }
  .rs-step-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
  .rs-spec figcaption { flex-direction: column; gap: 2px; }
  .rs-spec figcaption span { white-space: normal; padding-top: 0; }
  .rs-spec b { font-size: 16px; }
}

/* ===== Show every image whole (no cropping) ===== */
.blk.pair, .blk.trio { align-items: start; }
.blk.pair img, .blk.trio img { aspect-ratio: auto !important; height: auto; object-fit: contain; }
.blk[class*="grid-"] img, .blk.tall img { object-fit: contain !important; background: #f3ede1; }
.blk[class*="grid-"] .contain img { background: #fff; }
.rs-frames { background: #f3ede1; }
.rs-frames img { object-fit: contain; }
.rs-step-img { object-fit: contain !important; background: #f3ede1; aspect-ratio: auto !important; height: auto; }
.rs-room-img { background: #2a231c; }
.rs-room-img img { object-fit: contain; transform: none !important; }
.rs-spec-img img:first-child { object-fit: contain; background: #efe6d4; }
.hl-chain figure img { object-fit: contain; }
.hl-dlg-row figure > img, .hl-ic-row figure img { object-fit: contain; background: #f3ede1; }
.project-head .cover img { object-fit: contain; }
.masonry img { object-fit: contain; }

/* ===== Full-bleed: no sideways overflow, no white edges ===== */
html { background: var(--bg); overflow-x: clip; }
body { overflow-x: clip; width: 100%; min-height: 100vh; min-height: 100svh; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
.grid > *, .intro > *, .project-head > *, .about > *, .contact-page > *, .rs-method > *, .hl-ov > * { min-width: 0; }
.card .meta { flex-wrap: wrap; }
.card h2 { overflow-wrap: anywhere; }
@media (max-width: 640px) { .card .meta small { white-space: normal; } .card h2 { font-size: 17px; letter-spacing: .08em; } }
.hx { width: 100%; }

/* ===== Colour flow on the homepage ===== */
@property --flow { syntax: "<color>"; inherits: true; initial-value: #fbfaf7; }
html { transition: --flow 1.4s cubic-bezier(.4,0,.2,1); }
body.flowing { background: var(--flow); }
body.flowing .intro-brief, body.flowing .grid { background: transparent; }
body.flowing::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 60% at 20% 30%, color-mix(in srgb, var(--flow) 55%, #fff) 0%, transparent 70%),
              radial-gradient(70% 60% at 85% 80%, color-mix(in srgb, var(--flow) 80%, #000 6%) 0%, transparent 70%); opacity: .9; }
body.flowing .site-header { background: color-mix(in srgb, var(--flow) 90%, transparent); }
body.flowing.on-hero .site-header { background: transparent; }
body.flowing .card .frame { background: color-mix(in srgb, var(--flow) 70%, #fff); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--flow) 40%, #000); }
body.flowing .intro-brief .translate { border-top-color: color-mix(in srgb, var(--flow) 40%, #000); }
.hx-paper { background: color-mix(in srgb, #e8d9bd calc(var(--age) * 100%), #e8d9bd) !important; }

/* ===== Work stack (cinematic project reveal) ===== */
.ws { position: relative; }
.ws-item { position: relative; height: 230vh; --open: 0; --enter: 0; --leave: 0; }
.ws-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  transform: scale(calc(1 - var(--leave) * .08)); transform-origin: center 30%; filter: brightness(calc(1 - var(--leave) * .45)); }
.ws-frame { position: absolute; inset: 0; display: block; overflow: hidden; background: #1a1612;
  clip-path: inset(calc((1 - var(--open)) * 22%) calc((1 - var(--open)) * 30%) calc((1 - var(--open)) * 22%) calc((1 - var(--open)) * 30%) round calc((1 - var(--open)) * 28px)); }
.ws-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(38px) saturate(1.15) brightness(.62); transform: scale(calc(1.2 - var(--open) * .1)); }
.ws-img { position: absolute; left: 50%; top: 50%; max-width: 88%; max-height: 84%; width: auto; height: auto; object-fit: contain;
  transform: translate(-50%, -50%) scale(calc(1.25 - var(--open) * .25)); box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); border-radius: 6px; }
.ws-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,6,.78) 0%, rgba(10,8,6,.1) 42%, transparent 60%); opacity: var(--open); }
.ws-meta { position: absolute; left: clamp(20px, 5vw, 80px); right: clamp(20px, 5vw, 80px); bottom: clamp(36px, 7vh, 80px); color: #f6efe3; pointer-events: none; z-index: 2; }
.ws-n { display: block; font-family: var(--serif); font-size: clamp(16px, 1.4vw, 22px); letter-spacing: .1em; opacity: calc(var(--open) * 1); }
.ws-n i { font-style: normal; opacity: .55; }
.ws-title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.6vw, 150px); line-height: .92; letter-spacing: -.02em; margin: 8px 0 14px; }
.ws-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.ws-title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.ws-on .ws-title .w > span { transform: none; }
.ws-on .ws-title .w:nth-child(2) > span { transition-delay: .06s; } .ws-on .ws-title .w:nth-child(3) > span { transition-delay: .12s; } .ws-on .ws-title .w:nth-child(4) > span { transition-delay: .18s; }
.ws-sub { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.4vw, 22px); opacity: 0; transform: translateY(12px); transition: opacity .8s .25s, transform .8s .25s; }
.ws-sub span { font-style: normal; font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; align-self: center; }
.ws-on .ws-sub { opacity: 1; transform: none; }
.ws-cta { pointer-events: auto; display: inline-flex; gap: 10px; margin-top: 20px; padding: 12px 22px; border: 1px solid rgba(246,239,227,.6); border-radius: 999px; color: #f6efe3; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px); transition: opacity .8s .4s, transform .8s .4s, background .3s, color .3s; }
.ws-on .ws-cta { opacity: 1; transform: none; }
.ws-cta:hover { background: #f6efe3; color: #1a1612; }
.ws-cta b { font-weight: 400; transition: transform .3s; } .ws-cta:hover b { transform: translateX(4px); }
@media (max-width: 700px) {
  .ws-item { height: 190vh; }
  .ws-frame { clip-path: inset(calc((1 - var(--open)) * 16%) calc((1 - var(--open)) * 10%) round calc((1 - var(--open)) * 20px)); }
  .ws-img { max-width: 92%; max-height: 64%; top: 42%; }
  .ws-title { font-size: clamp(38px, 12vw, 60px); }
}
@media (prefers-reduced-motion: reduce) { .ws-item { height: 100vh; } .ws-title .w > span, .ws-sub, .ws-cta { transition: none; } }
.ws-title .w { padding-bottom: .14em; margin-bottom: -.06em; }
@media (max-width: 700px) {
  .ws-img { max-height: 50%; top: 35%; }
  .ws-title { line-height: 1; margin: 6px 0 10px; }
  .ws-meta { bottom: 28px; }
}

/* ===== Project pages: cinematic motion ===== */
.pj { --h: 0; }
.pj-hero { position: relative; height: 100vh; height: 100svh; margin-top: -76px; overflow: hidden; background: #15110d; color: #f6efe3; }
.pj-hero-media { position: absolute; inset: 0; transform: scale(calc(1 + var(--h) * .08)); }
.pj-bg { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(44px) brightness(.5) saturate(1.2); }
.pj-img { position: absolute; left: 62%; top: 52%; max-width: 58%; max-height: 80%; width: auto; height: auto; transform: translate(-50%, calc(-50% + var(--h) * 60px)) scale(calc(1.06 - var(--h) * .06));
  box-shadow: 0 60px 120px -50px rgba(0,0,0,.9); border-radius: 4px; animation: pjImg 1.6s cubic-bezier(.2,.8,.2,1) both; cursor: zoom-in; }
@keyframes pjImg { from { opacity: 0; transform: translate(-50%, -44%) scale(1.12); filter: blur(10px); } }
.pj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,9,7,.78) 0%, rgba(12,9,7,.35) 45%, transparent 70%); pointer-events: none; }
.pj-hero-text { position: absolute; left: clamp(20px, 5vw, 80px); bottom: clamp(60px, 12vh, 140px); z-index: 2; max-width: min(620px, 46vw); opacity: calc(1 - var(--h) * 1.6); transform: translateY(calc(var(--h) * -80px)); }
.pj-kicker { display: block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold, #c9a45c); margin-bottom: 16px; animation: rise .9s .2s both; }
.pj-title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6.6vw, 118px); line-height: .92; letter-spacing: -.02em; }
.pj-title i { font-style: normal; display: inline-block; animation: pjChar 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--k) * 32ms + 250ms); }
@keyframes pjChar { from { opacity: 0; transform: translateY(.6em) rotate(6deg); filter: blur(6px); } }
.pj-sub { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 28px); margin-top: 16px; opacity: .9; animation: rise 1s .9s both; }
.pj-tags { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin-top: 10px; animation: rise 1s 1.1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.pj-scroll { position: absolute; right: clamp(20px, 5vw, 80px); bottom: 40px; z-index: 2; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; text-align: center; opacity: calc(.8 - var(--h) * 2); }
.pj-scroll i { display: block; width: 1px; height: 54px; margin: 10px auto 0; background: linear-gradient(#f6efe3, transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }

.pj-statement { padding: clamp(80px, 14vh, 180px) clamp(20px, 8vw, 160px); background: var(--tone); }
.pj-statement small { display: block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--oxblood); margin-bottom: 26px; }
.pj-lit { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 58px); line-height: 1.22; letter-spacing: -.01em; max-width: 1300px; }
.pj-lit span { opacity: .14; transition: opacity .5s ease; }
.pj-lit span.on { opacity: 1; }

.pj-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 var(--gutter); margin: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); border-top: 1px solid var(--ink); }
.pj-fact { padding: 26px 26px 0 0; opacity: 0; transform: translateY(40px); transition: opacity 1s, transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--n) * 140ms); }
.pj-fact + .pj-fact { padding-left: 26px; border-left: 1px solid var(--line); }
.pj-fact.pj-in { opacity: 1; transform: none; }
.pj-fact span { font-family: var(--serif); font-size: 42px; color: var(--oxblood); line-height: 1; }
.pj-fact h3 { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin: 14px 0 10px; }
.pj-fact p { font-family: var(--serif); font-size: clamp(17px, 1.25vw, 20px); line-height: 1.5; color: #3b3834; }
.pj-note { margin: 0 var(--gutter) 40px; }

.pj-blocks .blk.reveal { opacity: 1; transform: none; }
.pj-reveal { clip-path: inset(100% 0 0 0 round 14px); transition: clip-path 1.3s cubic-bezier(.7,0,.2,1); transition-delay: var(--d); }
.pj-reveal img { transform: translateY(var(--py, 0)) scale(1.12); transition: transform 1.6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d); }
.pj-reveal.pj-in { clip-path: inset(0 0 0 0 round 14px); }
.pj-reveal.pj-in img { transform: translateY(var(--py, 0)) scale(1); transition: transform .2s linear; }
.pj-blocks .blk.step { opacity: 0; transform: translateX(-30px); transition: opacity .9s, transform .9s cubic-bezier(.2,.8,.2,1); }
.pj-blocks .blk.step.pj-in { opacity: 1; transform: none; }
.pj-blocks .blk.step span { display: inline-block; transform: scale(.6); transition: transform 1s cubic-bezier(.2,1.4,.3,1) .15s; }
.pj-blocks .blk.step.pj-in span { transform: none; }

.pj-next { position: relative; display: block; height: 80vh; margin-top: clamp(80px, 10vw, 140px); overflow: hidden; background: #15110d; color: #f6efe3; opacity: 0; transition: opacity 1.2s; }
.pj-next.pj-in { opacity: 1; }
.pj-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(1.1); transform: scale(1.08); transition: transform 1.6s cubic-bezier(.2,.8,.2,1), filter .8s; }
.pj-next:hover img { transform: scale(1); filter: brightness(.6); }
.pj-next-in { position: absolute; left: clamp(20px, 5vw, 80px); bottom: clamp(40px, 10vh, 100px); }
.pj-next-in small { display: block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #c9a45c; margin-bottom: 14px; }
.pj-next-in b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 120px); line-height: .95; }
.pj-next-in em { display: block; font-family: var(--serif); margin-top: 12px; font-size: 22px; opacity: .85; }
.pj-pager { margin-top: 0; }

@media (max-width: 800px) {
  .pj-hero { margin-top: -110px; }
  .pj-img { left: 50%; top: 40%; max-width: 86%; max-height: 52%; }
  .pj-hero::after { background: linear-gradient(0deg, rgba(12,9,7,.85) 0%, rgba(12,9,7,.3) 45%, transparent 65%); }
  .pj-hero-text { max-width: none; right: 20px; bottom: 60px; }
  .pj-title { font-size: clamp(40px, 11vw, 64px); }
  .pj-facts { grid-template-columns: 1fr; }
  .pj-fact + .pj-fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
  .pj-next { height: 60vh; }
}
@media (prefers-reduced-motion: reduce) {
  .pj-img, .pj-title i, .pj-sub, .pj-tags, .pj-kicker { animation: none; }
  .pj-reveal, .pj-reveal img, .pj-fact, .pj-blocks .blk.step { transition: none; clip-path: none; opacity: 1; transform: none; }
  .pj-lit span { opacity: 1; }
}

/* ===== Detail tour ===== */
.tour { position: relative; height: calc(var(--n) * 90vh + 60vh); margin-top: clamp(20px, 4vw, 60px); --z: 0; }
.tour-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #120e0b; color: #f6efe3; }
.tour-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(50px) brightness(.4) saturate(1.2); transform: scale(calc(1.05 + var(--z) * .15)); }
.tour-box { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); overflow: visible; }
.tour-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; box-shadow: 0 50px 100px -40px rgba(0,0,0,.9); }
.tour-lens { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 52%, transparent 55%, rgba(10,8,6,.75) 100%); opacity: calc(.35 + var(--z) * .9); }
.tour-kicker { position: absolute; left: clamp(20px, 5vw, 80px); top: clamp(96px, 14vh, 130px); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #c9a45c; }
.tour-cap { position: absolute; left: clamp(20px, 5vw, 80px); bottom: clamp(40px, 9vh, 90px); width: min(420px, 80vw); height: 180px; }
.tour-c { position: absolute; left: 0; bottom: 0; padding: 22px 24px; background: rgba(18,14,11,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(246,239,227,.14); border-radius: 14px;
  opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1); }
.tour-c.on { opacity: 1; transform: none; }
.tour-c em { display: block; font-style: normal; font-size: 11px; letter-spacing: .2em; color: #c9a45c; margin-bottom: 8px; }
.tour-c b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; margin-bottom: 8px; }
.tour-c span { display: block; font-size: 14px; line-height: 1.5; opacity: .85; }
.tour-dots { position: absolute; right: clamp(20px, 5vw, 80px); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(246,239,227,.28); transition: background .4s, transform .4s; }
.tour-dots i.on { background: #c9a45c; transform: scale(1.4); }
@media (max-width: 700px) {
  .tour-box { top: 40%; }
  .tour-cap { bottom: 28px; right: 20px; width: auto; }
  .tour-c { right: 0; padding: 16px 18px; }
  .tour-dots { right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .tour { height: auto; } .tour-stage { position: relative; } }

/* ---------- Editorial spiral ---------- */
.sp { position: relative; }
.sp-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sp-ring { position: absolute; inset: 0; }
.sp-card { position: absolute; left: 50%; top: 50%; margin: 0; aspect-ratio: 1 / var(--ar); overflow: hidden; background: #0001; box-shadow: 0 10px 30px -18px #0006; will-change: transform, opacity; opacity: 0; }
.sp-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-feat img { object-fit: contain; }
.sp-title { position: absolute; left: 50%; top: 50%; margin: 0; text-align: center; font-family: "Jost", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; font-size: clamp(22px, 4.2vmin, 46px); color: #1b1416; opacity: 0; pointer-events: none; }
.sp-top, .sp-foot { position: absolute; left: 4vw; right: 4vw; display: flex; justify-content: space-between; gap: 2rem; font: 400 10px/1.3 "Jost", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #1b1416aa; text-align: center; }
.sp-top { top: 86px; text-align: left; } .sp-top span:last-child, .sp-foot span:last-child { text-align: right; } .sp-foot { bottom: 4vh; }
.sp-cap { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); z-index: 6; width: min(92vw, 460px); pointer-events: none; }
.sp-c { position: absolute; left: 0; right: 0; bottom: 0; padding: .85rem 1.1rem; background: #fffd; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .45s; display: grid; gap: .25rem; }
.sp-c.on { opacity: 1; transform: none; }
.sp-c em { font: 400 10px "Jost", sans-serif; letter-spacing: .16em; text-transform: uppercase; font-style: normal; opacity: .6; }
.sp-c span { font: 400 1.05rem/1.35 "Cormorant Garamond", serif; }
@media (max-width: 600px) { .sp-top { top: 72px; } }
/* spiral: colour of the dress floods the white space */
.sp-stage { --c: #cfa; }
.sp-bg { position: absolute; inset: 0; opacity: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 90% at 0% 50%, color-mix(in srgb, var(--c) 70%, transparent), transparent 70%),
    radial-gradient(60% 90% at 100% 50%, color-mix(in srgb, var(--c) 70%, transparent), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%),
    color-mix(in srgb, var(--c) 22%, #fbfaf7);
  transition: background .6s; }
.sp-bg i { position: absolute; inset: -5%; display: block; }
.sp-print { background-repeat: no-repeat; opacity: .22; mix-blend-mode: multiply; filter: blur(1.5px) saturate(1.25); transition: background-image .4s; }
.sp-sheen { background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.1) 52%, transparent 62%) 0 0 / 260% 100%; mix-blend-mode: soft-light; animation: spSheen 5.5s ease-in-out infinite; }
.sp-sheen::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1.5px 1.5px at 84% 30%, #fff, transparent), radial-gradient(2px 2px at 22% 78%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 70%, #fff, transparent), radial-gradient(2px 2px at 6% 55%, #fff, transparent), radial-gradient(1.5px 1.5px at 95% 12%, #fff, transparent); animation: spTwinkle 2.8s ease-in-out infinite alternate; }
@keyframes spSheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes spTwinkle { from { opacity: .2; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sp-sheen, .sp-sheen::after { animation: none; } }
