/* =====================================================================
   Spray Yard – inner pages (services, chrome, aerospace, portfolio,
   about, contact, privacy, cookies, 404). Loaded AFTER styles.css and
   v2.css on inner pages only; the homepage does not load this file, so
   nothing here can change it. Uses the shared tokens from styles.css.
   ===================================================================== */

/* ---------- page hero (shorter than the homepage hero) ---------- */
.ph { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, transparent 92%); }
.ph::after { content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; right: -18vw; top: -30vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,153,0,.10), transparent 70%); pointer-events: none; }
.ph-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(44px, 6vw, 88px) clamp(48px, 6vw, 92px); }
.ph--text .ph-inner { grid-template-columns: minmax(0, 1fr); max-width: 980px; margin-inline: 0; }
.ph h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); font-weight: 850; letter-spacing: -0.035em; line-height: .95; max-width: 15ch; }
.ph h1 .muted-h { display: block; }
.ph--text h1 { max-width: 18ch; }
.ph-lead { margin-top: 24px; color: #cfcfd6; font-size: clamp(1.05rem, 1.3vw, 1.18rem); max-width: 58ch; }
.ph-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ph-media { position: relative; margin: 0; }
.ph-media .ph-frame { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; background: #111; }
.ph-media.is-portrait .ph-frame { aspect-ratio: 4 / 5; max-height: 560px; }
.ph-media picture, .ph-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-media figcaption { margin-top: 12px; display: flex; gap: 10px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #9a9aa3; }
.crumbs { margin: 0 0 26px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #55555d; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); }
.ph-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ph-facts li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #d6d6dc; }
.ph-facts li::before { content: "+ "; color: var(--accent); }
@media (max-width: 960px) {
  .ph-inner { grid-template-columns: minmax(0, 1fr); }
  .ph-media { max-width: 560px; }
  .ph-media.is-portrait .ph-frame { aspect-ratio: 4 / 3; }
}

/* page-hero entrance: light fade/rise, CSS only, skipped for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html.motion .ph-copy > *, html.motion .ph-media { animation: phRise .8s var(--ease) both; }
  html.motion .ph-copy > :nth-child(2) { animation-delay: .05s; }
  html.motion .ph-copy > :nth-child(3) { animation-delay: .1s; }
  html.motion .ph-copy > :nth-child(4) { animation-delay: .16s; }
  html.motion .ph-copy > :nth-child(n+5) { animation-delay: .22s; }
  html.motion .ph-media { animation-delay: .18s; animation-duration: 1s; }
  @keyframes phRise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
}

/* ---------- shared blocks ---------- */
.pg-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 56px); }
.pg-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1; }
.pg-head .section-intro { max-width: 62ch; }
.section--tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: #dcdce2; max-width: 60ch; line-height: 1.55; }
.muted { color: var(--muted); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.two-col--center { align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.frame { position: relative; margin: 0; }
.frame .frame-img { overflow: hidden; border-radius: 10px; background: #111; }
.frame picture, .frame img { width: 100%; height: auto; display: block; }
.frame--43 .frame-img { aspect-ratio: 4 / 3; } .frame--43 img, .frame--34 img { height: 100%; object-fit: cover; }
.frame--34 .frame-img { aspect-ratio: 3 / 4; }
.frame--43 picture, .frame--34 picture { height: 100%; }
.frame figcaption { margin-top: 10px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #8d8d96; }

/* key/value list (facts) */
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.kv dd { margin: 0; font-weight: 600; }
.kv dd a { color: var(--text); text-decoration-color: rgba(255,153,0,.6); text-underline-offset: 4px; }
.kv dd a:hover { color: var(--accent); }
@media (max-width: 560px) { .kv div { grid-template-columns: 1fr; gap: 4px; } }

/* tick list */
.ticks { display: grid; gap: 12px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 30px; color: #d6d6dc; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks strong { color: var(--text); }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; padding: clamp(22px, 2.6vw, 32px); background: linear-gradient(155deg, #18181c 0%, #0f0f11 70%); border: 1px solid var(--line-strong); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: .98rem; }
.card .card-num { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.card .text-link { margin-top: auto; padding-top: 8px; }
a.card { text-decoration: none; color: inherit; transition: border-color .25s, transform .25s var(--ease); }
a.card:hover { border-color: rgba(255,153,0,.6); transform: translateY(-2px); }
@media (max-width: 1000px) { .cards, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards, .cards--2, .cards--4 { grid-template-columns: minmax(0, 1fr); } }

/* materials / tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tags li { padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.03); font-weight: 700; font-size: .92rem; }
.tags li::before { content: "+"; color: var(--accent); margin-right: 8px; font-family: var(--mono); }

/* callout panel */
.callout { position: relative; padding: clamp(26px, 4vw, 48px); border: 1px solid rgba(255,153,0,.35); border-radius: 16px; background: radial-gradient(80% 120% at 0% 0%, rgba(255,153,0,.10), transparent 60%), var(--surface); }
.callout h2, .callout h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 850; letter-spacing: -0.025em; }
.callout p { color: #cfcfd6; margin-top: 14px; max-width: 64ch; }

/* ---------- services page ---------- */
.svc-index { margin-top: 28px; }
.svc-stack .sc-copy h2 { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 850; letter-spacing: -0.025em; margin-bottom: 16px; line-height: 1.02; }
.svc-stack .sc-copy p + p { margin-top: 12px; }
.svc-stack .sc-copy .cap-list { margin: 20px 0 22px; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.sc--lead .sc-inner { border-color: rgba(255,153,0,.45); background: linear-gradient(155deg, #201c16 0%, #0e0e10 62%); }
.svc-small .spec-body h3 { font-family: var(--font-display); font-stretch: 112%; font-weight: 750; font-size: 1.5rem; margin: 0; line-height: 1.1; }
.svc-small .spec-body .cap-list { margin: 8px 0 10px; }
.svc-small .spec-thumb { aspect-ratio: 16 / 10; }

/* ---------- chrome page ---------- */
.tints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.tint { padding: 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-2); }
.tint-chip { height: 86px; border-radius: 8px; margin-bottom: 14px; border: 1px solid rgba(255,255,255,.14); }
.tint h3 { font-size: 1.1rem; }
.tint p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.tc-silver { background: var(--chrome); }
.tc-gold { background: linear-gradient(135deg, #fff1c4 0%, #c8962e 30%, #ffe08a 52%, #8a5c12 76%, #f2c76a 100%); }
.tc-copper { background: linear-gradient(135deg, #ffd2b0 0%, #b5602d 30%, #f7a16c 52%, #6e3216 76%, #e48a55 100%); }
.tc-rose { background: linear-gradient(135deg, #ffe0dc 0%, #c07a78 30%, #f6b9b0 52%, #7d4744 76%, #e7a39b 100%); }
.tc-custom { background: conic-gradient(from 200deg, #6f5bd6, #3fa7c9, #5cb85c, #e8c35a, #e0704f, #b45bd6, #6f5bd6); }
@media (max-width: 1000px) { .tints { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.proc { display: grid; gap: 18px; counter-reset: none; }
.proc-step { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line-strong); border-radius: 16px; background: linear-gradient(155deg, #17171a 0%, #0e0e10 70%); }
.proc-step:nth-child(even) .proc-media { order: 2; }
.proc-media { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; background: #111; }
.proc-media picture, .proc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proc-media--swatch { display: grid; place-items: center; background: radial-gradient(70% 70% at 30% 20%, rgba(255,255,255,.16), transparent 60%), linear-gradient(160deg, #2a2a30, #0c0c0e); }
.proc-media--swatch span { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #cfcfd6; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(10,10,11,.6); }
.proc-num { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px rgba(255,153,0,.45); display: block; margin-bottom: 12px; }
.proc-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.proc-copy p { color: var(--muted); max-width: 52ch; }
.proc-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 4px; background: rgba(10,10,11,.85); border: 1px solid var(--line-strong); color: #d6d6dc; }
@media (max-width: 820px) { .proc-step { grid-template-columns: minmax(0, 1fr); } .proc-step:nth-child(even) .proc-media { order: 0; } }

.express { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.express-num { font-family: var(--font-display); font-weight: 900; font-stretch: 122%; font-size: clamp(5rem, 14vw, 11rem); line-height: .85; letter-spacing: -0.04em; }
.express-num small { font-size: .4em; letter-spacing: 0; }
@media (max-width: 700px) { .express { grid-template-columns: minmax(0, 1fr); } }

/* FAQ (native details/summary: works with no JS, keyboard friendly) */
.faq { border-top: 1px solid var(--line-strong); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 4px; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq .faq-a { padding: 0 4px 24px; color: #cfcfd6; max-width: 70ch; }
.faq .faq-a p + p { margin-top: 10px; }

/* ---------- aerospace page ---------- */
.ad-hero { position: relative; isolation: isolate; overflow: hidden; background: #07080a; border-bottom: 1px solid var(--line); }
.ad-hero .sector-media img { filter: grayscale(.35) contrast(1.05) brightness(.9); object-position: 60% 50%; }
.ad-hero .sector-media::after { background: linear-gradient(90deg, rgba(7,8,10,.94) 0%, rgba(7,8,10,.78) 45%, rgba(7,8,10,.5) 100%), linear-gradient(180deg, rgba(7,8,10,.5) 0%, rgba(7,8,10,0) 30%, rgba(7,8,10,.85) 100%); }
.ad-hero .blueprint { opacity: .4; }
.ad-hero .ph-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.ad-hero h1, .ad-hero .ph-lead { text-shadow: 0 2px 18px rgba(0,0,0,.7); }
@media (max-width: 960px) { .ad-hero .ph-inner { grid-template-columns: minmax(0, 1fr); } .ad-hero .sector-media::after { background: linear-gradient(180deg, rgba(7,8,10,.8), rgba(7,8,10,.9)); } }
.note { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.03); color: #cfcfd6; font-size: .95rem; border-radius: 0 8px 8px 0; }

/* ---------- portfolio ---------- */
.pf-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(10,10,11,.94); border-bottom: 1px solid var(--line); }
.pf-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-filter { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.03); color: var(--text); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.pf-filter span { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.pf-filter:hover { border-color: var(--accent); }
.pf-filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pf-filter[aria-pressed="true"] span { color: rgba(10,10,11,.7); }
.pf-count { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 960px) {
  .pf-bar-inner { padding-inline: 0; }
  .pf-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter); width: 100%; }
  .pf-filters::-webkit-scrollbar { display: none; }
  .pf-filter { white-space: nowrap; }
  .pf-count { display: none; }
}
.pf-grid { columns: 3 300px; column-gap: 18px; }
.pf-item { break-inside: avoid; margin: 0 0 18px; }
.pf-item[hidden] { display: none; }
.pf-link { display: block; position: relative; overflow: hidden; border-radius: 8px; background: #111; text-decoration: none; color: inherit; }
.pf-link img { width: 100%; height: auto; display: block; }
html.full .pf-link img { transition: transform .8s var(--ease); }
html.full .pf-link:hover img { transform: scale(1.03); }
.pf-link:focus-visible { outline-offset: 3px; }
.pf-item figcaption { display: flex; align-items: baseline; gap: 10px; padding: 10px 2px 0; font-size: .92rem; font-weight: 600; color: #dcdce2; }
.pf-item figcaption .fig-cat { flex: none; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pf-zoom { position: absolute; right: 10px; top: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,10,11,.75); border: 1px solid var(--line-strong); opacity: 0; transition: opacity .25s; }
.pf-zoom svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
.pf-link:hover .pf-zoom, .pf-link:focus-visible .pf-zoom { opacity: 1; }
html.lite .pf-zoom { opacity: 1; }
html.motion .pf-item.pf-in { animation: pfIn .5s ease-out both; }
@keyframes pfIn { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.motion .pf-item.pf-in { animation: none; } }

/* lightbox (built by js/pages.js) */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(6,6,7,.96); color: var(--text); }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.lb-count { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(12px, 7vw, 96px); min-height: 0; }
.lb-stage picture { display: contents; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-cap { padding: 14px var(--gutter) 22px; text-align: center; font-weight: 600; color: #dcdce2; }
.lb-cap .fig-cat { display: block; flex: none; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(16,16,18,.85); color: var(--text); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: clamp(8px, 2vw, 28px); } .lb-next { right: clamp(8px, 2vw, 28px); }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: -6px; transform: none; } .lb-stage { padding-bottom: 54px; } }
html.lb-open { overflow: hidden; }
html.lb-open .cursor { display: none; }

/* ---------- about ---------- */
.prose { max-width: 70ch; }
.prose p { color: #d4d4da; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 16px; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.prose ul { display: grid; gap: 8px; margin: 14px 0 0; }
.prose ul li { position: relative; padding-left: 22px; color: #d4d4da; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--text); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-side h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.contact-side .contact-list { margin-top: 18px; }
.contact-block + .contact-block { margin-top: 44px; }
.contact-block h3 { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 700; font-stretch: 100%; }
.contact-block address { color: #d4d4da; line-height: 1.7; }
.contact-block .text-link { margin-top: 12px; }
.hours-list { margin: 0; border-top: 1px solid var(--line); }
.hours-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-list dt { color: var(--muted); }
.hours-list dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); cursor: pointer; font-weight: 600; font-size: .95rem; transition: border-color .2s, background-color .2s; }
.choice label::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); transition: border-color .2s, box-shadow .2s; }
.choice input:checked + label { border-color: var(--accent); background: rgba(255,153,0,.08); }
.choice input:checked + label::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--accent); }
.choice input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-size: .9rem; font-weight: 700; padding: 0; margin-bottom: 8px; }
.job-sheet fieldset.field legend::before { counter-increment: field; content: counter(field, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-size: .78rem; margin-right: 10px; }
.field-hint { color: var(--muted); font-size: .85rem; margin-top: -2px; }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(48px, 6vw, 88px) var(--section-y); }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc p { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.legal-toc ol { display: grid; gap: 6px; border-left: 1px solid var(--line-strong); padding-left: 14px; }
.legal-toc a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.legal-toc a:hover { color: var(--accent); }
.legal-meta { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: minmax(0, 1fr); } .legal-toc { position: static; } }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: #d4d4da; }
.legal th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ---------- closing CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(70% 120% at 0% 100%, rgba(255,153,0,.12), transparent 60%), var(--bg-2); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: end; padding-block: clamp(64px, 8vw, 112px); }
.cta-inner h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 850; letter-spacing: -0.035em; line-height: .95; max-width: 16ch; }
.cta-inner p { margin-top: 16px; color: var(--muted); max-width: 54ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: minmax(0, 1fr); } .cta-actions { justify-content: flex-start; } }

/* ---------- 404 ---------- */
.nf { min-height: calc(100svh - var(--header-h) - 120px); display: grid; align-items: center; }
.nf-code { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(7rem, 24vw, 18rem); line-height: .8; letter-spacing: -0.05em; margin-bottom: 18px; }

/* small screens: buttons wrap rather than overflow */
@media (max-width: 480px) { .ph-ctas .btn, .cta-actions .btn { white-space: normal; text-align: center; } }
.pg-h { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1; }
.svc-small .spec-body .btn { align-self: flex-start; margin-top: 4px; }
.proc-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 820px) { .proc-step { grid-template-columns: minmax(0, 1fr); } }
.ph h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 17ch; }
.pf-item figure { margin: 0; }
.lb { height: 100vh; height: 100dvh; }
.lb-stage { overflow: hidden; }
.lb-stage img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); max-width: min(100%, 1400px); }
@media (max-width: 700px) { .lb-stage img { max-height: calc(100dvh - 210px); } }
.lb { background: rgba(6,6,7,.985); }

/* Row-first masonry (enabled by js/pages.js): photos read left to right, top to bottom */
.pf-grid.pf-masonry { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-rows: 2px; column-gap: 18px; row-gap: 0; align-items: start; }
.pf-grid.pf-masonry .pf-item { margin: 0; padding-bottom: 18px; }
@media (max-width: 640px) { .pf-grid.pf-masonry { grid-template-columns: minmax(0, 1fr); } }

/* About: paint mixing image with fade */
.mix-fig .frame-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.mix-fig .frame-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mix-fade::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.45) 28%, rgba(10,10,11,0) 60%),
              linear-gradient(0deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,0) 35%); }
.mix-ticks { margin-top: 22px; }
.mix-fig picture { display:block; height: 100%; }
