/* =====================================================================================
   Southstone: inner pages (pages.css)
   1 page hero + crumbs  2 jump chips  3 services sections  4 work gallery  5 about
   6 contact  7 legal  8 not found
   ===================================================================================== */

/* ------------------------------------------------------------------ 1 page hero */
.phero { padding: clamp(40px, 6vw, 96px) 0 clamp(40px, 5vw, 76px); border-bottom: 1px solid var(--rule); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.phero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.phero .h1 { max-width: 14ch; }
.phero .lede { margin-top: 22px; }
@media (max-width: 899px) { .phero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 26px; padding: 0; font: 500 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--rule-2); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--brick); }
.crumbs [aria-current] { color: var(--text); }

/* ------------------------------------------------------------------ 2 jump chips (services) */
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.jump a { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border: 1px solid var(--rule-2); background: rgba(249, 247, 243, .7); font-size: .9rem; font-weight: 560; text-decoration: none; color: var(--text); transition: border-color .2s, color .2s; }
.jump a span { font: 600 .68rem/1 var(--f-mono); letter-spacing: .1em; color: var(--brick); }
.jump a:hover { border-color: var(--flint); }

/* ------------------------------------------------------------------ 3 services sections */
.svc { scroll-margin-top: calc(var(--header-h) + 8px); }
.svc + .svc { border-top: 1px solid var(--rule); }
.svc__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.svc:nth-of-type(even) .svc__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.svc:nth-of-type(even) .svc__text { order: 2; }
@media (max-width: 960px) {
  .svc__grid, .svc:nth-of-type(even) .svc__grid { grid-template-columns: minmax(0, 1fr); }
  .svc:nth-of-type(even) .svc__text { order: 0; }
}
.svc__n { display: block; margin-bottom: 18px; }
.svc__text .prose { margin-top: 20px; color: var(--text-2); }
.svc__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--rule-2); max-width: 520px; }
.svc__list li { display: flex; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule-2); font-size: var(--fs-small); font-weight: 560; }
.svc__list li::before { content: ''; width: 6px; height: 6px; flex: 0 0 auto; background: var(--brick); transform: translateY(-2px) rotate(45deg); }
@media (max-width: 480px) { .svc__list { grid-template-columns: minmax(0, 1fr); } }
.svc__fig { min-width: 0; margin: 0; }

/* ------------------------------------------------------------------ 4 work gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.filter { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border: 1px solid var(--rule-2); background: var(--card); font-size: .9rem; font-weight: 580; color: var(--text); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filter span { font: 500 .68rem/1 var(--f-mono); letter-spacing: .08em; color: var(--text-3); }
.filter:hover { border-color: var(--flint); }
.filter[aria-pressed="true"] { background: var(--flint); border-color: var(--flint); color: var(--on-flint); }
.filter[aria-pressed="true"] span { color: var(--on-flint-3); }
.gallery { columns: 3 300px; column-gap: clamp(12px, 1.4vw, 18px); }
.gallery .ph { break-inside: avoid; margin: 0 0 clamp(12px, 1.4vw, 18px); height: auto; }
.gallery .ph img { height: auto; }
.gallery .ph.is-hidden { display: none; }

/* ------------------------------------------------------------------ 5 about */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule-2); margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(130px, .5fr) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-2); }
.facts dt { font: 500 var(--fs-mono)/1.6 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin: 0; font-weight: 520; overflow-wrap: anywhere; }
.facts a { color: inherit; }
.theme-flint .facts, .theme-flint .facts > div { border-color: var(--rule-flint); }
.markstory { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 899px) { .markstory { grid-template-columns: minmax(0, 1fr); } }
.markstory__big { width: clamp(120px, 14vw, 180px); color: var(--on-flint); margin-bottom: 28px; }
.markstory__big svg { width: 100%; height: auto; }
.markstory .sheet.stone::after { background-color: var(--card); background-image: var(--grid-paper); }
.markstory .prose { color: var(--on-flint-2); margin-top: 20px; }
.photo-frame { margin: 0; }
.photo-frame img { width: 100%; height: auto; clip-path: var(--chamf); }

/* ------------------------------------------------------------------ 6 contact */
.contact { padding: clamp(40px, 6vw, 88px) 0 var(--sec); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }
.contact .h1 { max-width: 12ch; }
.ways { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.way { display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; color: inherit; }
.way__ic { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; background: var(--flint); color: var(--on-flint); clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.way__ic svg { width: 20px; height: 20px; }
.way__k { display: block; font: 500 .68rem/1 var(--f-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
.way__v { display: block; font-weight: 620; overflow-wrap: anywhere; }
a.way:hover .way__v { color: var(--brick); }
a.way.stone:hover::before { background: var(--flint); }
.formcard { padding: clamp(22px, 3vw, 40px); }
.formcard .h3 { margin-bottom: 6px; }

/* ------------------------------------------------------------------ 7 legal */
.legal { padding: clamp(40px, 5vw, 80px) 0 var(--sec); }
.legal .prose { max-width: 70ch; }
.legal .prose h2 { font-size: var(--fs-h3); font-weight: 650; font-stretch: 104%; letter-spacing: -.01em; line-height: 1.2; }

/* ------------------------------------------------------------------ 8 not found */
.nf { padding: clamp(56px, 8vw, 120px) 0 var(--sec); }
.nf__mark { width: 96px; color: var(--brick); margin-bottom: 30px; }
.nf__mark svg { width: 100%; height: auto; }
