/* ==========================================================================
   UPTOWN FOLKS — "Shahi Nimantran" (v4)
   A royal invitation from Jaipur: parchment, maroon, olive and old gold.
   Hand-drawn ornaments live in art.css / art.js (generated by _src/tools).
   ========================================================================== */

:root {
  --paper: #efe4d0;
  --paper-2: #e6d7bb;
  --ivory: #faf4e7;
  --ink: #3b241d;
  --ink-soft: #6b5143;
  --maroon: #7d1f28;
  --maroon-d: #561319;
  --olive: #66713f;
  --gold: #b38a4a;
  --gold-l: #d9bd84;
  --gold-line: rgba(179, 138, 74, .55);

  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --deva: "Tiro Devanagari Hindi", serif;

  --nav-h: 84px;
  --section: clamp(96px, 11vw, 168px);
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.22, .7, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.25vw, 20px);
  line-height: 1.55;
  font-weight: 500;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.is-loading.has-invite body { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--maroon); color: var(--ivory); }
:focus-visible { outline: 1.5px solid var(--maroon); outline-offset: 4px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 400; background: var(--maroon); color: var(--ivory); padding: 10px 16px; font-family: var(--caps); font-size: .7rem; letter-spacing: .2em; }
.skip:focus { top: 16px; }

