/* Stalworth interior public pages: About, Services, service details, Our work, Contact, Privacy.
   Builds on /home2.css (tokens, header, footer, buttons, cards, closing panel) without changing it. */

/* Keep in-page targets clear of the sticky header (only interior pages load this file). */
html { scroll-padding-top: 124px; }
@media (max-width: 760px) { html { scroll-padding-top: 92px; } }
.i-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.h2 .h2-nav a[aria-current="page"]:not(.h2-nav-cta) { background-size: 100% 2px; }

/* Page title block: blueprint grid with a red rule that draws down once on load. */
.i-hero { position: relative; padding: 56px 0 64px; border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }
.i-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .92) 48%, rgba(255, 255, 255, 0) 82%); pointer-events: none; }
.i-hero-inner { position: relative; padding-left: 32px; }
.i-hero-inner::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; background: var(--red); transform-origin: top center; animation: i-draw .9s var(--ease) .2s both; }
.i-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.i-crumbs li + li::before { content: "/"; margin: 0 10px; color: #9a9a9a; }
.i-crumbs a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.i-crumbs a:hover { text-decoration-color: var(--red); }
.i-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.h2 .i-hero h1 { max-width: 15ch; font-size: clamp(44px, 5.6vw, 80px); line-height: .94; }
.i-intro { margin: 24px 0 0; max-width: 620px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.i-hero .h2-actions { margin-top: 30px; }

/* About */
.i-meet { padding-top: 88px; }
.i-paths { padding: 0 0 104px; }
.i-path-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 4px solid var(--ink); }
.i-path-list li + li { border-left: 1px solid var(--line); }
.i-path-list a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px 28px 32px; text-decoration: none; transition: background-color .2s; }
.i-path-list a:hover { background: var(--paper-2); }
.i-path-list strong { font-family: var(--display); font-stretch: condensed; font-size: 26px; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.i-path-list a:hover strong { color: var(--red); }
.i-path-list span { color: var(--muted); }

/* Services */
.i-builds { padding: 72px 0 96px; }
.i-builds .h2-build-body h3, .i-builds .h2-third-body h3 { margin-bottom: 0; }
.i-directory { padding: 96px 0 104px; background: var(--paper-2); border-top: 1px solid var(--line); }
.i-directory-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 36px; }
.i-directory-head p { margin: 0; max-width: 460px; color: var(--muted); font-size: 18px; }
.i-jump ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.i-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.i-jump a:hover { background: var(--ink); color: #fff; }
.service-directory-grid { columns: 3; column-gap: 24px; }
.service-group { break-inside: avoid; margin: 0 0 24px; padding: 28px 28px 20px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); }
.service-group:target { outline: 3px solid var(--red); outline-offset: 2px; }
.h2 .service-group h3 { margin: 0 0 14px; font-size: 26px; }
.service-group ul { margin: 0; padding: 0; list-style: none; }
.service-group li { position: relative; padding: 10px 0 10px 18px; border-bottom: 1px solid #eeece8; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.service-group li:last-child { border-bottom: 0; }
.service-group li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; background: var(--red); }

/* Service detail pages */
.i-plan { padding: 96px 0; }
.i-plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.i-lede { margin: 22px 0 28px; max-width: 520px; color: var(--muted); font-size: 18px; }
.i-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; max-width: 520px; }
.i-checklist li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--red); font-weight: 700; }
.i-photo { margin: 0; }
.i-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--ink); padding: 8px; background: #fff; }
.i-photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.i-concept { padding: 0 0 104px; }
.i-concept-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-top: 4px solid var(--ink); }
.i-concept-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.i-concept-grid > div { display: flex; flex-direction: column; justify-content: center; padding: 36px 40px; }
.h2 .i-concept h2 { font-size: clamp(28px, 3vw, 40px); }
.i-concept p { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.i-concept .i-concept-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 24px; color: var(--ink); }

