/* ==========================================================================
   Zentrabyte Mono — inner pages (About, Services, Work, Contact)
   Builds on mono.css tokens; loaded only on those templates.
   ========================================================================== */

.nc-inner ol:not(.nc-prose ol), .nc-inner dl, .nc-inner dd { margin: 0; padding: 0; list-style: none; }
.nc-inner .nc-content, .nc-inner .nc-content__inner { max-width: none; }

/* ---------- Page hero ---------- */
.phero { position: relative; overflow: hidden; background: var(--black); padding-block: 132px clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .phero { padding-top: 180px; } }
.phero__glow { position: absolute; inset: -30% -10% auto auto; width: min(70vw, 900px); aspect-ratio: 1; background: radial-gradient(circle, rgba(var(--brand-rgb), 0.16), rgba(var(--brand-2-rgb), 0.05) 45%, transparent 70%); pointer-events: none; }
.phero__inner { position: relative; display: grid; gap: clamp(32px, 5vw, 56px); }
.phero__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .phero__grid--aside { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; align-items: end; } }
.phero__main { display: grid; gap: 24px; justify-items: start; }
.phero__title { max-width: 15em; font-size: clamp(2.5rem, 6.4vw, 5.75rem); }
.js .phero__title { opacity: 0; transform: translateY(32px); transition: opacity 1000ms var(--ease-out) 150ms, transform 1100ms var(--ease-out) 150ms; }
.js .is-loaded .phero__title { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .phero__title { opacity: 1; transform: none; } }
.phero__lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.phero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 8px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: -0.02em; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumbs a { display: inline-block; padding-block: 12px; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--fg-strong); padding-block: 12px; }

/* stats in the About hero */
.pstats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pstats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pstats > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.pstats > div:nth-child(even) { padding-left: 20px; }
.pstats dt { font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; color: var(--muted); }
.pstats dd { font-size: clamp(2.5rem, 4.5vw, 3.75rem); line-height: 1; letter-spacing: -0.06em; color: var(--fg-strong); font-variant-numeric: tabular-nums; }

/* jump nav in the Services hero */
.jump { display: grid; gap: 12px; }
.jump ol { border-top: 1px solid var(--line); }
.jump a { display: flex; align-items: center; gap: 16px; min-height: 56px; padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--fg-strong); transition: color var(--dur-fast); }
.jump a:hover { color: var(--accent); }
.jump__n { font-family: var(--font-mono); font-size: 0.875rem; color: var(--accent); }
.jump a > span:nth-child(2) { flex: 1; }
.jump svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transform: rotate(90deg); }

/* contact facts in the Contact hero */
.facts { display: grid; border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 6px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.facts dd { color: var(--fg-strong); overflow-wrap: anywhere; }
.facts dd a { display: inline-block; padding-block: 4px; }

/* ---------- Sections ---------- */
.psection { position: relative; z-index: 2; background: var(--bg); padding-block: clamp(72px, 10vw, 140px); }
.psection + .psection:not(.theme-light) { border-top: 1px solid var(--line); }
.psection--prose { padding-bottom: 0; }
.psection--prose .nc-prose { max-width: 48rem; }
.psplit { display: grid; gap: 40px; }
@media (min-width: 1024px) { .psplit { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
.psplit > div:first-child { display: grid; gap: 20px; align-content: start; }
.psplit .section-head { grid-template-columns: 1fr; margin-bottom: 0; }
.psplit .nc-prose p { max-width: 38em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li, .chips--pick span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: -0.02em;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards--4, .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 14px; min-height: 240px; padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.card--white { border-color: transparent; background: var(--white); }
.card__num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--accent); margin-bottom: auto; padding-bottom: 32px; }
.card p { color: var(--fg); }
.card__meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--fg-strong); }

.clock { justify-content: space-between; }
.clock__time { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; letter-spacing: -0.06em; color: var(--fg-strong); font-variant-numeric: tabular-nums; }

