/* ==========================================================================
   Goodwill "Next" — inner pages (about, services, how it works, fabrics,
   contact, booking, FAQ, policies, 404). Same grey gallery wall as the
   homepage: photos hang in pale mats like framed prints; garments sit in
   dark arched niches; each page closes on one large dark arch, a doorway
   to WhatsApp.
   ========================================================================== */

.pg { padding-top: 76px; }
.pg a:not(.btn):not(.pg-row):not(.pg-tile) { text-underline-offset: 3px; }

/* ---------- Page head ---------- */
.pg-head { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.pg-head-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: end; }
@media (min-width: 900px) { .pg-head-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.pg-head.solo .pg-head-grid { grid-template-columns: minmax(0, 1fr); }
.pg-head.solo .pg-head-grid > div { max-width: 860px; }

.pg-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--muted); margin-bottom: clamp(20px, 3vw, 36px); }
.pg-crumbs a { color: var(--muted); }
.pg-crumbs a:hover { color: var(--text); }
.pg-crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.pg-crumbs [aria-current] { color: var(--text); }

.pg-title { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; line-height: 1; color: var(--text);
  font-size: clamp(2.6rem, 5.8vw, 5.2rem); text-wrap: balance; }
.pg-title .l { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.pg-title .l > span { display: block; }
.pg-lede { margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.65; color: var(--muted); max-width: 56ch; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }

/* One orchestrated load moment: the title lines rise, the mat settles. */
@media (prefers-reduced-motion: no-preference) {
  .pg-title .l > span { animation: pgRise 1s cubic-bezier(.2, .8, .2, 1) both; }
  .pg-title .l:nth-child(2) > span { animation-delay: .09s; }
  .pg-title .l:nth-child(3) > span { animation-delay: .18s; }
  .pg-head .pg-lede, .pg-head .pg-actions { animation: pgFade .9s .3s ease both; }
  .pg-head .pg-hang { animation: pgHang 1.4s .15s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 0; }
}
@keyframes pgRise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes pgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pgHang { 0% { opacity: 0; transform: translateY(-18px) rotate(-1.6deg); } 60% { opacity: 1; transform: translateY(0) rotate(.5deg); } 100% { transform: none; } }

/* ---------- Mats (framed photos) and niches (garments) ---------- */
.mat { background: var(--card); padding: clamp(8px, 1vw, 12px); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(28, 27, 23, .06), 0 28px 50px -30px rgba(28, 27, 23, .45); }
.mat img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.mat figcaption, .pg-cap { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--muted); }
.ratio-45 { aspect-ratio: 4 / 5; } .ratio-43 { aspect-ratio: 4 / 3; } .ratio-11 { aspect-ratio: 1; } .ratio-169 { aspect-ratio: 16 / 9; } .ratio-34 { aspect-ratio: 3 / 4; }
.mat .ph { overflow: hidden; border-radius: 2px; }
.mat .ph img { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.mat:hover .ph img { transform: scale(1.025); }

/* the hook a mat hangs from in page heads */
.pg-hang { position: relative; padding-top: 34px; }
.pg-hang::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 34px; background: linear-gradient(var(--brass), rgba(156, 118, 41, .3)); }
.pg-hang::after { content: ""; position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--brass); box-shadow: inset 0 -2px 2px rgba(0, 0, 0, .3); }
.pg-hang .arch { aspect-ratio: 768 / 1100; max-width: 380px; margin: 0 auto; }
.pg-hang .arch img { object-position: 50% 30%; }
.pg-hang .mat { max-width: 520px; margin-left: auto; }

/* ---------- Sections ---------- */
.pg-sec { padding: clamp(64px, 9vw, 128px) 0; }
.pg-sec.tight { padding-top: 0; }
.pg-sec.band { background: var(--wall-2); }
.pg-sec.film { background: var(--niche); color: var(--chalk); }
.pg-h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(2rem, 4.2vw, 3.5rem); color: inherit; text-wrap: balance; max-width: 20ch; }
.pg-h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; }
.pg-p { font-size: 1.05rem; line-height: 1.75; color: var(--muted); max-width: 62ch; }
.film .pg-p, .film .pg-muted { color: var(--chalk-muted); }
.pg-p + .pg-p { margin-top: 1em; }
.pg-intro { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .pg-intro.split { grid-template-columns: 1fr 1fr; align-items: end; } }
.pg-split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .pg-split { grid-template-columns: 1fr 1fr; } .pg-split.wide-l { grid-template-columns: 1.2fr 1fr; } .pg-split.wide-r { grid-template-columns: 1fr 1.2fr; } }
.pg-split.top { align-items: start; }
.sticky-col { position: sticky; top: 110px; }

