:root {
  --ink: #07111f;
  --navy: #0b1e34;
  --navy-2: #102a46;
  --blue: #0e436d;
  --gold: #ffb400;
  --gold-soft: #ffd260;
  --paper: #f4f6f8;
  --white: #ffffff;
  --muted: #627084;
  --line: rgba(7, 17, 31, 0.14);
  --shadow: 0 28px 70px rgba(5, 15, 28, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(3.2rem, 7vw, 6.8rem); }
h2 { font-size: clamp(2.25rem, 4.2vw, 4.7rem); }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; min-height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(22px, 5vw, 80px); border-bottom: 1px solid rgba(255,255,255,.18); transition: background .25s ease, box-shadow .25s ease; }
.site-header.scrolled, .site-header.solid { background: rgba(7,17,31,.96); box-shadow: 0 12px 36px rgba(0,0,0,.16); backdrop-filter: blur(14px); }
.brand img { width: clamp(210px, 20vw, 320px); height: 52px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 42px); color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 700; }
.site-nav a { position: relative; padding: 10px 0; }
.site-nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--gold); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.nav-contact { padding: 11px 20px !important; border: 1px solid var(--gold); color: var(--white); }
.nav-contact:hover { background: var(--gold); color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 9px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: white; }

.hero { position: relative; min-height: 100svh; color: white; display: grid; align-items: center; overflow: hidden; }
.hero-image, .hero-shade, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; }
.hero-shade { background: linear-gradient(90deg, rgba(3,12,24,.94) 0%, rgba(5,18,32,.79) 46%, rgba(7,17,31,.25) 80%), linear-gradient(0deg, rgba(4,12,23,.72), transparent 50%); }
.hero-grid { opacity: .21; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, #000, transparent 74%); }
.hero-content { position: relative; z-index: 2; max-width: 1080px; padding: 160px clamp(24px, 8vw, 130px) 120px; }
.eyebrow { margin-bottom: 24px; color: var(--gold-soft); font-family: "Roboto Mono", monospace; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.dark { color: var(--blue); }
.hero h1 { max-width: 980px; margin-bottom: 26px; }
.hero-copy { max-width: 710px; color: rgba(255,255,255,.74); font-size: clamp(1.06rem, 1.8vw, 1.35rem); }
.hero-location { width: fit-content; margin: 26px 0 0; padding: 10px 14px; color: rgba(255,255,255,.86); background: rgba(7,17,31,.52); border-left: 3px solid var(--gold); font-family: "Roboto Mono", monospace; font-size: clamp(.78rem, 1.1vw, .9rem); letter-spacing: .035em; }
.hero-actions { display: flex; gap: 16px; margin-top: 42px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 25px; border: 1px solid rgba(255,255,255,.5); font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button-ghost:hover { border-color: white; background: rgba(255,255,255,.1); }
.button-contact { color: var(--gold-soft); border-color: var(--gold); }
.button-contact:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.hero-note { position: absolute; z-index: 2; right: clamp(24px, 5vw, 80px); bottom: 42px; display: grid; text-align: right; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.hero-note strong { color: white; font-size: .9rem; }

.section { padding: clamp(80px, 10vw, 150px) clamp(22px, 7vw, 110px); }
.section-heading { max-width: 1020px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-heading h2 { margin-bottom: 0; }
.section-heading.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 9vw; align-items: end; }
.section-heading.split > p { margin-bottom: 8px; color: var(--muted); }
.why-bap .section-heading h2::after,
.services .section-heading h2::after,
.portfolio-section .section-heading h2::after { content: ""; display: block; width: 86px; height: 3px; margin-top: 24px; background: var(--gold); transform-origin: left center; }
.motion-ready .reveal-item { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.motion-ready .reveal-item.reveal-visible { opacity: 1; transform: translateY(0); }
.motion-ready .why-bap .section-heading h2::after,
.motion-ready .services .section-heading h2::after,
.motion-ready .portfolio-section .section-heading h2::after { transform: scaleX(0); transition: transform .65s ease .15s; }
.motion-ready .section-heading.reveal-visible h2::after { transform: scaleX(1); }
.intro { color: var(--ink); background: var(--white); }
.intro .eyebrow.dark { color: var(--blue); }
.intro .section-heading { margin-bottom: clamp(32px, 4vw, 58px); }
.intro-layout { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(420px, 1.18fr); gap: clamp(50px, 8vw, 130px); align-items: center; }
.experience-card { min-height: 470px; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; align-self: start; }
.experience-card strong { color: #c48b00; font-family: "Barlow Condensed", Impact, sans-serif; font-size: clamp(18rem, 30vw, 27rem); font-weight: 800; letter-spacing: -.055em; line-height: .72; white-space: nowrap; }
.experience-card > span { max-width: 300px; margin-top: 34px; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.intro-copy .lead { font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.45; color: var(--ink); font-weight: 700; }
.intro-copy > p:not(.lead) { color: #4f5d70; max-width: 700px; }
.principles { margin-top: 50px; border-top: 1px solid var(--line); }
.principles article { display: grid; grid-template-columns: 50px 190px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); align-items: start; }
.principles article > span { font-family: "Roboto Mono", monospace; color: #a87700; }
.principles h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.principles p { margin: 0; color: #4f5d70; font-size: .94rem; }

.why-bap { background: var(--paper); }
.why-bap .section-heading.split > p { color: var(--muted); }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why-grid article { min-height: 340px; padding: clamp(30px, 3.2vw, 46px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.why-grid article > span { color: var(--gold); font-family: "Roboto Mono", monospace; font-size: 1rem; font-weight: 700; }
.why-grid h3 { margin: 48px 0 20px; font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 800; }
.why-grid p { margin: 0; color: #4f5d70; font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.7; }

.services { color: white; background: var(--navy); }
.services .section-heading.split > p { color: rgba(255,255,255,.62); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 540px; overflow: hidden; isolation: isolate; cursor: pointer; }
.service-card img, .service-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.service-card img { object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.service-card:first-child img { object-position: center; }
.service-card:nth-child(3) img { object-position: center top; }
.service-card:hover img { transform: scale(1.045); }
.service-card:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 4px; }
.service-overlay { z-index: 1; background: linear-gradient(0deg, rgba(3,12,24,.97), rgba(3,12,24,.08) 75%); }
.service-content { position: absolute; z-index: 2; inset: auto 0 0; padding: 34px; }
.service-content > span { color: var(--gold); font-family: "Roboto Mono", monospace; }
.service-content h3 { margin: 13px 0; }
.service-content p { margin: 0; color: rgba(255,255,255,.68); }
.section-link-row { margin-top: 46px; text-align: right; }
.experience-button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 25px; color: white; border: 1px solid var(--gold); font-weight: 800; transition: transform .2s ease, color .2s ease, background .2s ease; }
.experience-label-mobile { display: none; }
.experience-button:hover { color: var(--ink); background: var(--gold); transform: translateY(-2px); }
.experience-button:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }

.contact-footer { position: relative; overflow: hidden; color: white; background: #050d17; }
.contact-backdrop { position: absolute; inset: 0; opacity: .2; }
.contact-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #050d17 0%, rgba(5,13,23,.88) 58%, rgba(5,13,23,.6)); }
.contact-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.contact-inner, .footer-base { position: relative; z-index: 1; }
.contact-inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(55px, 8vw, 120px); padding: clamp(80px, 10vw, 145px) clamp(22px, 7vw, 110px); }
.contact-inner h2 { max-width: 750px; }
.contact-inner > div:first-child > p:last-child { max-width: 620px; color: rgba(255,255,255,.65); }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: end; }
.contact-card { min-height: 142px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 24px; color: white; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); transition: transform .2s ease, border-color .2s ease, filter .2s ease; }
.contact-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.55); filter: brightness(1.06); }
.contact-card svg { width: 30px; height: 30px; }
.contact-card span { min-width: 0; display: grid; }
.contact-card small { color: rgba(255,255,255,.68); font-family: "Roboto Mono", monospace; font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }
.contact-card strong { margin-top: 6px; font-size: clamp(.98rem, 1.35vw, 1.18rem); line-height: 1.3; overflow-wrap: anywhere; }
.contact-card b { justify-self: end; font-size: 1.35rem; }
.contact-card.whatsapp { background: #168f57; border-color: #2eb877; }
.contact-card.email { color: var(--ink); background: var(--gold); border-color: var(--gold-soft); }
.contact-card.email small { color: rgba(7,17,31,.62); }
.contact-card.phone { grid-column: span 2; min-height: 118px; background: rgba(255,255,255,.08); }
.contact-card.linkedin { background: #0a66c2; border-color: #3786d5; }
.contact-card.personal { min-height: 142px; }
.footer-base { min-height: 100px; padding: 24px clamp(22px, 7vw, 110px); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .84rem; }
.footer-base img { width: 210px; height: 44px; object-fit: contain; object-position: left; }
.footer-base p { margin: 0; }
.footer-base strong { color: rgba(255,255,255,.72); font-weight: 700; }
.floating-contact { position: fixed; z-index: 45; right: 24px; bottom: 24px; display: flex; gap: 12px; }
.floating-button { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: 0 14px 34px rgba(0,0,0,.25); transition: transform .2s ease, filter .2s ease; }
.floating-button:hover { transform: translateY(-3px); filter: brightness(1.08); }
.floating-button:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.floating-button svg { width: 27px; height: 27px; }
.floating-whatsapp { background: #158a4a; }
.floating-email { color: var(--ink); background: var(--gold); }

.inner-page { padding-top: 88px; }
.page-hero { position: relative; min-height: 650px; display: grid; grid-template-columns: 1fr; overflow: hidden; background: var(--navy); color: white; }
.page-hero-copy { position: relative; z-index: 2; max-width: 900px; padding: clamp(75px, 9vw, 135px) clamp(24px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.page-hero-copy h1 { font-size: clamp(3.2rem, 6vw, 6.1rem); margin-bottom: 28px; }
.page-hero-copy > p:last-child { max-width: 700px; color: rgba(255,255,255,.65); font-size: 1.08rem; }
.page-hero-image { position: absolute; inset: 0; min-height: 520px; }
.page-hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,17,31,.97) 0%, rgba(7,17,31,.88) 42%, rgba(7,17,31,.42) 72%, rgba(7,17,31,.22) 100%); }
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.testimonials-section { background: white; }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.testimonial-card { min-height: 360px; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); }
.testimonial-card.featured { grid-column: span 2; min-height: 400px; background: var(--navy); color: white; }
.client-logo { width: 82px; height: 82px; display: grid; place-items: center; padding: 9px; background: white; border-radius: 50%; }
.client-logo-pair { display: flex; align-items: center; gap: 12px; }
.client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
blockquote { margin: 34px 0 auto; max-width: 920px; font-size: clamp(1.18rem, 2vw, 1.65rem); line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.testimonial-card.featured blockquote { font-size: clamp(1.4rem, 2.8vw, 2.25rem); color: rgba(255,255,255,.92); }
.testimonial-card > div:last-child { margin-top: 32px; display: grid; }
.testimonial-card > div:last-child span { color: var(--muted); font-size: .9rem; }
.testimonial-card.featured > div:last-child span { color: rgba(255,255,255,.56); }
.portfolio-section { color: white; background: #081829; }
.portfolio-section .section-heading.split > p { color: rgba(255,255,255,.62); }
.portfolio-filters { display: flex; gap: 10px; margin: -28px 0 34px; flex-wrap: wrap; }
.filter-button { min-height: 44px; padding: 0 20px; color: rgba(255,255,255,.72); background: transparent; border: 1px solid rgba(255,255,255,.24); font: inherit; font-weight: 800; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.filter-button:hover, .filter-button.active { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.filter-button:focus-visible, .mosaic-card:focus-visible, .project-modal-close:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.project-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 18px; }
.mosaic-card { position: relative; min-height: 390px; padding: 0; overflow: hidden; color: white; background: #102a46; border: 0; text-align: left; cursor: pointer; isolation: isolate; }
.mosaic-card.mosaic-wide { grid-column: span 2; }
.mosaic-card.mosaic-compact { height: 390px; min-height: 390px; }
.mosaic-card[hidden] { display: none; }
.mosaic-card::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg, rgba(3,12,24,.97) 0%, rgba(3,12,24,.45) 55%, rgba(3,12,24,.08) 100%); }
.mosaic-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .3s ease; }
.mosaic-card:hover > img { transform: scale(1.045); filter: brightness(1.08); }
.mosaic-card > b { position: absolute; z-index: 2; right: 26px; bottom: 31px; color: var(--gold); font-size: 1.75rem; transition: transform .2s ease; }
.mosaic-card:hover > b { transform: translateX(5px); }
.mosaic-copy { position: absolute; z-index: 2; inset: auto 70px 28px 28px; display: grid; }
.mosaic-copy small { color: var(--gold-soft); font-family: "Roboto Mono", monospace; font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; }
.mosaic-copy strong { margin-top: 7px; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.16; }
.mosaic-copy em { margin-top: 9px; color: rgba(255,255,255,.78); font-size: 1.05rem; line-height: 1.5; font-style: normal; }
.image-status { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 7px 10px; color: rgba(255,255,255,.72); background: rgba(7,17,31,.74); font-family: "Roboto Mono", monospace; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
body.modal-open { overflow: hidden; }
.project-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; }
.project-modal[hidden] { display: none; }
.project-modal-backdrop { position: absolute; inset: 0; background: rgba(2,8,15,.86); backdrop-filter: blur(8px); }
.project-modal-panel { position: relative; z-index: 1; width: min(1180px, 100%); max-height: calc(100svh - 48px); overflow: auto; color: white; background: var(--navy); box-shadow: 0 40px 100px rgba(0,0,0,.55); }
.project-modal:not([hidden]) .project-modal-backdrop { animation: project-backdrop-in .25s ease both; }
.project-modal:not([hidden]) .project-modal-panel { animation: project-panel-in .3s ease-out both; }
@keyframes project-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes project-panel-in { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.project-modal-close { position: absolute; z-index: 3; top: 18px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); background: var(--gold); border: 0; font-size: 2rem; line-height: 1; cursor: pointer; }
.project-modal-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 520px; }
.project-modal-hero { position: relative; grid-column: 1; grid-row: 1; min-height: 520px; background: #07111f; }
.project-modal-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.project-modal-hero > span { position: absolute; z-index: 2; left: 28px; top: 18px; padding: 8px 11px; background: rgba(7,17,31,.78); font-family: "Roboto Mono", monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.project-modal-content { grid-column: 2; grid-row: 1; padding: 78px clamp(34px, 4vw, 54px) 42px; }
.project-modal-intro h2 { margin-bottom: 20px; font-size: clamp(2rem, 2.7vw, 2.8rem); }
.project-modal-summary { margin-bottom: 22px; color: white; font-size: 1.15rem; font-weight: 700; }
.project-modal-description { margin-bottom: 0; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.project-modal-background .project-modal-lead { display: block; }
.project-modal-background .project-modal-hero { height: 430px; min-height: 0; }
.project-modal-background .project-modal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,12,24,.96) 0%, rgba(3,12,24,.58) 42%, rgba(3,12,24,.08) 100%); }
.project-modal-background .project-modal-hero img { object-fit: cover; }
.project-modal-background .project-modal-intro { position: absolute; z-index: 2; left: clamp(34px, 6vw, 72px); right: clamp(34px, 6vw, 72px); bottom: 35px; }
.project-modal-background .project-modal-intro h2 { max-width: 900px; margin-bottom: 12px; font-size: clamp(2rem, 3vw, 3rem); }
.project-modal-background .project-modal-summary { max-width: 760px; margin-bottom: 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.project-modal-background .project-modal-content { padding: 30px clamp(34px, 6vw, 72px) 46px; }
.project-detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 30px clamp(34px, 4vw, 54px) 56px; border-top: 1px solid rgba(255,255,255,.14); }
.project-detail-gallery > div { min-height: 220px; display: grid; place-items: center; padding: 25px; color: rgba(255,255,255,.5); background: #102a46; border: 1px dashed rgba(255,255,255,.24); text-align: center; font-family: "Roboto Mono", monospace; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.project-detail-gallery > .has-image { min-height: 0; margin: 0; padding: 0; overflow: hidden; display: block; background: #07111f; border: 0; text-align: left; }
.project-detail-gallery img { width: 100%; height: 330px; object-fit: contain; }
.project-detail-gallery figcaption { padding: 12px 16px 16px; color: rgba(255,255,255,.88); font-family: "Manrope", sans-serif; font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none; }

@media (max-width: 980px) {
  .site-header { min-height: 76px; }
  .brand img { width: 235px; height: 45px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; padding: 26px 24px 34px; display: none; align-items: stretch; flex-direction: column; gap: 10px; background: rgba(7,17,31,.98); border-top: 1px solid rgba(255,255,255,.12); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .nav-contact { margin-top: 8px; text-align: center; }
  .hero-content { padding-top: 130px; }
  .section-heading.split { grid-template-columns: 1fr; gap: 22px; }
  .intro-layout { grid-template-columns: 1fr; }
  .experience-card { min-height: 360px; }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 430px; }
  .contact-inner { grid-template-columns: 1fr; gap: 45px; }
  .contact-details { max-width: 780px; }
  .inner-page { padding-top: 76px; }
  .page-hero { grid-template-columns: 1fr; }
  .page-hero-image { min-height: 430px; }
  .page-hero-image::after { background: rgba(7,17,31,.72); }
  .project-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic-card.mosaic-wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .site-header { padding-inline: 18px; }
  .brand img { width: 205px; }
  .hero { min-height: 780px; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,12,24,.93), rgba(3,12,24,.56)), linear-gradient(0deg, rgba(3,12,24,.86), transparent); }
  .hero-content { padding: 125px 22px 145px; }
  .hero-actions { flex-wrap: nowrap; gap: 6px; }
  .hero-actions .button { flex: 1 1 0; min-width: 0; min-height: 48px; padding-inline: 6px; white-space: nowrap; font-size: clamp(.68rem, 3.05vw, .8rem); }
  .hero-note { left: 22px; right: auto; text-align: left; }
  .section { padding-inline: 22px; }
  .experience-card { min-height: 270px; }
  .experience-card strong { font-size: clamp(15rem, 55vw, 20rem); }
  .experience-card > span { margin-top: 22px; font-size: 1.1rem; }
  .principles article { grid-template-columns: 38px 1fr; }
  .principles article p { grid-column: 2; }
  .service-content { padding: 26px; }
  .section-link-row { text-align: left; }
  .experience-button { width: 100%; padding-inline: 12px; white-space: nowrap; font-size: clamp(.88rem, 4.2vw, 1rem); }
  .experience-label-desktop { display: none; }
  .experience-label-mobile { display: inline; }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid article { min-height: auto; }
  .why-grid h3 { margin-top: 30px; }
  .contact-inner { padding-inline: 22px; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-card { min-height: 118px; }
  .contact-card.phone { grid-column: auto; }
  .footer-base { padding-inline: 22px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .floating-contact { right: 16px; bottom: 16px; gap: 10px; }
  .floating-button { width: 54px; height: 54px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-card.featured { grid-column: auto; }
  .portfolio-filters { margin-top: -12px; }
  .project-mosaic { grid-template-columns: 1fr; }
  .mosaic-card, .mosaic-card.mosaic-wide { grid-column: auto; min-height: 340px; }
  .project-modal { padding: 0; }
  .project-modal-panel { max-height: 100svh; min-height: 100svh; }
  .project-modal-lead { display: flex; flex-direction: column; }
  .project-modal-content { padding: 82px 28px 28px; }
  .project-modal-intro h2 { font-size: clamp(1.85rem, 6vw, 2.5rem); }
  .project-modal-hero { min-height: 0; height: clamp(270px, 40svh, 380px); }
  .project-modal-background .project-modal-hero { height: clamp(320px, 46svh, 400px); }
  .project-modal-background .project-modal-intro { left: 25px; right: 25px; bottom: 24px; }
  .project-modal-background .project-modal-intro h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .project-modal-background .project-modal-content { padding: 28px; }
  .project-detail-gallery { grid-template-columns: 1fr; padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.project-detail-gallery .project-plan { grid-column: 1 / -1; }
.project-detail-gallery .project-plan img { height: auto; display: block; }

.project-detail-gallery .project-comparison { grid-column: auto; }
.comparison-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.comparison-half { position: relative; min-width: 0; }
.project-detail-gallery .comparison-half img { display: block; width: 100%; height: 240px; object-fit: contain; background: #07111f; }
.comparison-label { position: absolute; left: 12px; top: 12px; padding: 6px 10px; color: white; background: rgba(7,17,31,.88); font-size: .875rem; font-weight: 700; }
@media (max-width: 600px) { .comparison-label { left: 6px; top: 6px; padding: 4px 7px; } }

.mosaic-card[data-project-focus="lid"] > img { object-position: center center; transform: none; }
.mosaic-card[data-project-focus="lid"]:hover > img { transform: scale(1.025); }
.project-modal-lid .project-modal-hero { overflow: hidden; }
.project-modal-lid .project-modal-hero img { object-fit: contain; object-position: center center; transform: none; }
@media (max-width: 600px) { .project-detail-gallery .comparison-half img { height: 200px; } }

.project-comparison-three .comparison-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }


.project-modal-lid .project-modal-hero img { height: auto; top: 50%; bottom: auto; transform: translateY(-50%); }

.project-detail-gallery.project-slide-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-slide-gallery .has-image img { height: 240px; display: block; width: 100%; object-fit: contain; }
@media (max-width: 600px) {
  .project-detail-gallery.project-slide-gallery { grid-template-columns: minmax(0, 1fr); }
  .project-slide-gallery .has-image img { height: 200px; }
}

.project-image-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.project-image-trigger:focus-visible { outline: 3px solid #ffbd16; outline-offset: -3px; }
.comparison-label { pointer-events: none; }
.project-image-viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 48px 20px 20px; border: 0; background: rgba(7, 17, 31, .97); }
.project-image-viewer[open] { display: flex; align-items: center; justify-content: center; }
.project-image-viewer::backdrop { background: rgba(0, 0, 0, .85); }
.project-image-viewer > img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.project-image-close { position: absolute; top: 8px; right: 16px; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }

/* Inicio con identidad BAP */
.hero-brand { background: radial-gradient(ellipse at 84% 42%, #173c59 0%, #0b1e34 40%, #07111f 78%); }
.hero-brand-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-brand-art img { position: absolute; width: 58vw; max-width: 1000px; right: 2vw; top: 50%; transform: translateY(-50%); opacity: .46; }
.hero-brand .hero-shade { background: linear-gradient(90deg, #07111f 0%, rgba(7,17,31,.95) 28%, rgba(7,17,31,.7) 47%, rgba(7,17,31,.12) 75%, transparent 100%); }
.hero-brand .hero-grid { opacity: .12; background-size: 96px 96px; mask-image: linear-gradient(90deg, transparent 20%, #000 100%); }
.hero-brand .hero-content { max-width: 1000px; padding-right: 5vw; }
.hero-brand h1 { max-width: 750px; font-size: clamp(3.2rem, 5.8vw, 6rem); }
.hero-brand .hero-copy { max-width: 650px; }
.hero-brand .hero-note { padding-top: 14px; border-top: 2px solid var(--gold); }
@media (max-width: 900px) {
  .hero-brand-art img { width: 90vw; right: -22vw; opacity: .29; }
  .hero-brand .hero-shade { background: linear-gradient(90deg, rgba(7,17,31,.95), rgba(7,17,31,.42)); }
}
@media (max-width: 640px) {
  .hero-brand-art img { width: 115vw; max-width: none; right: -27vw; top: 43%; opacity: .27; }
  .hero-brand .hero-content { padding: 125px 22px 145px; }
  .hero-brand .hero-shade { background: linear-gradient(90deg, rgba(7,17,31,.82), rgba(7,17,31,.3)), linear-gradient(0deg, #07111f 0%, transparent 65%); }
  .hero-brand h1 { font-size: clamp(3.2rem, 11.5vw, 4.5rem); }
}