/* Our work */
.i-work { padding: 72px 0 104px; }
.i-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.i-shot { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.i-shot-lead { grid-column: 1 / -1; }
.i-shot a { display: block; }
.i-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.i-shot-lead img { aspect-ratio: 16 / 8; object-position: 50% 45%; }
.i-shot a:hover img, .i-shot a:focus-visible img { transform: scale(1.03); }
.i-shot a:focus-visible { outline-offset: -5px; outline-color: #fff; box-shadow: inset 0 0 0 5px var(--red); }
.i-shot figcaption { position: absolute; left: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 10px 14px; background: #fff; border-top: 3px solid var(--red); font-size: 14px; pointer-events: none; }
.i-shot figcaption span { color: var(--muted); }

/* Contact */
.i-contact { padding: 80px 0 104px; }
.i-contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.i-contact-side .placeholder-copy { margin: 22px 0 26px; max-width: 460px; color: var(--muted); font-size: 18px; }
.i-contact-side .i-required-note { margin: 0; font-size: 15px; }
.i-form-card { padding: 36px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); box-shadow: 12px 12px 0 var(--paper-2); }
#inquiry-form { display: grid; gap: 20px; }
#inquiry-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
#inquiry-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 700; }
#inquiry-form input, #inquiry-form select, #inquiry-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #bdbab3; border-radius: 0; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--body); }
#inquiry-form textarea { resize: vertical; min-height: 170px; }
#inquiry-form select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
#inquiry-form input:focus-visible, #inquiry-form select:focus-visible, #inquiry-form textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 0; border-color: var(--ink); }
#inquiry-form input:user-invalid, #inquiry-form select:user-invalid, #inquiry-form textarea:user-invalid { border-color: var(--red); border-width: 2px; }
#inquiry-form .honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#inquiry-form .small-note { margin: 0; color: var(--muted); font-size: 15px; }
#inquiry-form .text-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
#inquiry-form .button { justify-self: start; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; background: var(--red); color: #fff; font: 700 16px var(--body); cursor: pointer; transition: background-color .2s; }
#inquiry-form .button:hover { background: var(--red-deep); }
#inquiry-form .button:disabled { background: #6f6f6f; cursor: progress; }
#form-status { margin: 0; font-size: 16px; font-weight: 600; }
#form-status:not(:empty) { padding: 14px 16px; background: var(--paper-2); border-left: 4px solid var(--ink); }

/* Privacy */
.i-prose-wrap { padding: 80px 0 112px; }
.i-prose { max-width: 720px; }
.h2 .i-prose h2 { margin: 48px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: clamp(28px, 3vw, 38px); }
.h2 .i-prose h2:first-child { margin-top: 0; }
.i-prose p { margin: 18px 0 0; font-size: 18px; line-height: 1.7; color: #2b2b2b; }
.i-prose .text-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }

@keyframes i-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 960px) {
  .i-directory-head, .i-plan-grid, .i-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-directory-grid { columns: 2; }
  .i-path-list { grid-template-columns: 1fr; }
  .i-path-list li + li { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .i-hero { padding: 36px 0 44px; }
  .i-hero-inner { padding-left: 20px; }
  .i-hero-inner::before { width: 4px; }
  .i-crumbs ol { margin-bottom: 16px; }
  .i-intro { font-size: 17px; }
  .i-meet { padding-top: 64px; }
  .i-paths, .i-concept { padding-bottom: 72px; }
  .i-path-list a { padding: 22px 4px 24px; }
  .i-builds { padding: 48px 0 72px; }
  .i-directory, .i-plan, .i-work { padding: 64px 0 72px; }
  .service-directory-grid { columns: 1; }
  .service-group { margin-bottom: 16px; padding: 22px 20px 14px; }
  .i-jump ul { margin-bottom: 28px; }
  .i-jump a { font-size: 14px; padding: 0 12px; }
  .i-checklist { grid-template-columns: 1fr; }
  .i-concept-grid { grid-template-columns: 1fr; }
  .i-concept-grid img { height: auto; }
  .i-concept-grid > div { padding: 26px 22px 30px; }
  .i-gallery { grid-template-columns: 1fr; }
  .i-shot-lead img { aspect-ratio: 4 / 3; }
  .i-contact { padding: 56px 0 72px; }
  .i-form-card { padding: 24px 18px; box-shadow: none; }
  #inquiry-form .form-grid { grid-template-columns: 1fr; }
  #inquiry-form .button { justify-self: stretch; }
  .i-prose-wrap { padding: 56px 0 80px; }
  .i-prose p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .i-hero-inner::before { animation: none; transform: none; }
  .i-shot a:hover img, .i-shot a:focus-visible img { transform: none; }
}

@media (forced-colors: active) {
  .i-hero::before { display: none; }
  .i-hero-inner::before { background: CanvasText; }
}

/* Service detail title block: copy left, the service illustration right in a drawing frame. */
.i-hero-split .i-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); column-gap: 64px; align-items: start; }
.i-hero-split .i-hero-inner > :not(.i-hero-figure) { grid-column: 1; }
.h2 .i-hero-split h1 { font-size: clamp(40px, 4.6vw, 68px); }
.i-hero-figure { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--ink); }
.i-hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 960px) {
  .i-hero-split .i-hero-inner { grid-template-columns: 1fr; }
  .i-hero-figure { grid-column: 1; grid-row: auto; margin-top: 36px; max-width: 640px; }
}

/* Footer contact line on interior pages (call, text, email). */
.i-footer-contact { margin: 14px 0 0; max-width: 420px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.i-footer-contact a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; overflow-wrap: anywhere; }