.grain {
  position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.caps { font-family: var(--caps); text-transform: uppercase; letter-spacing: .24em; font-weight: 500; font-size: .74rem; line-height: 1.5; }
.script { font-family: var(--script); font-weight: 400; color: var(--maroon); line-height: 1.12; letter-spacing: 0; text-transform: none; }
.deva { font-family: var(--deva); letter-spacing: .04em; }
em { font-style: italic; }

.title { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35em; margin: 0; font-weight: 400; }
.title .caps { font-size: clamp(.8rem, 1.05vw, 1rem); color: var(--ink); letter-spacing: .3em; }
.title .script { font-size: clamp(2.7rem, 5.4vw, 5.2rem); padding: 0 .2em .05em; }
.title--left { align-items: flex-start; text-align: left; }
.title--left .script { padding-left: 0; }

/* gold rule — sparkle — gold rule */
.orn { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); }
.orn i { width: clamp(44px, 6vw, 84px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.orn b { width: 13px; height: 13px; background: currentColor; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.orn--light { color: var(--gold-l); }
.orn--light i { background: linear-gradient(90deg, transparent, var(--gold-l)); }
.orn--light i:last-child { background: linear-gradient(90deg, var(--gold-l), transparent); }
.orn--left i:first-child { display: none; }

.wrap { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, 820px); }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: clamp(48px, 6vw, 84px); }
.head__sub { max-width: 36em; color: var(--ink-soft); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
section { position: relative; }

/* ---------- Components ---------- */
/* Cusped Mughal arch frame */
.arch { position: relative; aspect-ratio: 332 / 416; isolation: isolate; }
.arch > img, .arch > .slides {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat;
}
.arch::before, .arch::after { content: ""; position: absolute; pointer-events: none; background: var(--arch-line) center / 100% 100% no-repeat; z-index: 2; }
.arch::after { inset: -9px -8px 0; }
.arch::before { inset: -17px -15px -0px; opacity: .55; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.slides img.is-on { opacity: 1; }

/* Ivory letter with a double gold rule */
.letter {
  position: relative; background: var(--ivory);
  background-image: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%);
  border: 1px solid var(--gold-line);
  outline: 1px solid var(--gold-line); outline-offset: -10px;
  box-shadow: 0 34px 60px -42px rgba(74, 40, 22, .45), 0 2px 0 rgba(255,255,255,.6) inset;
}

/* Perforated postage stamp */
.stamp { position: relative; filter: drop-shadow(0 14px 18px rgba(74, 40, 22, .22)) drop-shadow(0 2px 2px rgba(74, 40, 22, .12)); }
.stamp__pic {
  --g: 16px; --r: 5px;
  padding: 11px; background: var(--ivory);
  -webkit-mask: radial-gradient(circle var(--r), #0000 96%, #000) calc(var(--g) / -2) calc(var(--g) / -2) / var(--g) var(--g) round, linear-gradient(#000 0 0) content-box;
          mask: radial-gradient(circle var(--r), #0000 96%, #000) calc(var(--g) / -2) calc(var(--g) / -2) / var(--g) var(--g) round, linear-gradient(#000 0 0) content-box;
}
.stamp__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; outline: 1px solid rgba(59, 36, 29, .18); outline-offset: -1px; }
.stamp figcaption { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-family: var(--script); font-size: 1.5rem; color: var(--maroon); }
.stamp--l { rotate: -4deg; }
.stamp--r { rotate: 4deg; }
.tape {
  position: absolute; z-index: 2; top: -14px; left: 50%; width: 46%; height: 26px; translate: -50% 0; rotate: -3deg;
  background: linear-gradient(90deg, rgba(222, 204, 166, .82), rgba(236, 222, 190, .9) 50%, rgba(222, 204, 166, .82));
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 12%, 96% 0, 100% 10%, 100% 92%, 96% 100%, 92% 88%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 90%);
}
.stamp--r .tape { rotate: 4deg; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 32px; border: 1px solid var(--maroon); color: var(--maroon); background: transparent;
  font-family: var(--caps); font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  cursor: pointer; transition: background .5s var(--ease), color .5s var(--ease), border-color .5s;
}
.btn::after { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; opacity: 0; transition: opacity .5s; pointer-events: none; }
.btn:hover::after { opacity: .45; }
.btn--line:hover { background: var(--maroon); color: var(--ivory); }
.btn--maroon { background: var(--maroon); color: var(--ivory); }
.btn--maroon::after { border-color: var(--gold-l); opacity: .5; }
.btn--maroon:hover { background: var(--maroon-d); }
.btn--gold { border-color: var(--gold-l); color: var(--gold-l); }
.btn--gold:hover { background: var(--gold-l); color: var(--maroon-d); }
.btn--full { width: 100%; }

[data-art] svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---------- Invitation (loader) ---------- */
.invite { display: none; }
html.has-invite .invite {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
}
.invite__sprig { position: absolute; top: -10px; width: clamp(150px, 19vw, 300px); aspect-ratio: 360 / 460; }
.invite__sprig--l { left: -1vw; scale: 1 -1; }
.invite__sprig--r { right: -1vw; scale: -1 -1; }
.invite__hills { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(130px, 22vh, 230px); }
.invite__skip { position: absolute; bottom: calc(clamp(130px, 22vh, 230px) + 20px); left: 50%; translate: -50% 0; background: none; border: 0; cursor: pointer; font-family: var(--caps); font-size: .66rem; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-soft); }

.env { --w: min(78vw, 460px); position: relative; width: var(--w); aspect-ratio: 1.55; margin-top: 18vh; perspective: 1400px; }
.env__back { position: absolute; inset: 0; background: linear-gradient(180deg, #6a1820, #4f1117); box-shadow: 0 40px 60px -30px rgba(60, 20, 15, .55); }
.env__card {
  position: absolute; left: 6%; right: 6%; top: 6%; height: 90%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 22px; text-align: center;
  background: var(--ivory); border: 1px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: -7px;
}
.env__card img { width: 30px; height: auto; opacity: .9; }
.env__brand { font-family: var(--caps); font-size: .82rem; letter-spacing: .38em; text-transform: uppercase; margin-top: 4px; }
.env__card .orn i { width: 38px; }
.env__card .orn b { width: 9px; height: 9px; }
.env__script { font-family: var(--script); color: var(--maroon); font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1; margin-top: 2px; }
.env__small { font-family: var(--caps); font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.env__front {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, #8a2731, #6f1b23);
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
}
.env__front::before, .env__front::after { content: ""; position: absolute; inset: 0; }
.env__front::before { background: linear-gradient(100deg, rgba(0,0,0,.18), transparent 45%); clip-path: polygon(0 0, 50% 58%, 0 100%); }
.env__front::after { background: linear-gradient(260deg, rgba(0,0,0,.18), transparent 45%); clip-path: polygon(100% 0, 50% 58%, 100% 100%); }
.env__flap { position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d; }
.env__flap-out, .env__flap-in { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.env__flap-out { background: linear-gradient(180deg, #7d1f28, #922c35); }
.env__flap-in { background: #f3e8d2 var(--lining) center / 44px 44px; transform: rotateX(180deg); }
.env__seal { position: absolute; z-index: 5; left: 50%; top: 60%; width: 23%; aspect-ratio: 1; translate: -50% -50%; filter: drop-shadow(0 4px 4px rgba(40, 10, 5, .4)); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 120; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter);
  transition: transform .6s var(--ease), background .5s, box-shadow .5s;
}
.nav.is-scrolled { background: rgba(239, 228, 208, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--gold-line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__menu { justify-self: start; display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; padding: 8px 0; cursor: pointer; font-family: var(--caps); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; }
.nav__lines { display: grid; gap: 6px; width: 26px; }
.nav__lines i { height: 1px; background: currentColor; transition: transform .5s var(--ease), width .5s; }
.nav__lines i:last-child { width: 70%; }
.nav__menu:hover .nav__lines i:last-child { width: 100%; }
.nav__menu[aria-expanded="true"] .nav__lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__lines i:last-child { width: 100%; transform: translateY(-3.5px) rotate(-45deg); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--caps); font-size: .86rem; letter-spacing: .36em; text-transform: uppercase; }
.nav__brand img { width: 26px; }
.nav__cta { justify-self: end; position: relative; font-family: var(--caps); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--maroon); border: 1px solid var(--maroon); padding: 11px 22px; transition: background .4s, color .4s; }
.nav__cta:hover { background: var(--maroon); color: var(--ivory); }

/* ---------- Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 110; background: var(--paper);
  display: grid; grid-template-columns: 1fr clamp(220px, 24vw, 340px); align-items: center; gap: 6vw;
  padding: calc(var(--nav-h) + 30px) calc(var(--gutter) * 2) 60px;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.menu__sprig { position: absolute; left: -1vw; bottom: -10px; width: clamp(140px, 16vw, 240px); aspect-ratio: 360 / 460; opacity: .9; pointer-events: none; }
.menu__links { display: grid; gap: 4px; position: relative; z-index: 1; }
.menu__links a { display: flex; align-items: baseline; gap: 22px; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.15; font-weight: 500; transition: color .4s, transform .5s var(--ease); }
.menu__links a small { width: 2.4em; font-family: var(--caps); font-size: .7rem; letter-spacing: .2em; color: var(--gold); text-align: right; }
.menu__links a:hover { color: var(--maroon); transform: translateX(8px); }
.menu__preview { width: 100%; }
.menu__foot { position: absolute; left: calc(var(--gutter) * 2); right: calc(var(--gutter) * 2); bottom: 30px; display: flex; justify-content: space-between; font-family: var(--caps); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; }
.menu__foot .deva { text-transform: none; font-size: 1rem; color: var(--gold); }

/* ---------- I. Hero ---------- */
.hero {
  --aw: min(25vw, 37vh);
  --hills: clamp(130px, 22vh, 230px);
  min-height: max(100svh, 680px);
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--nav-h) + 2vh); overflow: clip;
}
.hero__sprig { position: absolute; z-index: 1; top: calc(var(--nav-h) - 30px); width: clamp(150px, 19vw, 300px); aspect-ratio: 360 / 460; pointer-events: none; }
.hero__sprig--l { left: -1vw; scale: 1 -1; }
.hero__sprig--r { right: -1vw; scale: -1 -1; }
.hero__head { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 var(--gutter); }
.hero__kicker { font-size: clamp(.72rem, .95vw, .9rem); letter-spacing: .34em; }
.hero__title { font-size: clamp(3rem, min(7.6vw, 12vh), 8rem); line-height: 1.08; padding: 0 .25em; white-space: nowrap; }
.hero__title span { display: inline-block; padding: 0 .1em; }
.hero__sub { max-width: 34em; color: var(--ink-soft); font-size: clamp(1.05rem, 1.3vw, 1.25rem); font-style: italic; }
.hero__scene { position: relative; z-index: 2; flex: 1; width: 100%; min-height: calc(var(--aw) * 1.05); margin-top: 3vh; }
.hero__arch { position: absolute; left: 50%; bottom: calc(var(--hills) * .42); width: var(--aw); translate: -50% 0; }
.hero__stamp { position: absolute; z-index: 4; width: calc(var(--aw) * .58); bottom: calc(var(--hills) * .62); }
.hero__stamp.stamp--l { right: calc(50% + var(--aw) / 2 + clamp(40px, 6vw, 110px)); }
.hero__stamp.stamp--r { left: calc(50% + var(--aw) / 2 + clamp(40px, 6vw, 110px)); }
.hero__hills { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: var(--hills); pointer-events: none; }
.hero__cue { position: absolute; z-index: 5; left: 50%; bottom: 18px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--caps); font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; color: var(--ivory); }
.hero__cue i { width: 1px; height: 30px; background: linear-gradient(var(--gold-l), transparent); }

/* ---------- II. Story ---------- */
.story { padding: var(--section) 0; }
.story__grid { display: grid; grid-template-columns: 1fr minmax(0, 660px) 1fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.story__stamp { width: clamp(150px, 15vw, 230px); }
.story__stamp.stamp--l { justify-self: end; }
.story__stamp.stamp--r { justify-self: start; }
.story__letter { padding: clamp(44px, 5vw, 76px) clamp(28px, 5vw, 72px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.story__letter .title .script { font-size: clamp(2.5rem, 4.2vw, 4.2rem); }
.lede { color: var(--ink-soft); font-size: clamp(1.1rem, 1.4vw, 1.3rem); max-width: 32em; }
.quote { font-style: italic; color: var(--maroon); font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.45; max-width: 26em; padding-top: 6px; }
.founders { font-size: .76rem; color: var(--ink); }
.founders b { color: var(--gold); font-weight: 400; margin: 0 .6em; }
.founders__role { font-family: var(--script); color: var(--maroon); font-size: 1.6rem; margin-top: -14px; }

/* ---------- III. Prints ---------- */
.prints { padding: var(--section) 0; }
.prints__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(28px, 4.4vw, 76px); align-items: center; }
.prints__col { display: grid; grid-template-columns: repeat(2, auto); gap: 22px 18px; }
.prints__col:first-child { justify-content: end; }
.prints__col:last-child { justify-content: start; }
.pstamp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; background: none; border: 0; cursor: pointer; width: clamp(84px, 7.4vw, 110px); transition: transform .5s var(--ease); filter: drop-shadow(0 8px 10px rgba(74, 40, 22, .18)); }
.pstamp__sw {
  --g: 12px; --r: 3.6px;
  display: block; width: 100%; aspect-ratio: 4 / 5; border: 7px solid var(--ivory); background-size: cover; background-position: center;
  -webkit-mask: radial-gradient(circle var(--r), #0000 96%, #000) calc(var(--g) / -2) calc(var(--g) / -2) / var(--g) var(--g) round, linear-gradient(#000 0 0) padding-box;
          mask: radial-gradient(circle var(--r), #0000 96%, #000) calc(var(--g) / -2) calc(var(--g) / -2) / var(--g) var(--g) round, linear-gradient(#000 0 0) padding-box;
}
.pstamp__name { font-style: italic; font-size: .98rem; line-height: 1.2; color: var(--ink-soft); transition: color .4s; }
.pstamp__pm { position: absolute; top: -12px; right: -18px; width: 58px; height: 58px; color: var(--maroon); opacity: 0; transform: scale(1.5) rotate(-24deg); transition: opacity .35s, transform .5s var(--ease); pointer-events: none; }
.pstamp:hover { transform: translateY(-4px); }
.pstamp.is-active { transform: translateY(-6px); }
.pstamp.is-active .pstamp__name { color: var(--maroon); }
.pstamp.is-active .pstamp__pm { opacity: .78; transform: scale(1) rotate(-14deg); }
.prints__stage { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.prints__arch { width: clamp(240px, 24vw, 350px); }
.prints__img { transition: opacity .5s ease; }
.prints__meta { text-align: center; min-height: 6.2em; }
.prints__meta .caps { color: var(--olive); font-size: .68rem; }
.prints__meta .script { font-size: clamp(2.1rem, 2.9vw, 2.8rem); }
.prints__note { text-align: center; margin-top: clamp(40px, 5vw, 64px); font-style: italic; color: var(--ink-soft); }
.prints__note a { color: var(--maroon); border-bottom: 1px solid var(--gold-line); }

/* ---------- IV. Edits ---------- */
.edits { padding: var(--section) 0; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.6vw, 40px); align-items: stretch; }
.edit { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(34px, 3vw, 46px) clamp(22px, 2.4vw, 36px) clamp(30px, 3vw, 42px); }
.edit__img { width: 74%; margin-bottom: 30px; }
.edit__count { color: var(--olive); font-size: .66rem; }
.edit h3 { font-size: clamp(2.1rem, 2.7vw, 2.7rem); margin: 4px 0 10px; }
.edit__in { font-size: 1.05rem; line-height: 1.5; }
.edit__for { margin-top: auto; padding-top: 14px; font-style: italic; color: var(--ink-soft); font-size: 1rem; }

.pieces { margin-top: clamp(70px, 8vw, 110px); }
.pieces__h { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: .7rem; margin-bottom: 40px; }
.pieces__h i { width: clamp(40px, 8vw, 120px); height: 1px; background: var(--gold-line); }
.pieces__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 3vw, 44px); }
.pieces__row li { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pieces__img { width: 100%; max-width: 170px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; outline: 1px solid var(--gold-line); outline-offset: 6px; }
.pieces__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pieces__row li:hover .pieces__img img { transform: scale(1.08); }
.pieces__row span { font-family: var(--caps); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- V. Bespoke ---------- */
.bespoke { padding: var(--section) 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); }
.steps > .steps__line { position: absolute; top: 42px; left: 12.5%; right: 12.5%; height: 1px; background: repeating-linear-gradient(90deg, var(--gold-line) 0 6px, transparent 6px 12px); }
.steps__line i { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.step__seal { position: relative; width: 86px; height: 86px; display: grid; place-items: center; margin-bottom: 8px; filter: drop-shadow(0 8px 10px rgba(80, 20, 15, .3)); }
.step__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.step__seal b { position: relative; font-family: var(--caps); font-weight: 500; font-size: 1.15rem; color: var(--gold-l); letter-spacing: .06em; text-transform: lowercase; }
.step h3 { font-size: .74rem; }
.step p { color: var(--ink-soft); font-size: 1.05rem; max-width: 15em; }

.banner {
  position: relative; overflow: hidden; margin-top: clamp(80px, 9vw, 130px);
  padding: clamp(60px, 7vw, 100px) 24px; text-align: center; color: var(--ivory);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: radial-gradient(120% 90% at 50% 0%, #8c2731, #6a1820 60%, #57131a);
  outline: 1px solid rgba(217, 189, 132, .55); outline-offset: -12px;
}
.banner__sprig { position: absolute; bottom: -24px; width: clamp(120px, 13vw, 200px); aspect-ratio: 360 / 460; opacity: .85; pointer-events: none; }
.banner__sprig--l { left: 1%; }
.banner__sprig--r { right: 1%; scale: -1 1; }
.banner__caps { position: relative; font-size: clamp(.74rem, 1vw, .95rem); letter-spacing: .32em; color: var(--ivory); }
.banner__script { position: relative; color: var(--gold-l); font-size: clamp(3rem, 6vw, 5.6rem); line-height: 1; margin-bottom: 18px; }
.banner .btn { position: relative; }

/* ---------- VI. Export ---------- */
.export { padding: var(--section) 0; }
.xcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.xcard__img { width: 82%; margin-bottom: 26px; }
.xcard__place { color: var(--olive); font-size: .66rem; }
.xcard h3 { font-size: clamp(2.1rem, 2.7vw, 2.7rem); margin-bottom: 4px; }
.xcard p:last-child { color: var(--ink-soft); font-size: 1.05rem; max-width: 22em; }

.route { position: relative; margin-top: clamp(80px, 9vw, 120px); }
.route__path { position: absolute; top: 0; left: 0; width: 100%; height: 40px; overflow: visible; }
.route__path path { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 5 6; }
.route__stops { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.route__stops li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-top: 52px; }
.route__dot { position: absolute; top: 13px; left: 50%; width: 14px; height: 14px; translate: -50% 0; rotate: 45deg; background: var(--paper); border: 1px solid var(--gold); }
.route__dot::after { content: ""; position: absolute; inset: 3px; background: var(--maroon); }
.route__stops b { font-weight: 500; font-size: .7rem; }
.route__stops small { font-size: 1rem; color: var(--ink-soft); font-style: italic; max-width: 13em; line-height: 1.35; }

/* ---------- VII. Purpose ---------- */
.purpose { padding: calc(var(--section) * .7) 0 var(--section); }
.purpose .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.purpose__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; font-size: .66rem; color: var(--ink); max-width: 46em; margin-top: 10px; }
.purpose__list li + li::before { content: "✦"; color: var(--gold); margin: 0 1.1em; font-size: .9em; }

/* ---------- VIII. Enquire ---------- */
.enquire { padding: var(--section) 0; }
.enquire__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.enquire__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.enquire__intro .title .script { font-size: clamp(2.7rem, 4.6vw, 4.6rem); }
.enquire__intro > p { color: var(--ink-soft); font-size: clamp(1.08rem, 1.3vw, 1.22rem); max-width: 28em; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--caps); font-size: .66rem; letter-spacing: .2em; }
.contact-lines a { border-bottom: 1px solid var(--gold-line); }
.contact-lines:empty { display: none; }
.post { position: relative; }
.form { display: grid; gap: 22px; padding: clamp(56px, 5vw, 72px) clamp(26px, 4vw, 56px) clamp(32px, 4vw, 50px); }
.form__seal { position: absolute; top: -38px; left: 50%; width: 78px; height: 78px; translate: -50% 0; filter: drop-shadow(0 6px 6px rgba(70, 40, 10, .3)); }
.form__to { font-size: clamp(1.9rem, 2.4vw, 2.4rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: flex; flex-direction: column; gap: 4px; }
.form label > span { font-family: var(--caps); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--gold-line); border-radius: 0; background: transparent; padding: 8px 0;
  font: 500 1.12rem/1.4 var(--serif); color: var(--ink); transition: border-color .3s;
}
.form textarea { resize: vertical; min-height: 88px; }
.form select { appearance: none; -webkit-appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b38a4a' stroke-width='1.3'/%3E%3C/svg%3E") right 4px center no-repeat; }
.form input::placeholder, .form textarea::placeholder { color: #a08e7d; font-style: italic; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--maroon); }
.form .btn { margin-top: 8px; }
.form__note { min-height: 1.4em; font-style: italic; color: var(--maroon); text-align: center; }

/* ---------- Footer ---------- */
.footer { padding-top: calc(var(--section) * .7); }
.footer__close { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer__line { font-size: clamp(2.3rem, 4.2vw, 3.8rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-top: clamp(56px, 6vw, 80px); padding-top: 48px; border-top: 1px solid var(--gold-line); }
.footer__brand img { width: 34px; margin-bottom: 14px; }
.footer__name { font-size: .86rem; letter-spacing: .34em; margin-bottom: 6px; }
.footer__brand p:last-child { font-style: italic; color: var(--ink-soft); }
.footer__col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__h { color: var(--gold); font-size: .64rem; margin-bottom: 6px; }
.footer__col a, .footer__col span { font-size: 1.08rem; transition: color .3s; }
.footer__col a:hover { color: var(--maroon); }
.footer__col .deva { color: var(--gold); }
.footer__land { position: relative; height: clamp(230px, 24vw, 360px); margin-top: clamp(30px, 4vw, 60px); }
.footer__hills { position: absolute; inset: auto 0 0; height: 82%; }
.footer__sprig { position: absolute; bottom: 30%; width: clamp(120px, 14vw, 230px); aspect-ratio: 360 / 460; pointer-events: none; }
.footer__sprig--l { left: 0; }
.footer__sprig--r { right: 0; scale: -1 1; }
.footer__bottom {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; color: var(--ivory); font-size: .92rem;
}
.credits summary { cursor: pointer; font-family: var(--caps); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; list-style: none; }
.credits summary::-webkit-details-marker { display: none; }
.credits p { position: absolute; right: var(--gutter); bottom: 56px; max-width: 420px; padding: 16px 18px; background: var(--ivory); color: var(--ink); font-size: .92rem; border: 1px solid var(--gold-line); }
.credits a { text-decoration: underline; }

/* ---------- Motion start states (only when GSAP runs) ---------- */
html.motion [data-reveal],
html.motion [data-hero-in],
html.motion [data-hero-stamp],
html.motion [data-hero-arch] { opacity: 0; }
html.motion [data-write] { clip-path: inset(-40% 100% -40% -12%); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .prints__col { grid-template-columns: repeat(2, auto); gap: 18px 12px; }
  .hero__stamp { width: calc(var(--aw) * .5); }
}

@media (max-width: 900px) {
  :root { --nav-h: 70px; }
  .nav__brand span { font-size: .74rem; letter-spacing: .28em; }
  .nav__menu > span:last-child { display: none; }
  .nav__cta { padding: 9px 14px; font-size: .58rem; }

  .hero { --aw: min(64vw, 40vh); --hills: clamp(110px, 18vh, 170px); min-height: 100svh; padding-top: calc(var(--nav-h) + 4vh); }
  .hero__title { white-space: normal; font-size: clamp(2.9rem, 13vw, 4.6rem); line-height: 1.02; }
  .hero__title span { display: inline; }
  .hero__sprig { width: 30vw; top: calc(var(--nav-h) - 10px); opacity: .9; }
  .hero__stamp { display: none; }
  .hero__scene { min-height: calc(var(--aw) * 1.1); }

  .story__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "l l"; row-gap: 70px; }
  .story__stamp.stamp--l { grid-area: a; justify-self: center; width: min(40vw, 200px); }
  .story__stamp.stamp--r { grid-area: b; justify-self: center; width: min(40vw, 200px); }
  .story__letter { grid-area: l; }

  .prints__grid { grid-template-columns: 1fr; }
  .prints__stage { order: -1; }
  .prints__col { grid-template-columns: repeat(3, auto); justify-content: center !important; }

  .cards3 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .pieces__row { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps > .steps__line { display: none; }

  .route__path { display: none; }
  .route__stops { grid-template-columns: 1fr; gap: 26px; max-width: 420px; margin-inline: auto; }
  .route__stops::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: repeating-linear-gradient(180deg, var(--gold) 0 5px, transparent 5px 11px); }
  .route__stops li { align-items: flex-start; text-align: left; padding: 0 0 0 40px; }
  .route__dot { top: 3px; left: 0; translate: 0 0; }

  .enquire__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; font-size: .82rem; }
  .menu { grid-template-columns: 1fr; }
  .menu__preview { display: none; }
}

@media (max-width: 520px) {
  .nav__brand span { display: none; }
  .nav__brand img { width: 30px; }
  .prints__col { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; width: 100%; }
  .pstamp { width: 100%; }
  .banner__sprig { width: 90px; opacity: .55; }
  .edit__img, .xcard__img { width: 80%; }
}

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