/* ---------- Facts (a short ledger of numbers) ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: 36px; }
.facts > div { padding: 18px 12px 0 0; }
.facts dt { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.facts dd { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; order: -1; }
.facts > div { display: flex; flex-direction: column; }

/* ---------- Ledger rows (price list, contact methods, policies) ---------- */
.ledger { border-top: 1px solid var(--rule); }
.ledger > li, .ledger > .pg-row { border-bottom: 1px solid var(--rule); }
.pg-row { display: grid; gap: 14px 28px; padding: 26px 0; align-items: center; grid-template-columns: 1fr; }
a.pg-row { transition: background .25s ease, padding .25s ease; }
a.pg-row:hover { background: rgba(28, 27, 23, .035); }

/* price list */
.price-row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img name price" "img text text" "img cta cta"; }
@media (min-width: 900px) { .price-row { grid-template-columns: 84px minmax(0, 1.1fr) minmax(0, 1.4fr) 170px 150px; grid-template-areas: "img name text price cta"; padding: 22px 0; } }
.price-row .pr-img { grid-area: img; align-self: start; }
.price-row .pr-img .arch { aspect-ratio: 768 / 1100; }
.price-row .pr-img .arch img[src*='/pages/'] { object-position: 50% 40%; }
.price-row .pr-img .blank { aspect-ratio: 768 / 1100; border-radius: var(--arch); border: 1px dashed rgba(28, 27, 23, .2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.price-row .pr-name { grid-area: name; }
.price-row .pr-name h3 { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.15; }
.price-row .pr-name a { font-size: .85rem; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(28, 27, 23, .25); }
.price-row .pr-text { grid-area: text; color: var(--muted); font-size: .97rem; line-height: 1.6; }
.price-row .pr-text ul { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: .88rem; }
.price-row .pr-text li::before { content: "·"; margin-right: 6px; color: var(--brass); font-weight: 700; }
.price-row .pr-price { grid-area: price; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem); white-space: nowrap; text-align: right; }
.price-row .pr-price small { display: block; font-family: var(--sans); font-size: .75rem; color: var(--muted); }
.price-row .pr-cta { grid-area: cta; }
@media (min-width: 900px) { .price-row .pr-cta { justify-self: end; } }
.price-row .pr-cta .btn { min-height: 44px; padding: 0 1.1rem; font-size: .88rem; }
.price-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.gw-light .currency-switch { background: var(--card); border-color: var(--rule); }
.gw-light .currency-switch button[aria-pressed="true"] { background: var(--text); color: var(--card); }

/* contact rows */
.contact-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
.contact-row .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--rule); }
.contact-row .ic svg { width: 24px; height: 24px; }
.contact-row.wa .ic { background: var(--wa); color: #06210f; box-shadow: none; }
.contact-row h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; }
.contact-row p { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.contact-row .go { font-weight: 600; font-size: .92rem; white-space: nowrap; }
@media (max-width: 600px) { .contact-row { grid-template-columns: 44px minmax(0, 1fr); } .contact-row .go { grid-column: 2; } .contact-row .ic { width: 44px; height: 44px; } }

/* ---------- Sequences (real steps only) ---------- */
.seq { counter-reset: seq; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.seq > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 20px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.seq > li::before { counter-increment: seq; content: counter(seq); font-family: var(--serif); font-size: 2.4rem; line-height: .9; color: var(--brass); grid-row: span 3; }
.seq h3 { font-family: var(--serif); font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; }
.seq p { color: var(--muted); line-height: 1.7; margin-top: 6px; max-width: 60ch; }
.seq .note { font-size: .88rem; color: var(--walnut); margin-top: 8px; }
.film .seq, .film .seq > li { border-color: rgba(239, 235, 225, .14); }
.film .seq p { color: var(--chalk-muted); }
.film .seq .note { color: var(--brass-hi); }

/* photo steps (about: how a garment is made) */
.photo-steps { display: grid; gap: 28px 20px; counter-reset: ps; }
@media (min-width: 640px) { .photo-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .photo-steps { grid-template-columns: repeat(4, 1fr); } }
.photo-steps li { counter-increment: ps; }
.photo-steps h3 { font-family: var(--serif); font-size: 1.35rem; margin-top: 16px; display: flex; gap: .6rem; align-items: baseline; }
.photo-steps h3::before { content: counter(ps); color: var(--brass-hi); font-size: 1rem; }
.photo-steps p { color: var(--chalk-muted); font-size: .97rem; line-height: 1.6; margin-top: 6px; }
.photo-steps .mat { background: #1a1813; box-shadow: none; }

/* ---------- Timelines (production speeds) ---------- */
.speeds { display: grid; gap: 16px; }
@media (min-width: 800px) { .speeds { grid-template-columns: repeat(3, 1fr); } }
.speed { background: var(--card); border-radius: 6px; padding: 26px 24px 24px; position: relative; overflow: hidden; }
.speed .t { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; }
.speed .n { font-weight: 600; font-size: .9rem; color: var(--walnut); margin-bottom: 12px; display: block; }
.speed p { color: var(--muted); margin-top: 12px; line-height: 1.6; font-size: .97rem; }
.speed .bar { height: 3px; background: var(--rule); margin-top: 22px; border-radius: 3px; overflow: hidden; }
.speed .bar i { display: block; height: 100%; background: var(--brass); width: var(--w, 50%); }

/* ---------- Ways to be measured (three framed options) ---------- */
.ways { display: grid; gap: 28px; }
@media (min-width: 900px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.ways h3 { font-family: var(--serif); font-size: 1.5rem; margin-top: 18px; }
.ways p { color: var(--muted); margin-top: 6px; line-height: 1.6; }
.ways .lnk { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .92rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Lists ---------- */
.pg-ticks { display: grid; gap: 10px; }
.pg-ticks li { position: relative; padding-left: 26px; line-height: 1.55; color: var(--muted); }
.pg-ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.film .pg-ticks li { color: var(--chalk-muted); }
.rule-list > li { border-top: 1px solid var(--rule); padding: 18px 0; }
.rule-list > li:last-child { border-bottom: 1px solid var(--rule); }
.rule-list strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--text); }
.rule-list p { color: var(--muted); margin-top: 4px; line-height: 1.6; }
.film .rule-list > li { border-color: rgba(239, 235, 225, .14); }
.film .rule-list strong { color: var(--chalk); }
.film .rule-list p { color: var(--chalk-muted); }

/* ---------- Q&A ---------- */
.qa details { border-bottom: 1px solid var(--rule); }
.qa details:first-child { border-top: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.2rem; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: .35em; background:
  linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
  linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .3s ease; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.qa .a { padding: 0 0 24px; color: var(--muted); line-height: 1.75; max-width: 68ch; }
.faq-groups { display: grid; gap: clamp(48px, 6vw, 80px); }
.faq-group { display: grid; gap: 18px; }
@media (min-width: 900px) { .faq-group { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; } }
.faq-group h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.faq-toc a { border: 1px solid var(--rule); border-radius: 999px; padding: .55rem 1rem; font-size: .9rem; background: var(--card); }
.faq-toc a:hover { border-color: var(--text); }

/* ---------- Fabric library ---------- */
.cloth-grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .cloth-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cloth-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pg-tile { display: block; text-align: left; width: 100%; cursor: pointer; }
.pg-tile .mat { padding: 8px; }
.pg-tile .ph { aspect-ratio: 1; }
.pg-tile h3 { font-family: var(--serif); font-size: 1.15rem; margin-top: 12px; line-height: 1.2; }
.pg-tile p { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.pg-tile:hover .mat { box-shadow: 0 1px 0 rgba(28, 27, 23, .06), 0 34px 60px -30px rgba(28, 27, 23, .55); }
.pg-tile:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; border-radius: 4px; }
.gw-light .chip { background: var(--card); border-color: var(--rule); color: var(--text); }
.gw-light .chip[aria-pressed="true"] { background: var(--text); color: var(--card); border-color: var(--text); }

.pairs { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.pairs figure { flex: 0 0 clamp(220px, 26vw, 300px); scroll-snap-align: start; }
.pairs .ph { aspect-ratio: 640 / 853; }

.guide { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 800px) { .guide { grid-template-columns: repeat(3, 1fr); } }
.guide > div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 800px) { .guide > div { padding-left: 24px; border-left: 1px solid var(--rule); } .guide > div:nth-child(3n+1) { border-left: 0; padding-left: 0; } }
.guide h3 { font-family: var(--serif); font-size: 1.4rem; }
.guide p { color: var(--muted); margin-top: 6px; line-height: 1.6; }
.guide .best { margin-top: 12px; font-size: .86rem; color: var(--walnut); }

/* ---------- Forms on the wall ---------- */
.wall-form { background: var(--card); border-radius: 8px; padding: clamp(22px, 3vw, 40px); }
.wall-form fieldset + fieldset { margin-top: 30px; }
.wall-form legend { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 14px; }
.wall-form .lbl { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.gw-light .light-form .gw-input, .gw-light .light-form .gw-select { background: #fff; border-color: rgba(28, 27, 23, .16); color: var(--text); }
.gw-light .opt-grid.light .opt label { background: #fff; border-color: rgba(28, 27, 23, .16); }
.gw-light .opt-grid.light .opt input:checked + label { border-color: var(--brass); background: rgba(201, 164, 92, .12); box-shadow: inset 0 0 0 1px var(--brass); }
.gw-light .opt-grid.light .opt label span { color: var(--muted); }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Map ---------- */
.map-mat .ph { aspect-ratio: 4 / 3; }
.map-mat iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin-top: 10px; font-size: .98rem; }
.hours dt { color: var(--muted); }

/* ---------- Policy pages ---------- */
.policy { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .policy { grid-template-columns: 240px minmax(0, 1fr); } }
.policy-nav { display: grid; gap: 2px; align-self: start; }
@media (min-width: 900px) { .policy-nav { position: sticky; top: 110px; } }
.policy-nav a { padding: 10px 14px; border-radius: 6px; color: var(--muted); font-size: .95rem; }
.policy-nav a:hover { color: var(--text); background: rgba(28, 27, 23, .04); }
.policy-nav a[aria-current] { color: var(--text); background: var(--card); font-weight: 600; }
.policy-body section + section { margin-top: 40px; }
.policy-body h2 { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 12px; }
.policy-body li { color: var(--muted); line-height: 1.75; padding-left: 20px; position: relative; max-width: 68ch; }
.policy-body li + li { margin-top: 8px; }
.policy-body li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--brass); }
.updated { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* ---------- The closing doorway ---------- */
.doorway { padding: clamp(48px, 7vw, 96px) 0 clamp(96px, 12vw, 160px); }
.doorway-arch { position: relative; margin: 0 auto; max-width: 760px; background: var(--niche); color: var(--chalk); text-align: center;
  border-radius: 380px 380px 12px 12px; padding: clamp(120px, 20vw, 200px) clamp(24px, 6vw, 80px) clamp(52px, 6vw, 76px); overflow: hidden; isolation: isolate; }
@media (max-width: 760px) { .doorway-arch { border-radius: 50vw 50vw 12px 12px; } }
.doorway-arch::before { content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 1px solid rgba(201, 164, 92, .3); pointer-events: none; }
.doorway-arch::after { content: ""; position: absolute; left: 50%; top: 0; width: 70%; height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(201, 164, 92, .16), transparent); z-index: -1; }
.doorway h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.doorway p { color: var(--chalk-muted); margin: 16px auto 0; max-width: 46ch; line-height: 1.65; }
.doorway .pg-actions { justify-content: center; }
.doorway-hook { display: block; width: 1px; height: 54px; margin: 0 auto -1px; background: linear-gradient(transparent, var(--brass)); }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - 76px); display: grid; align-items: center; padding: 40px 0 120px; }
.lost-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .lost-grid { grid-template-columns: 1fr 1fr; } }
.lost .arch { aspect-ratio: 768 / 1100; max-width: 340px; margin: 0 auto; }

/* ---------- Footer & drawer on the light theme ---------- */
.gw-light .gw-footer { background: var(--niche); }
.gw-footer .ft-hours { font-size: .9rem; line-height: 1.6; }
.gw-drawer nav a { font-size: 1.8rem; }

/* Small screens: keep things breathing above the mobile dock */
@media (max-width: 899px) {
  .pg-hang .arch { max-width: 280px; }
  .pg-hang .mat { margin: 0 auto; }
  .facts dd { font-size: 1.9rem; }
}
