/* Iron Ape — shared layout, colour and responsive styles. */
:root {
    --ink: #141616;
    --muted: #5c6261;
    --paper: #f3f4f1;
    --white: #fff;
    --red: #c92e29;
    --bright-red: #f04c44;
    --line: #d7dcd7;
    --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
    --body: "Barlow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--white); font: 400 1.0625rem/1.6 var(--body); }
body.menu-open, body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: rgba(201,46,41,.16); touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #2378bd; outline-offset: 6px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; }
h1 { font-size: clamp(4rem, 7vw, 7.25rem); line-height: .94; letter-spacing: -.02em; }
h2 { font-size: clamp(2.75rem, 4.6vw, 4.5rem); line-height: .98; letter-spacing: -.015em; }
h3 { font-size: 2rem; line-height: 1.1; }
.container { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 104px; }
.eyebrow { margin-bottom: 20px; font-size: .875rem; line-height: 1.4; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 25px; border: 1px solid transparent; border-radius: 2px; background: var(--red); color: white; text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.3; text-align: center; transition: background .18s, border-color .18s; }
.button:hover { background: #a9221e; }
.button-small { min-height: 48px; padding: 12px 22px; }
.button-outline { background: transparent; border-color: #717776; }
.button-outline:hover { background: #2e3231; border-color: white; }
.button-dark { background: var(--ink); }
.button-dark:hover { background: #343a38; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-block; font-weight: 700; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.text-link:hover { color: var(--red); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 22px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Header */
.utility-bar { background: var(--ink); color: #e1e5e2; font-size: .8125rem; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.utility-divider { color: var(--bright-red); margin-inline: 12px; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid #e3e6e2; background: white; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; min-height: 112px; }
.brand { display: block; flex: 0 0 190px; }
.brand img { width: 190px; height: auto; }
.main-navigation { display: flex; align-items: center; gap: 27px; }
.main-navigation > a { font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.main-navigation > a:not(.button):hover, .main-navigation > a[aria-current] { color: var(--red); }
.nav-phone { padding-left: 20px; border-left: 1px solid var(--line); }
.menu-toggle { display: none; }

/* Hero */
.hero { overflow: hidden; background: var(--ink); color: white; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; }
.hero-copy { position: relative; z-index: 2; padding: 72px 48px 58px 0; }
.hero .eyebrow { color: #e0e5e1; font-size: .8125rem; }
.hero .eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 3px; margin-right: 10px; background: var(--bright-red); }
.hero h1 > span { color: var(--bright-red); }
.hero-description { max-width: 490px; margin: 28px 0; color: #d1d7d2; font-size: 1.125rem; line-height: 1.65; }
.hero-footnote { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: #bec6c0; font-size: .875rem; }
.hero-footnote span { width: 18px; height: 2px; background: var(--bright-red); }
.hero-photo { position: relative; margin-right: min(-48px, calc((1320px - 100vw) / 2)); min-width: 0; }
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #14161633 0, transparent 40%), linear-gradient(0deg, #0a0d0dd9, transparent 45%); }
.hero-photo figcaption { position: absolute; z-index: 2; bottom: 40px; left: 40px; padding-left: 18px; border-left: 3px solid var(--bright-red); }
.hero-photo figcaption span { display: block; font-size: .8125rem; color: #d3d9d5; }
.hero-photo figcaption strong { display: block; margin-top: 3px; font-family: var(--display); font-size: 1.75rem; text-transform: uppercase; }
.photo-corner { position: absolute; right: 0; bottom: 0; z-index: 3; width: 100px; height: 100px; background: var(--red); clip-path: polygon(100% 0,100% 100%,0 100%); }
.capability-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.capability-inner { display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 24px; }
.capability-inner p { font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: .035em; }
.capability-inner > span { color: var(--red); }

/* Services */
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 72px; margin-bottom: 46px; }
.section-heading > p { max-width: 480px; color: var(--muted); padding-bottom: 3px; font-size: 1.125rem; }
.section-heading .eyebrow, .approach-copy .eyebrow, .faq-grid .eyebrow { color: var(--red); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { border-bottom: 2px solid var(--ink); }
.service-photo { overflow: hidden; aspect-ratio: 1.5; background: #d8ddda; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.service-card:hover .service-photo img { transform: scale(1.025); }
.service-copy { padding: 26px 0 30px; }
.service-label { margin-bottom: 9px; color: var(--red); font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.service-copy h3 { font-size: 2.25rem; }
.service-copy > p:not(.service-label) { margin-top: 16px; color: var(--muted); }
.service-copy .text-link { margin-top: 20px; }
.applications-band { padding: 64px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.applications-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.applications-grid h2 { font-size: clamp(2.5rem,3.7vw,3.5rem); }
.application-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.application-list span { padding-block: 15px; border-bottom: 1px solid #cbd1cb; font-weight: 600; }
.application-list span::before { content: "+"; margin-right: 10px; color: var(--red); font-weight: 700; }

/* Approach */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.approach-image { position: relative; align-self: stretch; min-height: 640px; }
.approach-image > img { width: 100%; height: 100%; object-fit: cover; object-position: 41% center; }
.image-stamp { position: absolute; left: -20px; bottom: 32px; padding: 21px 28px; color: white; background: var(--red); font: 700 2.5rem/.95 var(--display); transform: rotate(-3deg); box-shadow: 7px 7px 0 #141616; }
.image-stamp span { display: block; margin-top: 8px; font-family: var(--body); font-size: .6875rem; letter-spacing: .13em; }
.approach-copy > p:not(.eyebrow) { margin-top: 24px; color: var(--muted); }
.process-list { margin-block: 26px; }
.process-list > div { position: relative; border-top: 1px solid var(--line); padding: 19px 0 19px 22px; }
.process-list > div::before { content: ""; position: absolute; top: 25px; left: 0; width: 6px; height: 20px; background: var(--red); }
.process-list h3 { font-size: 1.6rem; }
.process-list p { margin-top: 7px; color: var(--muted); font-size: 1rem; }

/* Questions */
.faq-section { border-top: 1px solid var(--line); background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.faq-grid > div > p:last-child { margin-top: 24px; color: var(--muted); }
.faq-list details { border-top: 1px solid #bfc7bf; }
.faq-list details:last-child { border-bottom: 1px solid #bfc7bf; }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 23px 36px 23px 0; font-weight: 600; font-size: 1.1875rem; line-height: 1.45; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 18px; right: 0; color: var(--red); font-size: 1.75rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 580px; padding-bottom: 24px; color: var(--muted); }

/* Contact and footer */
.contact-section { padding: 96px 0; color: white; background: var(--red); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.contact-section h2 { font-size: clamp(4.5rem,7.8vw,7.4rem); }
.contact-intro { max-width: 370px; margin-top: 24px; font-size: 1.1875rem; }
.contact-phone { display: inline-block; margin-top: 30px; color: white; font: 600 clamp(2rem,3.2vw,3rem)/1.2 var(--display); text-decoration: none; }
.contact-phone:hover { text-decoration: underline; }
.appointment-note { margin-top: 10px; color: #ffe2df; font-size: .9375rem; }
.quote-panel { padding: 40px; border: 1px solid #ffffff5c; background: #ab211d; }
.quote-panel h3 { font-size: 2.5rem; max-width: 370px; }
.quote-panel > p { margin-top: 18px; color: #ffe5e2; }
.check-list { list-style: none; padding: 0; margin: 24px 0 28px; }
.check-list li { position: relative; margin-top: 12px; padding-left: 24px; }
.check-list li::before { content: "✓"; position: absolute; top: 0; left: 0; color: #fff; }
.quote-panel .button { width: 100%; }
.quote-panel .email-note { font-size: .875rem; line-height: 1.45; }
.email-address { display: inline-block; overflow-wrap: anywhere; margin-top: 16px; font-size: .9375rem; }
.site-footer { padding-top: 52px; background: var(--ink); color: #d1d8d2; }
.footer-main { display: flex; gap: 60px; justify-content: space-between; align-items: center; padding-bottom: 42px; }
.footer-brand { display: block; color: white; text-decoration: none; font: 700 2.5rem/1 var(--display); letter-spacing: .02em; }
.footer-brand span { display: block; margin-top: 6px; color: var(--bright-red); font: 600 .75rem/1.4 var(--body); letter-spacing: .16em; }
.footer-main > div > p { margin-top: 15px; font-size: .9375rem; color: #a7b1a9; }
.footer-links, .footer-social { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a, .footer-social a { text-decoration: none; font-size: .9375rem; }
.footer-links a:hover, .footer-social a:hover { color: white; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #353d37; padding-block: 24px; font-size: .8125rem; color: #a7b1a9; }

/* Applications page and progressive image viewer */
.page-hero { padding: 76px 0 66px; color: white; background: var(--ink); }
.page-hero .eyebrow { color: #cdd6cf; }
.page-hero h1 { max-width: 1000px; }
.page-hero h1 span { color: var(--bright-red); }
.page-hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-top: 32px; }
.page-hero-bottom p { max-width: 590px; color: #c9d2cc; font-size: 1.125rem; }
.page-hero-bottom .button { flex-shrink: 0; }
.gallery-intro { padding-bottom: 28px; color: var(--muted); }
.applications-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 32px; }
.gallery-image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.5; }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-image:hover img { transform: scale(1.03); }
.gallery-image > span { position: absolute; bottom: 14px; right: 14px; padding: 6px 14px; background: var(--ink); color: white; font-size: .875rem; }
.application-card figcaption { padding-top: 22px; }
.application-card h2 { font-size: 2rem; }
.application-card p { margin-top: 12px; color: var(--muted); max-width: 540px; }
.lightbox { width: min(1160px, 94vw); max-width: none; max-height: 92dvh; padding: 18px; border: 1px solid #5e6861; border-radius: 3px; background: #141616; color: white; }
.lightbox::backdrop { background: #000d; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 16px; }
.lightbox-toolbar button { min-height: 44px; background: #303932; border: 1px solid #637167; color: white; border-radius: 2px; padding: 6px 16px; }
.lightbox-toolbar button span { font-size: 1.4rem; margin-left: 7px; }
.lightbox-photo { max-height: calc(92dvh - 100px); width: 100%; object-fit: contain; }

/* Tablet */
@media (max-width: 1150px) {
    .container { width: calc(100% - 64px); }
    .header-inner { gap: 20px; }
    .brand, .brand img { width: 164px; flex-basis: 164px; }
    .main-navigation { gap: 20px; }
    .nav-phone { display: none; }
    .hero-grid { min-height: 610px; }
    .hero-copy { padding-block: 64px; padding-right: 28px; }
    .hero h1 { font-size: clamp(4.4rem,8vw,6.5rem); }
    .hero-photo { margin-right: -32px; }
    .section { padding-block: 80px; }
    .section-heading, .applications-grid { gap: 40px; }
    .approach-grid, .contact-grid, .faq-grid { gap: 48px; }
    .approach-image { min-height: 580px; }
    .capability-inner { gap: 12px; }
    .capability-inner p { font-size: 1.0625rem; }
    .service-grid { gap: 22px; }
    .service-copy h3 { font-size: 2rem; }
    .quote-panel { padding: 30px; }
    .footer-main { gap: 28px; }
    .footer-links { flex-direction: column; gap: 8px; }
    .footer-social { flex-direction: column; gap: 8px; }
}

/* Mobile: compact shared header, natural page flow, no floating toolbar. */
@media (max-width: 760px) {
    html { scroll-padding-top: 16px; }
    body { font-size: 1rem; }
    .container { width: calc(100% - 40px); }
    .utility-inner { min-height: 32px; gap: 12px; font-size: .6875rem; letter-spacing: .025em; }
    .utility-divider { margin-inline: 5px; }
    .utility-inner > p:last-child { white-space: nowrap; text-transform: none; font-size: .75rem; }
    .header-inner { min-height: 86px; }
    .brand, .brand img { width: 142px; flex-basis: 142px; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 8px 5px 8px 12px; border: 0; background: white; color: var(--ink); font-size: .9375rem; font-weight: 600; }
    .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 22px; height: 2px; background: var(--ink); }
    .menu-lines { position: relative; }
    .menu-lines::before, .menu-lines::after { position: absolute; content: ""; left: 0; }
    .menu-lines::before { top: -6px; }
    .menu-lines::after { top: 6px; }
    .menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
    .menu-toggle[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-lines::after { top: 0; transform: rotate(-45deg); }
    .main-navigation { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    html.has-js .main-navigation { display: none; position: absolute; top: 100%; right: 0; left: 0; padding: 16px 20px 24px; background: white; border-top: 1px solid var(--line); box-shadow: 0 12px 18px #0002; max-height: calc(100dvh - 118px); overflow-y: auto; }
    html.has-js .main-navigation.is-open { display: flex; }
    html:not(.has-js) .header-inner { flex-wrap: wrap; }
    html:not(.has-js) .main-navigation { width: 100%; padding-bottom: 20px; }
    html:not(.has-js) .menu-toggle { display: none; }
    .main-navigation > a:not(.button) { display: block; min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .main-navigation > .nav-phone { display: block; margin-bottom: 18px; border-left: 0; }
    .hero-grid { grid-template-columns: 1fr; min-height: 0; }
    .hero-copy { padding: 42px 0 38px; }
    .hero .eyebrow { max-width: 290px; margin-bottom: 23px; font-size: .75rem; }
    .hero h1 { font-size: clamp(3.7rem,13.9vw,6.2rem); }
    .desktop-break { display: none; }
    .hero-description { max-width: 540px; margin: 24px 0; font-size: 1.0625rem; }
    .hero .button-row { gap: 10px; }
    .hero .button { flex: 1 1 auto; padding-inline: 17px; }
    .hero-footnote { margin-top: 22px; font-size: .8125rem; }
    .hero-photo { height: 340px; margin-inline: -20px; }
    .hero-photo > img { object-position: 45% 42%; }
    .hero-photo figcaption { left: 24px; bottom: 28px; }
    .photo-corner { width: 70px; height: 70px; }
    .capability-inner { flex-wrap: wrap; justify-content: center; column-gap: 12px; row-gap: 2px; padding-block: 16px; min-height: 74px; }
    .capability-inner p { font-size: .875rem; letter-spacing: .015em; }
    .capability-inner > span { font-size: .8rem; }
    .capability-inner > span:nth-of-type(2) { display: none; }
    .capability-inner p:last-child { flex-basis: 100%; text-align: center; }
    .section { padding-block: 60px; }
    .eyebrow { font-size: .75rem; margin-bottom: 15px; }
    h2 { font-size: clamp(2.8rem,11vw,3.8rem); }
    .section-heading, .applications-grid, .approach-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .section-heading { margin-bottom: 30px; }
    .section-heading > p { font-size: 1.0625rem; }
    .service-grid { grid-template-columns: 1fr; gap: 36px; }
    .service-photo { aspect-ratio: 1.6; }
    .service-copy { padding: 22px 0 25px; }
    .service-copy h3 { font-size: 2.25rem; }
    .service-copy > p:not(.service-label) { margin-top: 12px; }
    .service-copy .text-link { margin-top: 16px; }
    .applications-band { padding-block: 48px; }
    .applications-grid { gap: 26px; }
    .application-list { column-gap: 16px; font-size: .9375rem; }
    .application-list span { padding-block: 13px; }
    .application-list span::before { margin-right: 7px; }
    .approach-grid { gap: 44px; }
    .approach-image { min-height: 0; height: 380px; }
    .image-stamp { left: -8px; bottom: 24px; padding: 18px 22px; font-size: 2rem; }
    .approach-copy > p:not(.eyebrow) { margin-top: 20px; }
    .faq-grid { gap: 30px; }
    .faq-list summary { font-size: 1.0625rem; padding-block: 21px; }
    .contact-section { padding-block: 60px; }
    .contact-grid { gap: 36px; }
    .contact-section h2 { font-size: clamp(4.5rem,20vw,6.2rem); }
    .contact-intro { margin-top: 20px; font-size: 1.125rem; }
    .contact-phone { font-size: 2.7rem; margin-top: 24px; }
    .quote-panel { padding: 26px 22px; }
    .quote-panel h3 { font-size: 2rem; }
    .email-address { font-size: .875rem; }
    .site-footer { padding-top: 40px; }
    .footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; align-items: start; }
    .footer-main > div:first-child { grid-column: 1 / -1; }
    .footer-links, .footer-social { gap: 12px; }
    .footer-bottom { flex-direction: column; gap: 8px; font-size: .75rem; }
    .page-hero { padding-block: 46px; }
    .page-hero h1 { font-size: clamp(3.4rem,12vw,5.3rem); }
    .page-hero-bottom { display: block; margin-top: 26px; }
    .page-hero-bottom p { font-size: 1.0625rem; }
    .page-hero-bottom .button { margin-top: 25px; }
    .applications-gallery { grid-template-columns: 1fr; gap: 36px; }
    .gallery-intro { padding-bottom: 24px; }
    .application-card figcaption { padding-top: 18px; }
    .application-card h2 { font-size: 2rem; }
    .lightbox { padding: 12px; }
    .lightbox-toolbar p { font-size: .9375rem; }
}
@media (max-width: 360px) {
    .utility-inner > p:last-child { display: none; }
    .application-list { grid-template-columns: 1fr; }
    .hero .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
