/* Review edition: shared industrial palette, readable evidence, fewer repeated blocks. */
@layer base {
  :root { --muted: #5b6872; --wash: #f0f3f5; --radius: 5px; font-family: "Segoe UI", Arial, Helvetica, sans-serif; }
  h1,h2,h3 { letter-spacing: -.035em; }
  html { scroll-padding-top: 122px; }
}
@layer responsive {
  .header-inner { min-height: 104px; }
  .brand.brand-pair { width: 420px; }
  .pmk-wordmark strong { font-size: 32px; letter-spacing: -.025em; }
  .desktop-nav { font-size: 13px; gap: 19px; }
  .button { font-weight: 600; }
  .hero { gap: 50px; padding-block: 55px 50px; }
  .hero h1 { font-size: clamp(40px,4.3vw,62px); line-height: 1.08; letter-spacing: -.04em; }
  .hero h1 span { font-size: .83em; }
  .hero-engineering { font-size: 20px; line-height: 1.4; margin-top: 22px; }
  .hero-description { font-size: 16px; line-height: 1.7; max-width: 510px; }
  .hero-note { margin-top: 28px; padding-top: 18px; font-size: 13px; }
  .hero-art { border-radius: 7px; }
  .hero-photo-wrap { background: #193449; padding: 12px; }
  .hero-photo { border-radius: 2px; }
  .art-top { padding: 19px 24px; font-size: 11px; }
  .art-bottom { padding: 19px 24px; }
  .art-bottom p { font-size: 15px; }
  .hero-photo-kicker,.hero-retouch-note { font-size: 11px; letter-spacing: .025em; }
  .hero-retouch-note { padding: 0 24px 18px; }
  .hero-photo-link { font-size: 13px; white-space: normal; }
  .section { padding-block: 78px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { margin-top: 16px; }
  .section-intro { font-size: 15px; max-width: 410px; }
  .portfolio-section { padding-top: 44px; }
  .portfolio-tabs { border-radius: 5px; overflow: hidden; margin-top: 30px; }
  .portfolio-tabs button { font-size: 22px; min-height: 92px; }
  .portfolio-tabs button+button { font-size: 19px; }
  .portfolio-tabs button span { font-size: 11px; letter-spacing: .035em; }
  .portfolio-intro { margin-bottom: 14px; }
  .portfolio-intro>p { font-size: 14px; line-height: 1.75; max-width: 560px; }
  .photo-evidence-note { color: var(--muted); font-size: 12px; max-width: 850px; margin: 0 0 24px; }
  .portfolio-gallery { gap: 30px 24px; }
  .portfolio-card { min-width: 0; }
  .portfolio-photo { border-radius: 5px; overflow: hidden; }
  .portfolio-card h4 { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
  .portfolio-card>p:not(.portfolio-status) { font-size: 14px; line-height: 1.7; }
  .portfolio-card>.portfolio-status { font-family: inherit; font-size: 12px; letter-spacing: .015em; text-transform: none; margin-top: 18px; }
  .cover-label { font-size: 11px; padding: 5px 8px; }
  .photo-count { font-size: 12px; padding: 8px 11px; }
  .portfolio-photo.document-cover img { padding: 13px; background: white; }
  .documentation-gallery .portfolio-photo { border: 1px solid var(--line); }
  .documentation-gallery .portfolio-photo img { aspect-ratio: 1.5; height: auto; object-fit: contain; }
  .portfolio-pdf { font-size: 14px; font-weight: 600; }
  .proof-links { border-radius: 4px; background: var(--wash); border: 1px solid var(--line); }
  .proof-links>div,.proof-links>a { padding: 24px; }
  .proof-links strong { font-size: 18px; }
  .proof-links>a span { font-size: 12px; }
  .portfolio-next { margin-top: 26px; }
  .service-card { border-radius: 5px; border-color: var(--line); }
  .manufacture-card { border-color: #cbd6de; }
  .service-num,.badge,.manufacture-card .card-condition { font-size: 12px; }
  .service-card:not(.manufacture-card) .service-num,.service-card:not(.manufacture-card) .badge { font-size: 11px; }
  .service-card h3 { line-height: 1.18; }
  .service-card:not(.manufacture-card) .plain-list { display: block; font-size: 13px; margin-block: 15px; }
  .service-card:not(.manufacture-card) .plain-list li { padding-block: 7px; }
  .service-brand-logo { width: min(100%,290px); margin-bottom: 13px; }
  .manufacture-card .plain-list { font-size: 15px; }
  .manufacture-card .card-decoration { display: none; }
  .deliverables-section>.section { padding-block: 45px; }
  .deliverables-section .section-heading { margin-bottom: 25px; }
  .scope-details { border-top: 1px solid var(--line); }
  .scope-details>summary { cursor: pointer; list-style: none; min-height: 58px; padding-block: 17px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--blue); font-size: 16px; }
  .scope-details>summary::-webkit-details-marker { display: none; }
  .scope-details>summary span { font-size: 24px; }
  .scope-details[open]>summary span { transform: rotate(45deg); }
  .scope-details .deliverables-layout { margin-top: 20px; }
  .steps { gap: 26px; }
  .steps h3 { font-size: 22px; }
  .steps p { font-size: 14px; }
  .faq-section { padding-top: 60px; }
  .entry-section { padding-block: 38px 54px; border-top: 1px solid var(--line); }
  .entry-heading { display: flex; justify-content: space-between; gap: 25px; align-items: end; }
  .entry-heading>.eyebrow { display: none; }
  .entry-heading h2 { font-size: 29px; max-width: 600px; }
  .entry-heading>p:last-child { font-size: 14px; max-width: 360px; }
  .entry-grid { margin-top: 24px; border-radius: 5px; overflow: hidden; }
  .entry-grid>a { padding: 23px 26px; }
  .entry-number { display: none; }
  .entry-grid h3 { font-size: 23px; }
  .entry-grid p { font-size: 14px; line-height: 1.6; margin-block: 12px 18px; }
  .entry-action { font-size: 14px; }
  .request-copy h2 { font-size: clamp(38px,4vw,54px); line-height: 1.13; }
  .request-copy>p:not(.eyebrow) { font-size: 16px; }
  .email-direct { display: block; width: fit-content; margin-top: 15px; color: white; border-bottom: 1px solid #9fb5c5; padding-bottom: 4px; font-size: 14px; }
  .email-fallback { display: inline-block; width: fit-content; font-size: 13px; min-height: 44px; padding: 12px 0; text-decoration: underline; text-underline-offset: 3px; }
  .request-copy>.email-fallback { color: #d6e2ec; }
  .email-controls { width: 100%; padding-top: 12px; }
  .email-controls>label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
  .email-controls>input { display: block; width: 100%; max-width: 360px; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--blue); padding: 10px 12px; font: inherit; font-size: 15px; }
  .email-control-actions { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
  .email-control-actions>button { background: none; border: 0; color: var(--blue); padding: 10px 0; min-height: 44px; font: inherit; font-size: 13px; cursor: pointer; }
  .email-control-actions>button:disabled { opacity: .5; cursor: default; }
  .email-control-actions>.email-fallback { border: 0; padding: 12px 0; color: var(--blue); font-size: 13px; }
  .email-controls>p { margin: 0; color: var(--muted); font-size: 13px; }
  .email-controls :focus-visible, .email-fallback:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
  .request-copy>.email-fallback:focus-visible { outline-color: white; }
  .input-note { margin-top: 18px; padding-block: 19px; font-size: 13px; }
  .request-contact>span,.field,.optional,.form-note { font-size: 12px; }
  .contacts { padding-block: 65px; }
  .contact-email { flex-wrap: wrap; overflow-wrap: anywhere; }
  .contact-email>span:last-child { font-size: 15px; }
  .production-address>span { font-size: 12px; letter-spacing: .035em; }
  .production-address p { font-size: 13px; }
  .gallery-version-toggle { font-size: 13px; }
  .gallery-dialog-top .eyebrow { font-size: 12px; }
  .dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .dialog-actions .button { min-width: 170px; flex: 1 1 170px; font-size: 13px; }
  .review-share { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 17px; margin-top: 16px; border-top: 1px solid var(--line); }
  .review-share button { background: none; color: var(--blue); border: 0; padding: 8px 0; text-align: left; font-size: 13px; min-height: 44px; }
  .review-share span { font-size: 13px; color: var(--muted); }
  .close-dialog { width: 44px; height: 44px; min-width: 44px; flex: 0 0 44px; border-radius: 3px; color: var(--blue); cursor: pointer; }
  .close-dialog:hover { background: var(--wash); }
  .service-choice span { min-height: 44px; }
  .mobile-nav { max-height: calc(100svh - 104px); max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav a { min-height: 48px; display: flex; align-items: center; }
  .portfolio-card { display: flex; flex-direction: column; }
  .documentation-gallery .portfolio-pdf { margin-top: auto; padding-top: 12px; }
  .portfolio-photo:hover img { transform: none; }
  .portfolio-photo:hover { box-shadow: 0 0 0 2px #cbd6de; }
  .portfolio-photo:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
  .portfolio-tabs button:focus-visible,.tab-list button:focus-visible { outline: 3px solid #598db0; outline-offset: -5px; position: relative; z-index: 1; }
  .portfolio-tabs button:not([aria-selected="true"]):hover { color: var(--blue); }
  .portfolio-thumbnails button:not([aria-pressed="true"]):hover { border-color: var(--accent); }
  .gallery-navigation button { border-radius: 3px; color: var(--blue); }
  .gallery-navigation button:hover { background: var(--wash); }
  .button:disabled { opacity: .6; cursor: not-allowed; }
  .request-section .button:focus-visible,.request-section summary:focus-visible,.request-section .email-direct:focus-visible { outline-color: white; }
}
@layer responsive {
  @media(min-width:1001px) {
    .services-grid { grid-template-columns: 3fr 2fr; }
    .manufacture-card { grid-column: 1; grid-row: 1/span 2; }
    .service-card:not(.manufacture-card) { padding-block: 26px; }
    .service-card:not(.manufacture-card) h3 { font-size: 27px; }
  }
  @media(max-width:1120px) { .brand.brand-pair { width: 390px; } .hero { gap: 30px; } }
  @media(max-width:760px) {
    html { scroll-padding-top: 110px; }
    .header-inner { min-height: 96px; }
    .mobile-nav { max-height: calc(100svh - 96px); max-height: calc(100dvh - 96px); }
    .brand.brand-pair { width: min(350px,calc(100% - 53px)); grid-template-columns: 3fr 2fr; }
    .pmk-wordmark>span { font-size: 11px; line-height: 1.3; }
    .hero { padding-block: 31px 38px; gap: 28px; }
    .hero h1 { font-size: clamp(37px,7vw,50px); }
    .hero h1 span { font-size: .88em; }
    .hero-description { font-size: 16px; }
    .hero-note { font-size: 13px; }
    .hero-photo-wrap { padding: 10px; }
    .hero-photo-kicker,.hero-retouch-note { font-size: 11px; }
    .hero-retouch-note { padding-inline: 20px; }
    .art-top,.art-bottom { padding-inline: 20px; }
    .art-bottom p { font-size: 14px; }
    .hero-photo-link { font-size: 13px; }
    .section { padding-block: 53px; }
    .section-intro { font-size: 15px; }
    .portfolio-tabs { grid-template-columns: 1.3fr 1fr 1fr; }
    .portfolio-tabs button,.portfolio-tabs button+button { font-size: 15px; padding: 18px 13px; min-height: 94px; }
    .portfolio-tabs button span { font-size: 11px; line-height: 1.35; letter-spacing: 0; }
    .portfolio-gallery { gap: 28px 19px; }
    .portfolio-card h4 { font-size: 22px; }
    .photo-evidence-note { font-size: 12px; line-height: 1.7; }
    .proof-links>div,.proof-links>a,.proof-links>a:first-of-type { padding: 20px; }
    .proof-links>div { border-bottom: 0; }
    .proof-links>a { border-top: 1px solid var(--line); }
    .proof-links strong { font-size: 17px; }
    .manufacture-card h3 { font-size: 35px; }
    .service-card,.service-card:not(.manufacture-card) { padding: 27px; }
    .service-card:not(.manufacture-card) .plain-list { font-size: 14px; }
    .deliverables-section>.section { padding-block: 36px; }
    .scope-details>summary { font-size: 15px; }
    .entry-section { padding-block: 34px 42px; }
    .entry-heading { display: block; }
    .entry-heading h2 { font-size: 29px; margin-top: 0; }
    .entry-heading>p:last-child { max-width: 100%; margin-top: 14px; }
    .entry-grid>a { padding: 24px; }
    .steps h3 { font-size: 21px; }
    .steps p { font-size: 14px; }
    .request-copy h2 { font-size: 43px; }
    .contact-links a { font-size: 14px; }
    .contact-email { flex-direction: column; align-items: flex-start; gap: 5px; }
    .contact-email>span:last-child { font-size: 16px; }
    .footer-inner { font-size: 12px; }
    .portfolio-dialog { width: min(1000px,calc(100% - 24px)); padding: 16px; max-height: calc(100svh - 24px); }
    .gallery-dialog-top { gap: 12px; }
    .portfolio-dialog h2 { font-size: 24px; line-height: 1.25; margin-block: 8px 16px; overflow-wrap: anywhere; }
    .portfolio-dialog .gallery-pdf-link { font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
    .gallery-navigation { gap: 20px; margin-top: 12px; }
    .portfolio-dialog #portfolio-dialog-description { font-size: 14px; line-height: 1.6; margin-top: 10px; }
    .portfolio-thumbnails { padding-top: 10px; }
  }
  @media(max-width:460px) {
    .pmk-wordmark strong { font-size: 24px; }
    .pmk-wordmark>span { font-size: 11px; max-width: 150px; }
    .hero .eyebrow { font-size: 11px; }
    .hero h1 { font-size: clamp(33px,8.5vw,39px); }
    .hero h1 span { font-size: .81em; }
    .hero-engineering { font-size: 18px; }
    .hero-actions .button { font-size: 14px; }
    .portfolio-tabs button,.portfolio-tabs button+button { font-size: 13px; padding-inline: 10px; }
    .portfolio-tabs button span { font-size: 11px; }
    .portfolio-gallery { grid-template-columns: 1fr; }
    .portfolio-card h4 { font-size: 23px; }
    .proof-links { grid-template-columns: 1fr; }
    .proof-links>div { border-bottom: 0; }
    .services-grid { grid-template-columns: 1fr; }
    .manufacture-card h3 { font-size: clamp(25px,7vw,31px); }
    .steps { grid-template-columns: 1fr; gap: 25px; }
    .steps h3 { font-size: 22px; }
    .steps p { font-size: 14px; }
    .panel-kicker { font-size: 11px; }
    .request-copy h2 { font-size: 37px; }
    .dialog-actions { display: flex; flex-direction: column; }
    .dialog-actions .button { flex-basis: auto; min-width: 0; width: 100%; }
  }
  @media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
}

/* Review 10: make the next step and the evidence easier to inspect. */
@layer responsive {
  .gallery-image-stage { position: relative; }
  .gallery-image-stage[data-image-state="loading"] img,.gallery-image-stage[data-image-state="error"] img { opacity: 0; }
  .gallery-image-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; color: var(--blue); font-size: 15px; line-height: 1.6; text-align: center; pointer-events: none; }
  .portfolio-panel>.text-link { display: inline-flex; margin-top: 24px; min-height: 44px; }
  .entry-section { padding-block: 27px 32px; border-bottom: 1px solid var(--line); }
  .entry-heading h2 { font-size: 25px; }
  .entry-heading>p:last-child { max-width: 440px; }
  .entry-grid { margin-top: 19px; }
  .entry-grid>a { padding: 20px 24px; }
  .entry-grid h3 { font-size: 22px; }
  .entry-grid p { margin-block: 9px 13px; font-size: 13px; }
  .entry-action { margin-top: auto; }
  .document-examples { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
  .document-examples-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
  .document-examples-heading h3 { font-size: 29px; margin-top: 12px; line-height: 1.25; }
  .document-examples-heading>p { max-width: 360px; color: var(--muted); font-size: 14px; line-height: 1.7; }
  .document-examples-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .document-example { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 24px; min-width: 0; border: 1px solid var(--line); border-radius: 5px; padding: 24px; }
  .document-sheet { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; min-width: 0; font-size: 13px; color: var(--blue); }
  .document-sheet img { width: 100%; height: auto; object-fit: contain; background: white; border: 1px solid var(--line); }
  .document-sheet span { border-bottom: 1px solid var(--line); padding-block: 9px; }
  .document-sheet:hover span { border-color: var(--blue); }
  .document-example-copy { min-width: 0; display: flex; flex-direction: column; }
  .document-tag { font: 11px/1.5 "Courier New",monospace; letter-spacing: .04em; color: var(--accent); }
  .document-example h4 { margin: 8px 0 13px; font-size: 25px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
  .document-example-copy>p:not(.document-tag) { color: var(--muted); font-size: 14px; line-height: 1.7; }
  .document-shortcuts { display: flex; flex-direction: column; margin-block: 15px 10px; }
  .document-shortcuts a { display: block; padding-block: 10px; min-height: 44px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--blue); }
  .document-shortcuts a:hover { color: var(--accent); }
  .document-full { align-self: flex-start; margin-top: auto; font-weight: 600; }
  .source-hint { padding: 13px 16px; margin: -7px 0 21px; border-left: 2px solid #9fb5c5; background: #254357; color: #d6e2ec; font-size: 13px; line-height: 1.7; }
  .dialog-actions #telegram-send { flex-basis: 100%; }
  @media(max-width:1120px) and (min-width:761px) {
    .document-example { grid-template-columns: 1fr; }
    .document-sheet { flex-direction: row; align-items: center; }
    .document-sheet img { width: 55%; }
  }
  @media(max-width:760px) {
    .entry-heading { display: block; }
    .entry-heading h2 { font-size: 25px; }
    .entry-heading>p:last-child { margin-top: 10px; }
    .entry-grid { grid-template-columns: 1fr; margin-top: 18px; }
    .entry-grid>a { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; column-gap: 16px; padding: 16px 19px; min-height: 76px; }
    .entry-grid h3 { font-size: 19px; }
    .entry-grid p { display: none; }
    .entry-action { margin: 0; font-size: 13px; text-align: right; }
    .document-examples { margin-top: 32px; padding-top: 24px; }
    .document-examples-heading { display: block; }
    .document-examples-heading h3 { font-size: 27px; }
    .document-examples-heading>p { margin-top: 14px; max-width: 100%; }
    .document-examples-grid { grid-template-columns: 1fr; gap: 20px; }
    .document-example { gap: 20px; padding: 20px; }
    .document-tag { font-size: 11px; }
  }
  @media(max-width:520px) {
    .document-example { grid-template-columns: 1fr; }
    .document-sheet img { max-height: 210px; width: 100%; }
    .document-sheet { gap: 0; }
    .document-example h4 { font-size: 26px; }
    .document-shortcuts a { font-size: 14px; }
    .document-full { font-size: 14px; }
    .source-hint { font-size: 13px; }
  }
}