/* ---------- Services ---------- */
.svcs { display: grid; gap: clamp(56px, 8vw, 112px); }
.svc { display: grid; gap: 32px; scroll-margin-top: 120px; }
@media (min-width: 900px) { .svc { grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; } .svc:nth-child(even) { grid-template-columns: 7fr 5fr; } .svc:nth-child(even) .svc__art { order: 2; } }
.svc__art {
  position: relative; aspect-ratio: 4 / 3; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 12.5% 100%,
    var(--surface);
  overflow: hidden;
}
.svc__art .caps__art { inset: 12% 22%; }
.svc__body { display: grid; gap: 20px; justify-items: start; }
.svc__text p { max-width: 36em; color: var(--fg); }
.svc__body .eyebrow { margin-top: 8px; }

.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { display: grid; gap: 12px; align-content: start; padding: 32px 24px 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .step { padding-inline: 0 32px; } .step + .step { padding-left: 24px; border-left: 1px solid var(--line); } }
@media (min-width: 768px) and (max-width: 1199px) { .step:nth-child(3) { padding-left: 0; border-left: 0; } }
.step__num { font-family: var(--font-mono); color: var(--accent); }
.step p { color: var(--fg); max-width: 22em; }

/* ---------- Work grid ---------- */
.pwork__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--fg-strong); transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.tab span { opacity: 0.6; }
.tab:hover { border-color: var(--fg-strong); }
.tab[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--black); }
.tab[aria-pressed="true"] span { opacity: 0.8; }

.pgrid { display: grid; gap: clamp(32px, 4vw, 56px) 24px; }
@media (min-width: 768px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
.pcard[hidden] { display: none; }
.pcard__link { display: grid; gap: 16px; border-radius: 14px; }
.pcard .preview { transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out); }
.js .pcard .preview { filter: none; }
.pcard__link:hover .preview, .pcard__link:focus-visible .preview { transform: translateY(-6px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 30px 120px -30px rgba(var(--brand-rgb), 0.35); }
.pcard__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pcard__meta > div { display: grid; gap: 4px; }
.pcard__visit { color: var(--accent); white-space: nowrap; padding-top: 0.3em; }

/* ---------- Contact ---------- */
.pcontact { display: grid; gap: 40px; }
@media (min-width: 1024px) { .pcontact { grid-template-columns: 8fr 4fr; gap: 64px; align-items: start; } .pcontact__aside { position: sticky; top: 120px; } }

.form { display: grid; gap: 24px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.form__row { display: grid; gap: 24px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: 0.9375rem; color: var(--muted); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: -0.02em; color: var(--fg-strong); padding: 0; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--black); color: var(--fg-strong);
  font: inherit; letter-spacing: -0.01em;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%), linear-gradient(135deg, var(--fg) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.2); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff6b6b; }

.chips--pick label { position: relative; cursor: pointer; }
.chips--pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips--pick span { min-height: 44px; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.chips--pick label:hover span { border-color: var(--fg-strong); }
.chips--pick input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--black); }
.chips--pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: var(--radius); border: 1px solid; }
.notice--ok { border-color: var(--brand); background: rgba(var(--brand-rgb), 0.08); color: var(--fg-strong); }
.notice--err { border-color: #ff6b6b; background: rgba(255, 107, 107, 0.08); color: var(--fg-strong); }
.notice a { color: inherit; }

.pcontact__aside { min-height: 0; gap: 20px; }
.next { display: grid; gap: 0; counter-reset: next; }
.next li { counter-increment: next; display: grid; grid-template-columns: 2.25em 1fr; gap: 8px; padding-block: 16px; border-top: 1px solid var(--line); color: var(--fg); }
.next li::before { content: counter(next, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.875rem; color: var(--accent); padding-top: 0.2em; }

/* testimonials/why reused on inner pages sit on a normal stacking context */
.nc-inner .why, .nc-inner .testimonials { z-index: 2; }
