/* Shared inner-page rhythm: stone white, work photography and plain language. */
.inner-page { background: var(--paper); color: var(--ink); }
.inner-page :focus-visible { outline-color: var(--accent); }
.inner-page .site-footer :focus-visible { outline-color: var(--gold-light); }
.inner-page .btn-primary { background: var(--accent); color: var(--paper); border-radius: 3px; letter-spacing: .02em; }
.inner-page .btn-primary:hover { background: var(--accent-hover); }
.inner-page main { overflow-wrap: break-word; }
.inner-wrap { margin-inline: var(--page-gutter); }
.inner-section { padding: 80px var(--page-gutter); }
.inner-eyebrow { font-size: 13px; color: var(--paper-muted); line-height: 1.8; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.inner-page h1, .inner-page h2, .inner-page h3 { font-weight: 500; letter-spacing: -.025em; }
.inner-page h1 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.5; text-wrap: balance; }
.inner-page h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.55; text-wrap: balance; }
.inner-body { color: var(--paper-muted); font-size: 16px; line-height: 1.95; }
.inner-small { color: var(--paper-muted); font-size: 14px; line-height: 1.9; }
.inner-heading { padding: 64px var(--page-gutter) 56px; }
.inner-heading > .inner-eyebrow { margin-bottom: 24px; }
.inner-heading-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; }
.inner-heading-note { max-width: 31em; justify-self: end; }
.inner-heading-note > p { color: var(--paper-muted); font-size: 16px; line-height: 1.95; }
.inner-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 8px 0; margin-top: 14px; border-bottom: 1px solid var(--paper-rule); text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.8; }
.inner-link > span { color: var(--accent); font-size: 20px; transition: transform .2s; }
.inner-link:hover > span { transform: translateX(3px); }
.inner-image { overflow: hidden; background: var(--paper-alt); }
.inner-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inner-page figure > figcaption { margin-top: 14px; color: var(--paper-muted); font-size: 13px; line-height: 1.8; }
.section-split { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 36px; }
.section-split h2 { margin-top: 18px; }
.section-split > p { max-width: 28em; }
.chapter-number { color: var(--accent); font-size: 14px; }
.inner-cta { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 72px var(--page-gutter) 88px; }
.inner-cta h2 { margin-top: 20px; }
.inner-cta > div > p:last-child { margin-top: 18px; color: var(--paper-muted); font-size: 16px; line-height: 1.9; }
.inner-cta-actions { display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; }
.inner-cta-actions .btn-primary { min-width: 230px; }

/* Service navigation and five substantive chapters. */
.service-jump { position: static; padding: 18px var(--page-gutter); display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 4px; border-block: 1px solid var(--paper-rule); background: var(--paper-alt); }
.service-jump a { display: inline-flex; align-items: center; gap: 10px; padding-block: 12px; min-height: 44px; text-decoration: none; color: var(--ink); font-size: 14px; }
.service-jump a > span { color: var(--accent); font-size: 12px; }
.service-jump a:hover { color: var(--accent); }
.service-chapter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; padding: 72px 0; border-bottom: 1px solid var(--paper-rule); scroll-margin-top: 108px; }
.service-chapter:target .chapter-number { font-weight: 700; }
.service-chapter:target h2 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.service-chapter h2 { margin-top: 18px; }
.service-chapter .chapter-lead { font-size: 18px; line-height: 1.9; margin: 22px 0 16px; }
.service-chapter .inner-body { max-width: 32em; }
.service-check { border-left: 2px solid var(--accent); padding-left: 18px; margin-top: 24px; }
.service-check h3 { font-size: 14px; margin-bottom: 7px; }
.service-check p { color: var(--paper-muted); font-size: 14px; line-height: 1.9; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin-top: 24px; color: var(--paper-muted); font-size: 13px; line-height: 1.9; }
.service-tags li + li::before { content: '·'; margin-right: 16px; color: var(--accent); }
.service-chapter-photo .inner-image { aspect-ratio: 4 / 3; }
.service-chapter:nth-child(3) .inner-image { aspect-ratio: 4 / 5; }
.service-chapter:nth-child(3) img { object-position: center 60%; }
.materials-section { margin-top: 0; background: var(--paper-alt); }
.material-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; gap: 28px; margin-top: 40px; }
.material-list li { padding-top: 20px; border-top: 1px solid var(--paper-rule); }
.material-list h3 { font-size: 18px; line-height: 1.8; }
.material-list p { color: var(--paper-muted); font-size: 14px; line-height: 1.9; margin-top: 10px; }
.materials-section > .inner-small { margin-top: 32px; }

