/* H.T.Z Studios — inner pages (services, contact, legal).
   Builds on main.css: same tokens, chrome, scanline type, dashed hairlines and
   bracket corners; only the page header, document rows and related links are new. */

.pg { display: block; }

/* ── Header ── */
.pg__head { padding: calc(var(--bar) + 96px) 0 84px; border-bottom: 1px dashed var(--line-2); overflow: hidden; }
.pg__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.pg--doc .pg__grid, .pg--contact .pg__grid { grid-template-columns: minmax(0, 1fr); }
.crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font: 500 11px/1 var(--mono); letter-spacing: 0; color: var(--ink-3); }
.crumbs a { display: inline-block; padding-block: 14px; margin-block: -14px; color: var(--ink-3); transition: color .3s; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs [aria-current] { color: var(--ink-2); }
.pg__h1 { margin-top: 18px; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.05; max-width: 15ch; }
.pg--doc .pg__h1 { max-width: none; }
.pg__lead { max-width: 560px; font-size: 18px; }
.pg__lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pg__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.pg__ctas--c { justify-content: center; }
.pg__meta { margin-top: 26px; font: 500 11px/1 var(--mono); letter-spacing: 0; color: var(--ink-3); }

/* the photograph, in a dashed frame with bracket corners — the V1 identity */
.pg__art { margin: 0; perspective: 1600px; }
.pg__frame { position: relative; aspect-ratio: 3 / 2; padding: 10px; border: 1px dashed rgb(var(--ink-rgb) / .4); transform: rotateY(calc(var(--side, 1) * -8deg)) rotateX(4deg); transform-style: preserve-3d; transition: transform 1.6s var(--ease); }
[dir="rtl"] .pg__frame { --side: -1; }
.pg__art:hover .pg__frame { transform: none; }
.pg__frame::before, .pg__frame::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--orange); }
.pg__frame::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.pg__frame::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }
.pg__frame img { width: 100%; height: 100%; object-fit: cover; display: block; animation: pgZoom 3.2s var(--ease) both; }
@keyframes pgZoom { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
.pg__art figcaption { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--dash); font: 500 11px/1 var(--mono); letter-spacing: 0; color: var(--ink-3); }

/* ── Document rows ── */
.pg__doc { padding: 40px 0 100px; }
.row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; padding: 56px 0; border-bottom: 1px dashed var(--dash); }
.row:last-child { border-bottom: 0; }
.row__side { position: sticky; top: calc(var(--bar) + 32px); align-self: start; }
.row__n { display: block; margin-bottom: 14px; font: 500 11px/1 var(--mono); letter-spacing: 0; color: var(--orange); }
.row__side h2 { font: 300 clamp(24px, 2.3vw, 32px)/1.15 var(--display); color: var(--ink); }

.prose { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose h3 { margin-top: 30px; font: 400 18px/1.3 var(--sans); color: var(--ink); }
.prose h3:first-child { margin-top: 0; }
.prose b, .prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: rgb(239 90 0 / .6); text-underline-offset: 3px; }
.prose a:hover { color: var(--orange); }
.prose ul, .prose ol { display: grid; gap: 0; }
.prose li { position: relative; padding: 12px 0; padding-inline-start: 30px; border-top: 1px dashed var(--dash); }
.prose li:last-child { border-bottom: 1px dashed var(--dash); }
.prose ul > li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 22px; width: 6px; height: 6px; background: var(--orange); border-radius: 1px; }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 16px; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 8px; border-bottom: 1px dashed var(--dash); text-align: start; vertical-align: top; }
.prose th { font-weight: 500; color: var(--ink); }
.pg__faq { margin-top: 4px; }
.pg__faq .qa-item summary { font-size: 17px; }
.pg__faq .qa-item__a > * { overflow: hidden; max-width: 640px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.qa-item.show .qa-item__a > * { padding-bottom: 22px; }

/* ── Related services ── */
.pg__rel { padding: 90px 0; border-top: 1px dashed var(--line-2); }
.rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.rel { position: relative; display: grid; gap: 8px; align-content: start; min-height: 170px; padding: 22px; border: 1px dashed rgb(var(--ink-rgb) / .35); background: rgb(var(--bg-rgb) / .5); transition: border-color var(--beat) var(--ease), transform var(--beat) var(--ease), background var(--beat) var(--ease); }
.rel__n { font: 500 11px/1 var(--mono); letter-spacing: 0; color: var(--orange); }
.rel b { margin-top: 18px; font: 300 22px/1.15 var(--display); color: var(--ink); }
.rel small { font-size: 13.5px; color: var(--ink-3); }
.rel__go { position: absolute; bottom: 20px; inset-inline-end: 20px; font-style: normal; color: var(--ink-3); transition: transform .5s var(--ease), color .5s; }
.rel:hover { border-color: rgb(var(--ink-rgb) / .8); background: rgb(var(--bg-rgb) / .85); transform: translateY(-4px); }
.rel:hover .rel__go { color: var(--orange); transform: translateX(-6px); }
.rel[aria-current] { display: none; }

/* ── Closing call ── */
.pg__cta { position: relative; padding: 130px 0 140px; overflow: hidden; isolation: isolate; border-top: 1px dashed var(--line-2); text-align: center; }
.pg__cta .sub { margin-inline: auto; max-width: 520px; }
.pg__cta .pg__ctas { margin-top: 30px; }
.pg__note { margin-top: 20px; font-size: 13px; color: var(--ink-3); }

/* ── Contact page: the homepage form, under a shorter header ── */
.pg--contact .pg__head { padding-bottom: 40px; border-bottom: 0; }
.contact--page { border-top: 1px dashed var(--line-2); padding-top: 90px; }

@media (max-width: 900px) {
  .pg__head { padding: calc(var(--bar) + 56px) 0 56px; }
  .pg__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pg__frame { transform: none; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 40px 0; }
  .row__side { position: static; }
  .rel-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pg__cta { padding: 90px 0 100px; }
}
@media (max-width: 520px) {
  .rel-grid { grid-template-columns: minmax(0, 1fr); }
  .rel { min-height: 0; }
  .prose { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pg__frame img { animation: none; } }