/* Process: a work-site introduction and readable six-step sequence. */
.process-overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; padding-bottom: 72px; }
.process-overview .inner-image { aspect-ratio: 4 / 3; }
.process-overview-copy h2 { margin: 20px 0; }
.process-phases { margin-top: 28px; list-style: none; }
.process-phases li { display: flex; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--paper-rule); padding: 14px 0; font-size: 14px; color: var(--paper-muted); line-height: 1.8; }
.process-phases span { color: var(--ink); }
.process-timeline { display: grid; grid-template-columns: .8fr 1.4fr; gap: 88px; background: var(--paper-alt); align-items: start; }
.timeline-intro { position: sticky; top: 128px; }
.timeline-intro h2 { margin: 20px 0 24px; }
.timeline-intro .inner-body { max-width: 23em; }
.process-steps { list-style: none; }
.process-step { display: grid; grid-template-columns: 44px 1fr; gap: 24px; border-top: 1px solid var(--paper-rule); padding: 32px 0; }
.process-step:first-child { padding-top: 20px; }
.process-step:last-child { padding-bottom: 0; }
.process-number { color: var(--accent); font-size: 18px; line-height: 1.8; }
.process-step h3 { font-size: 23px; line-height: 1.8; margin: 8px 0 12px; }
.step-note { font-size: 14px; color: var(--paper-muted); line-height: 1.9; padding-left: 16px; border-left: 2px solid var(--paper-rule); margin-top: 18px; }
.preparation-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin-top: 40px; }
.preparation-list li { border-top: 1px solid var(--paper-rule); padding-top: 20px; }
.preparation-list span { font-size: 14px; color: var(--accent); }
.preparation-list h3 { font-size: 20px; margin: 16px 0 12px; line-height: 1.7; }
.preparation-list p { font-size: 15px; color: var(--paper-muted); line-height: 1.9; }
.faq-section { display: grid; grid-template-columns: .9fr 1.4fr; gap: 64px; background: var(--paper-alt); align-items: start; }
.faq-heading h2 { margin: 18px 0; }
.faq-list { border-top: 1px solid var(--paper-rule); }
.faq-list details { border-bottom: 1px solid var(--paper-rule); }
.faq-list summary { list-style: none; min-height: 68px; padding: 22px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; font-size: 16px; line-height: 1.8; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { color: var(--accent); font-size: 22px; line-height: 1; flex-shrink: 0; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details > div { padding: 0 32px 24px 0; color: var(--paper-muted); font-size: 15px; line-height: 2; }

/* Portfolio case page: position buttons and the photo zoom dialog. Layout lives in work-media.css. */
.case-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.case-filter-button { min-height: 44px; padding: 10px 18px; background: transparent; border: 1px solid var(--paper-rule); border-radius: 3px; color: var(--ink); font-size: 14px; line-height: 1.7; cursor: pointer; }
.case-filter-button:hover { border-color: var(--accent); }
.case-filter-button[aria-pressed='true'] { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.photo-dialog { margin: auto; padding: 60px 24px 20px; max-width: min(1280px, 94vw); max-height: 94svh; width: fit-content; background: var(--paper); color: var(--ink); border: 0; overflow-y: auto; }
.photo-dialog::backdrop { background: rgba(33,35,31,.88); }
.photo-dialog-close { position: absolute; top: 8px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--paper-rule); color: var(--ink); cursor: pointer; }
.photo-dialog img { display: block; max-width: 100%; max-height: calc(94svh - 140px); width: auto; height: auto; margin-inline: auto; object-fit: contain; }
.photo-dialog figcaption { padding-top: 14px; font-size: 14px; line-height: 1.8; }

/* Contact: a quiet preparation column beside a clearly grouped form. */
.error-content { min-height: 65svh; display: grid; align-items: center; }
.error-copy { max-width: 760px; }
.error-number { font-size: 72px; line-height: 1; color: var(--accent); margin-bottom: 28px; }
.error-copy h1 { margin: 20px 0; }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.error-actions .inner-link { margin-top: 0; }
.information-content { max-width: 900px; padding-bottom: 80px; }
.information-content section { padding: 32px 0; border-top: 1px solid var(--paper-rule); }
.information-content h2 { font-size: 25px; margin-bottom: 16px; }
.inquiry-privacy a { color: var(--ink); display: inline-block; min-height: 44px; padding-block: 10px; text-underline-offset: 5px; }

.contact-content { display: grid; grid-template-columns: .85fr 1.25fr; gap: clamp(40px, 6vw, 88px); align-items: start; padding-bottom: 80px; }
.contact-guide .inner-image { aspect-ratio: 4 / 3; }
.contact-guide .inner-image img { object-position: center 60%; }
.contact-guide-copy { margin-top: 32px; }
.contact-guide-copy h2 { font-size: 26px; margin: 16px 0 24px; }
.contact-preparation { list-style: none; }
.contact-preparation > li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; border-top: 1px solid var(--paper-rule); padding: 18px 0; }
.contact-preparation > li > span { color: var(--accent); font-size: 13px; line-height: 1.8; }
.contact-preparation h3 { font-size: 16px; line-height: 1.8; margin-bottom: 5px; }
.contact-preparation p { color: var(--paper-muted); font-size: 14px; line-height: 1.9; }
.contact-area { border-top: 1px solid var(--paper-rule); padding-top: 20px; color: var(--paper-muted); font-size: 14px; line-height: 1.9; }
.contact-area > span { display: block; color: var(--ink); margin-bottom: 8px; }
.inquiry-panel { background: #FAF9F6; border: 1px solid var(--paper-rule); padding: clamp(24px, 3vw, 48px); }
.inquiry-panel h2 { margin-top: 16px; font-size: 32px; }
.inquiry-intro { margin: 16px 0 30px; font-size: 14px; }
.inquiry-panel fieldset { border: 0; margin-top: 24px; min-width: 0; }
.inquiry-panel legend { padding-bottom: 20px; font-size: 15px; font-weight: 500; color: var(--ink); }
.inquiry-panel legend > span { font-size: 12px; color: var(--paper-muted); font-weight: 400; margin-left: 12px; }
.inquiry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inquiry-field { margin-bottom: 20px; min-width: 0; }
.field-help { margin-top: 8px; color: var(--paper-muted); font-size: 13px; line-height: 1.8; }
.inquiry-field label { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.8; margin-bottom: 8px; }
.required-note { color: var(--paper-muted); font-size: 12px; }
.inquiry-field input, .inquiry-field select, .inquiry-field textarea { display: block; width: 100%; min-height: 50px; padding: 12px 14px; background: var(--paper); border: 1px solid #7D8075; color: var(--ink); border-radius: 3px; font-size: 16px; font-weight: 400; line-height: 1.7; }
.inquiry-field input::placeholder, .inquiry-field textarea::placeholder { color: var(--paper-muted); opacity: 1; }
.inquiry-field textarea { resize: vertical; min-height: 160px; }
.inquiry-field select { padding-right: 28px; }
.inquiry-field input:focus, .inquiry-field select:focus, .inquiry-field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.inquiry-field .input-validation-error { border-color: #9D3329; }
.field-error { display: block; color: #9D3329; font-size: 13px; line-height: 1.8; margin-top: 5px; }
.field-validation-valid { display: none; }
.message-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; color: var(--paper-muted); font-size: 12px; line-height: 1.8; }
.message-meta > span { white-space: nowrap; }
.inquiry-privacy { color: var(--paper-muted); font-size: 13px; line-height: 1.9; border-top: 1px solid var(--paper-rule); padding-top: 20px; margin-bottom: 20px; }
.inquiry-submit { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 54px; padding: 16px 22px; background: var(--accent); color: var(--paper); border: 0; border-radius: 3px; cursor: pointer; font-size: 15px; line-height: 1.7; }
.inquiry-submit:hover { background: var(--accent-hover); }
.inquiry-submit:disabled { cursor: wait; }
.submit-status { color: var(--paper-muted); font-size: 13px; margin-top: 10px; line-height: 1.8; }
.form-feedback { padding: 20px; margin-bottom: 28px; border: 1px solid; font-size: 14px; line-height: 1.9; }
.form-feedback h3 { font-size: 18px; margin-bottom: 8px; }
.form-success { border-color: #5A6752; background: #EEF0E8; color: #3D4B36; }
.form-error-summary { border-color: #9D3329; color: #9D3329; background: #F8EFEB; }
.form-error-summary ul { padding-left: 22px; }
.validation-summary-valid { display: none; }
.contact-photo-note { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; background: var(--paper-alt); }
.contact-photo-note h2 { margin-top: 18px; }

@media (max-width: 1100px) {
  .inner-heading-grid { gap: 40px; }
  .service-chapter { gap: 40px; }
  .process-overview { gap: 36px; }
  .process-timeline { gap: 48px; }
  .faq-section { gap: 40px; }
  .contact-content { gap: 40px; }
  .inquiry-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 900px) {
  .inner-heading { padding-block: 44px 40px; }
  .inner-section { padding-block: 64px; }
  .service-jump { column-gap: 24px; }
  .service-chapter { gap: 32px; padding-block: 56px; }
  .service-chapter .chapter-lead { font-size: 17px; }
  .service-chapter .inner-body { font-size: 15px; }
  .material-list { grid-template-columns: repeat(2, 1fr); }
  .process-overview { padding-bottom: 56px; }
  .process-timeline { grid-template-columns: 1fr 1.5fr; gap: 40px; }
  .timeline-intro { position: static; }
  .process-step { gap: 16px; grid-template-columns: 32px 1fr; }
  .preparation-list { gap: 24px; }
  .faq-section { grid-template-columns: 1fr; gap: 32px; }
  .contact-content { grid-template-columns: 1fr; gap: 48px; padding-bottom: 64px; }
  .contact-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-guide-copy { margin-top: 0; }
  .contact-guide .inner-image { aspect-ratio: 4 / 5; }
  .inquiry-panel { grid-row: 1; }
  .inquiry-row { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 700px) {
  .inner-heading-grid { grid-template-columns: 1fr; gap: 24px; }
  .inner-heading-note { justify-self: start; }
  .inner-heading-note > p { font-size: 15px; }
  .service-chapter { grid-template-columns: 1fr; gap: 28px; }
  .service-chapter .inner-body { font-size: 16px; }
  .service-chapter:nth-child(3) .inner-image { aspect-ratio: 5 / 4; }
  .section-split { flex-direction: column; align-items: start; gap: 24px; }
  .process-overview { grid-template-columns: 1fr; gap: 28px; }
  .process-timeline { grid-template-columns: 1fr; gap: 40px; }
  .timeline-intro .inner-body { max-width: none; }
  .preparation-list { grid-template-columns: 1fr; gap: 28px; }
  .preparation-list h3 { margin-top: 12px; }
  .contact-guide { grid-template-columns: 1fr; gap: 28px; }
  .contact-guide .inner-image { aspect-ratio: 5 / 4; }
  .contact-photo-note { grid-template-columns: 1fr; gap: 24px; }
  .inner-cta { flex-direction: column; align-items: start; gap: 32px; padding-block: 64px; }
}
@media (max-width: 480px) {
  .inner-page h1 { font-size: 30px; }
  .inner-page h2 { font-size: 27px; }
  .inner-heading { padding-block: 36px; }
  .inner-heading > .inner-eyebrow { margin-bottom: 18px; }
  .inner-heading-note > p > br { display: none; }
  .service-jump { column-gap: 20px; }
  .service-jump a { font-size: 13px; }
  .material-list { gap: 28px 20px; }
  .material-list h3 { font-size: 17px; }
  .process-step h3 { font-size: 21px; }
  .inquiry-row { grid-template-columns: 1fr; gap: 0; }
  .inquiry-panel { padding: 24px 20px; }
  .message-meta { flex-wrap: wrap; gap: 4px; }
  .photo-dialog { padding-inline: 12px; }
  .inner-cta-actions .btn-primary { min-width: 0; }
}

/* Services with reviewed cases show the same before/after evidence as the case wall. */
.service-case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; overflow: hidden; border-radius: 14px; text-decoration: none; }
.service-case-pair > span { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-alt); }
.service-case-pair img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-case-pair em { position: absolute; top: 12px; left: 10px; padding: 3px 10px; border-radius: 20px; background: rgba(243,241,236,.9); color: var(--ink); font-size: 12px; font-style: normal; }
.service-case-pair > span:last-child em { background: var(--accent); color: var(--paper); }
@media (max-width: 480px) { .service-case-pair em { top: 8px; left: 7px; padding-inline: 8px; font-size: 11px; } }

/* Marks on before photos, wherever a case photo appears. They stay in the page layer, never in the image,
   so labels keep a readable size on small photos and in the zoom viewer.
   The label is a flag fixed to the box, not a floating pill: it reads as part of the mark, not as a third photo state. */
.repair-markers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Thin on purpose: on a phone a small box is only ~12px wide, so a heavier line covers the spot it points at.
   The outer paper halo keeps the line visible on dark stone; an inner halo only thickened it (removed 2026-11-03). */
.repair-box { position: absolute; border: 1.5px solid var(--mark); border-radius: 4px; box-shadow: 0 0 0 1px var(--paper); }
.repair-box:has(> .repair-box-label) { border-radius: 0 0 4px 4px; }
.repair-box-label { position: absolute; bottom: 100%; left: -1.5px; padding: 1px 7px; border-radius: 4px 4px 4px 0; background: var(--mark); box-shadow: 0 0 0 1px var(--paper); clip-path: inset(-2px -2px 0 -2px); color: var(--paper); font-size: 13px; font-weight: 400; line-height: 1.4; white-space: nowrap; }
/* The flag stays solid: a see-through one loses contrast on patterned stone. Lighter weight and height do the slimming. */
.case-thumb .repair-box-label, .service-case-pair .repair-box-label { padding: 0 5px; font-size: 11px; }
@media (max-width: 700px) { .repair-box-label { padding: 0 5px; font-size: 11px; } }