:root {
  --navy-950: #061421;
  --navy-900: #0b2545;
  --navy-800: #12365f;
  --blue-500: #2e92bb;
  --blue-100: #dff1f7;
  --gold: #eeb902;
  --gold-dark: #c99900;
  --ink: #12202e;
  --muted: #5c6975;
  --line: #d8e0e6;
  --surface: #f4f6f7;
  --white: #ffffff;
  --shell: min(1180px, calc(100% - 40px));
  --shadow: 0 24px 70px rgba(6, 20, 33, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Montserrat, Aptos, "Segoe UI", Helvetica, Arial, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img, svg { max-width: 100%; }
:where(.shell, .nav-row, .brand, .brand-name, .section-heading, .about-grid > *, .contact-grid > *, .contact-band-grid > *, .footer-grid > *) { min-width: 0; }

.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; }
.brand-full-logo { width: 100%; max-width: 260px; height: auto; display: block; flex: 0 1 260px; }
.footer-logo { max-width: 240px; }
button { cursor: pointer; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--gold); color: var(--navy-950); padding: 12px 18px; font-weight: 800; border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.topline { background: var(--navy-950); color: #c5d3de; font-size: .76rem; letter-spacing: .04em; }
.topline-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; }
.topline a { color: var(--white); font-weight: 700; }
.topline-links { display: flex; gap: 22px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(11,37,69,.09); backdrop-filter: blur(16px); }
.nav-row { min-height: 82px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 270px; position: relative; }
.brand-mark { width: 50px; aspect-ratio: 1; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold); font-family: Georgia, serif; font-size: 1rem; font-weight: 800; letter-spacing: .08em; box-shadow: inset 0 0 0 5px rgba(238,185,2,.07); }
.brand-mark-image { width: 52px; height: 52px; flex: 0 0 auto; display: block; }
.brand-custom-logo, .brand-custom-logo .custom-logo-link { display: inline-flex; align-items: center; }
.brand-custom-logo img { display: block; width: auto; height: 52px; max-width: 88px; object-fit: contain; }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { color: var(--navy-900); font-size: .94rem; overflow-wrap: normal; }
.brand small { color: var(--muted); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; margin-top: 4px; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: 23px; margin-left: auto; }
.primary-nav a { color: #324456; font-size: .84rem; font-weight: 700; }
.primary-nav a:hover { color: var(--blue-500); }
.language-switch { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.language-switch a { border: 0; background: transparent; color: var(--muted); min-width: 39px; min-height: 40px; padding: 10px 9px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; border-radius: 999px; line-height: 1; }
.language-switch a.active { color: var(--white); background: var(--navy-900); }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; background: transparent; border: 0; padding: 10px; flex: 0 0 auto; border-radius: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 4px; }
.menu-toggle b { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.hero { min-height: 690px; position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; color: var(--white); background: var(--navy-950); }
.hero-media, .hero-overlay { position: absolute; inset: 0; z-index: -2; }
.hero-media { background-image: url('../images/hero-naval.jpg'); background-position: center; background-size: cover; transform: scale(1.01); }
.hero-overlay { z-index: -1; background: linear-gradient(90deg, rgba(6,20,33,.96) 0%, rgba(6,20,33,.83) 38%, rgba(6,20,33,.32) 72%, rgba(6,20,33,.18) 100%), linear-gradient(0deg, rgba(6,20,33,.58), transparent 45%); }
.hero-content { padding-block: 115px 135px; }
.eyebrow { color: var(--blue-500); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.eyebrow.light { color: #83d2eb; }
.hero h1 { max-width: 840px; margin: 0; font-size: clamp(3rem, 6vw, 5.7rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero-intro { max-width: 700px; margin: 28px 0 0; color: #d8e4eb; font-size: 1.12rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 4px; border: 1px solid transparent; font-size: .84rem; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--navy-950); }
.button-gold:hover { background: #ffd447; }
.button-ghost { border-color: rgba(255,255,255,.5); color: var(--white); background: rgba(255,255,255,.03); }
.button-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.metrics { position: relative; margin-top: -56px; z-index: 4; }
.metrics-grid { background: var(--white); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 4px solid var(--gold); }
.metrics-grid div { min-height: 118px; padding: 28px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.metrics-grid div:last-child { border-right: 0; }
.metrics-grid small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.metrics-grid strong { color: var(--navy-900); font-size: 1.12rem; margin-top: 5px; }

.section { padding-block: 112px; }
.section-heading { max-width: 850px; margin-bottom: 52px; }
.section-heading h2, .about-copy h2, .contact h2 { margin: 0; color: var(--navy-900); font-size: clamp(2.15rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.section-heading > p, .split-heading > p { color: var(--muted); font-size: 1.02rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: end; }
.split-heading > p { margin: 0 0 8px; }
.services { padding-top: 150px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 330px; padding: 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); overflow: hidden; transition: background .25s ease, color .25s ease, transform .25s ease; }
.service-card > span { color: var(--blue-500); font-size: .76rem; letter-spacing: .12em; font-weight: 800; }
.service-card h3 { color: var(--navy-900); font-size: 1.35rem; line-height: 1.25; margin: 72px 0 16px; }
.service-card p { color: var(--muted); font-size: .91rem; margin: 0; }
.service-card a { position: static; color: var(--navy-900); font-size: 0; }
/* Stretch the link across the card while keeping the decorative arrow visible. */
.service-card a::before { content: "↗"; position: absolute; right: 28px; bottom: 24px; font-size: 1.25rem; pointer-events: none; }
.service-card a::after { content: ""; position: absolute; inset: 0; }
.service-card:focus-within { outline: 3px solid var(--gold); outline-offset: -3px; }
.service-card:hover { background: var(--navy-900); color: var(--white); transform: translateY(-4px); }
.service-card:hover h3, .service-card:hover p, .service-card:hover a { color: var(--white); }

.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; align-items: center; }
.blueprint-panel { min-height: 580px; position: relative; overflow: hidden; background-color: var(--navy-900); background-image: linear-gradient(rgba(78,146,187,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(78,146,187,.12) 1px, transparent 1px); background-size: 32px 32px; box-shadow: var(--shadow); }
.blueprint-panel::before, .blueprint-panel::after { content: ""; position: absolute; left: 12%; right: 12%; border: 1px solid rgba(131,210,235,.58); border-radius: 50%; }
.blueprint-panel::before { height: 42%; top: 23%; clip-path: polygon(0 42%, 100% 42%, 100% 100%, 0 100%); }
.blueprint-panel::after { height: 16%; top: 42%; border-radius: 0 0 50% 50%; border-top: 3px solid rgba(238,185,2,.7); }
.ship-lines span { position: absolute; left: 18%; right: 18%; height: 1px; background: rgba(131,210,235,.42); }
.ship-lines span:nth-child(1) { top: 35%; }
.ship-lines span:nth-child(2) { top: 50%; }
.ship-lines span:nth-child(3) { top: 65%; }
.blueprint-panel p { position: absolute; left: 32px; bottom: 22px; margin: 0; color: #83d2eb; font-size: .66rem; letter-spacing: .16em; }
.about-copy .large-copy { color: #425363; font-size: 1.04rem; line-height: 1.9; margin-top: 30px; }
.about-copy ul { list-style: none; padding: 0; margin: 34px 0 0; }
.about-copy li { position: relative; padding: 15px 0 15px 34px; border-top: 1px solid var(--line); font-size: .92rem; }
.about-copy li::before { content: ""; position: absolute; left: 3px; top: 24px; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; }
.text-link { display: inline-block; margin-top: 28px; color: var(--navy-900); font-size: .85rem; font-weight: 800; border-bottom: 2px solid var(--gold); padding-bottom: 3px; }

.process { background: var(--navy-950); color: var(--white); }
.process .section-heading h2 { color: var(--white); }
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: process; }
.process-grid li { min-height: 285px; padding: 0 30px 0 0; border-top: 1px solid rgba(255,255,255,.2); }
.process-grid li + li { border-left: 1px solid rgba(255,255,255,.15); padding-left: 30px; }
.process-grid span { display: inline-block; color: var(--gold); font-size: .72rem; font-weight: 800; padding-top: 24px; }
.process-grid h3 { font-size: 1.13rem; margin: 72px 0 14px; }
.process-grid p { color: #aebdca; font-size: .88rem; margin: 0; }

.experience { background: var(--white); }
.experience-list { border-top: 1px solid var(--navy-900); }
.experience-list article { display: grid; grid-template-columns: 80px .75fr 1.25fr; align-items: center; gap: 28px; min-height: 135px; border-bottom: 1px solid var(--line); }
.experience-list span { color: var(--blue-500); font-size: .76rem; font-weight: 800; }
.experience-list h3 { color: var(--navy-900); font-size: 1.25rem; margin: 0; }
.experience-list p { color: var(--muted); font-size: .89rem; margin: 0; }
.experience-list small { display: block; color: #7a8792; font-size: .76rem; margin-top: 8px; }
.experience-more { margin-top: 34px; }

.contact { background: var(--navy-900); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.contact h2 { color: var(--white); }
.contact-copy > p:not(.eyebrow) { color: #c5d3de; max-width: 540px; margin-top: 28px; }
.contact-links { display: grid; gap: 7px; margin-top: 36px; }
.contact-links a { color: var(--white); font-weight: 700; }
.contact-links a:last-child { color: var(--gold); margin-top: 12px; }
.contact-links a, .footer-grid a, .footer-grid p { overflow-wrap: anywhere; }
.contact-form { background: var(--white); color: var(--ink); padding: 42px; box-shadow: var(--shadow); }
.contact-form h3 { color: var(--navy-900); font-size: 1.5rem; margin: 0 0 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: grid; gap: 7px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid label span { color: #536271; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #cbd5dc; border-radius: 2px; padding: 12px 13px; color: var(--ink); background: var(--white); font-size: 1rem; }
.form-grid textarea { resize: vertical; }
.contact-form .button { border: 0; margin-top: 22px; }
.contact-form > small { display: block; color: var(--muted); margin-top: 14px; }

.site-footer { background: #04101a; color: #b8c5cf; padding: 70px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 70px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.brand-footer { min-width: 0; margin-bottom: 14px; }
.brand-footer strong { color: var(--white); }
.brand-footer small { color: #9fb0bd; }
.footer-grid p { margin: 0; max-width: 390px; }
.footer-grid > div > strong { color: var(--white); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { margin-top: 60px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; font-size: .75rem; }

/* Interior pages */
.interior-hero { position: relative; overflow: hidden; background-color: var(--navy-950); background-image: linear-gradient(120deg, rgba(46,146,187,.14), transparent 55%), linear-gradient(rgba(78,146,187,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(78,146,187,.08) 1px, transparent 1px); background-size: auto, 36px 36px, 36px 36px; color: var(--white); padding-block: 125px 115px; }
.interior-hero::after { content: ""; position: absolute; width: 460px; height: 460px; right: -120px; bottom: -300px; border: 1px solid rgba(238,185,2,.35); border-radius: 50%; box-shadow: 0 0 0 80px rgba(238,185,2,.025), 0 0 0 160px rgba(238,185,2,.018); }
.narrow-shell { max-width: 900px; }
.interior-hero h1, .fallback-content h1, .not-found h1 { margin: 0; font-size: clamp(2.9rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.interior-hero p:last-child { max-width: 740px; color: #c7d7e2; font-size: 1.08rem; line-height: 1.8; margin: 28px 0 0; }

.service-details { padding-top: 70px; }
.service-detail { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 44px; padding: 58px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.service-detail-number { color: var(--blue-500); font-weight: 800; letter-spacing: .12em; }
.service-detail h2 { color: var(--navy-900); font-size: 1.7rem; line-height: 1.2; margin: 0 0 15px; }
.service-detail p { color: var(--muted); margin: 0; }
.service-detail ul { list-style: none; padding: 0; margin: 0; }
.service-detail li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid #e6ebef; color: #425363; font-size: .9rem; }
.service-detail li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.contact-band { background: var(--navy-800); color: var(--white); padding-block: 85px; }
.contact-band-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 90px; }
.contact-band h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.contact-band-grid > div:last-child p { color: #c5d3de; margin: 0 0 25px; }

.experience-projects { padding-top: 90px; }
.sector-band { background: var(--navy-900); color: var(--white); }
.sector-band h2 { max-width: 760px; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.08; margin: 0; }
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 55px; border-top: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.2); }
.sector-grid span { padding: 28px 22px; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); color: #d5e0e8; font-weight: 700; }

.about-story { background: var(--surface); }
.timeline article { display: grid; grid-template-columns: 92px 1fr; gap: 26px; padding: 0 0 42px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.timeline article > span { color: var(--blue-500); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.timeline h2 { color: var(--navy-900); font-size: 1.35rem; margin: 0 0 12px; }
.timeline p { color: var(--muted); margin: 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.values-grid div { min-height: 160px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.values-grid span { color: var(--blue-500); font-size: .72rem; font-weight: 800; }
.values-grid strong { color: var(--navy-900); font-size: 1.08rem; }

.contact-page { background: var(--surface); }
.contact-page .contact-copy h2 { color: var(--navy-900); }
.contact-page .contact-copy > p:not(.eyebrow) { color: var(--muted); }
.contact-page .contact-links a { color: var(--navy-900); }
.contact-page .contact-links a:last-child { color: #926f00; }
.contact-page address { color: var(--muted); font-style: normal; margin-top: 35px; }
.contact-form h2 { color: var(--navy-900); font-size: 1.6rem; margin: 0 0 28px; }
.contact-form small a { color: var(--navy-900); text-decoration: underline; }
.form-message { padding: 14px 16px; margin: -5px 0 24px; font-size: .88rem; border-left: 4px solid; }
.form-message.success { background: #e9f7ef; color: #1e5b38; border-color: #2f8b56; }
.form-message.error { background: #fff0f0; color: #7b2222; border-color: #bd3b3b; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.privacy-page { background: var(--surface); }
.prose-content section { background: var(--white); padding: 30px 34px; border-left: 3px solid var(--gold); margin-bottom: 18px; }
.prose-content h2 { color: var(--navy-900); font-size: 1.25rem; margin: 0 0 10px; }
.prose-content p { color: var(--muted); margin: 0; }
.fallback-content, .not-found { min-height: 60vh; }
.not-found p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }

@media (max-width: 1020px) {
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--white); padding: 12px max(20px, calc((100vw - 1180px) / 2)) 22px; display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: 0 20px 35px rgba(6,20,33,.17); }
  .primary-nav a { display: flex; align-items: center; min-height: 48px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .primary-nav a[aria-current="page"] { color: var(--navy-900); border-bottom-color: var(--gold); }
  .primary-nav.is-open { display: flex; }
  .menu-toggle { display: block; margin-left: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { gap: 50px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .process-grid li:nth-child(3) { border-left: 0; padding-left: 0; }
  .service-detail { grid-template-columns: 60px 1fr; }
  .service-detail ul { grid-column: 2; }
  .contact-band-grid { gap: 50px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 32px); }
  .topline-inner span { display: none; }
  .topline-inner { justify-content: flex-end; }
  .nav-row { min-height: 72px; gap: 8px; }
  .brand { min-width: 0; flex: 1 1 auto; gap: 9px; }
  .brand-mark-image { width: 44px; height: 44px; }
  .brand-mark { width: 43px; }
  .brand strong { font-size: .78rem; }
  .brand small { font-size: .6rem; }
  .primary-nav { top: 100%; }
  .language-switch a { min-width: 38px; min-height: 40px; padding: 8px 7px; }
  .hero { min-height: 0; }
  .hero-media { background-position: 62% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(6,20,33,.96), rgba(6,20,33,.75)), linear-gradient(0deg, rgba(6,20,33,.7), transparent); }
  .hero-content { padding-block: 72px 105px; }
  .hero h1 { max-width: 620px; font-size: clamp(2.05rem, 9.4vw, 3.45rem); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: break-word; }
  .hero .eyebrow { font-size: .68rem; letter-spacing: .1em; line-height: 1.65; margin-bottom: 14px; }
  .hero-intro { margin-top: 22px; font-size: .98rem; line-height: 1.65; }
  .hero-actions { gap: 10px; margin-top: 26px; }
  .hero-actions .button { width: 100%; }
  .metrics { margin-top: -42px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid div { min-height: 95px; padding: 20px; }
  .metrics-grid div:nth-child(2) { border-right: 0; }
  .metrics-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding-block: 64px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .about-copy h2, .contact h2 { font-size: clamp(1.8rem, 7vw, 2.65rem); line-height: 1.16; }
  .services { padding-top: 94px; }
  .split-heading, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 255px; padding: 29px 28px; }
  .service-card h3 { margin-top: 44px; }
  .blueprint-panel { min-height: 280px; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-grid li, .process-grid li + li { min-height: 0; border-left: 0; padding: 0 0 30px; }
  .process-grid h3 { margin-top: 20px; }
  .experience-list article { grid-template-columns: 50px 1fr; padding-block: 24px; gap: 10px 20px; }
  .experience-list article > div { grid-column: 2; }
  .contact-form { padding: 28px 20px; }
  .contact-form .button, .contact-band .button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .interior-hero { padding-block: 68px 66px; }
  .interior-hero h1, .fallback-content h1, .not-found h1 { font-size: clamp(2rem, 8.7vw, 3.4rem); line-height: 1.1; overflow-wrap: break-word; }
  .interior-hero p:last-child { margin-top: 22px; font-size: 1rem; line-height: 1.65; }
  .service-detail { grid-template-columns: 42px 1fr; gap: 20px; padding: 42px 0; }
  .service-detail ul { grid-column: 1 / -1; padding-left: 0; }
  .contact-band-grid { grid-template-columns: 1fr; gap: 28px; }
  .sector-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .topline-links a:first-child { display: none; }
  .timeline article { grid-template-columns: 70px 1fr; }

}

@media (max-width: 480px) {
  .topline { display: none; }
  .sector-grid, .values-grid { grid-template-columns: 1fr; }
  .nav-row { min-height: 70px; }
  .metrics-grid div { padding: 16px; }
  .metrics-grid small { font-size: .65rem; }
  .metrics-grid strong { font-size: .99rem; }
  .contact-band { padding-block: 62px; }
  .contact-links a { overflow-wrap: anywhere; }
  .prose-content section { padding: 24px 20px; }
}

@media (max-width: 360px) {
  :root { --shell: calc(100% - 28px); }
  .brand strong { font-size: .71rem; }
  .brand small { font-size: .58rem; letter-spacing: .04em; }
  .brand-mark-image { width: 41px; height: 41px; }
  .language-switch { padding: 2px; }
  .language-switch a { min-width: 35px; padding-inline: 5px; }
  .hero h1 { font-size: 2.05rem; }
  .metrics-grid div { padding: 15px 13px; }
  .service-card { padding: 25px 22px; }
  .service-detail { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
  .footer-grid { gap: 30px; }
}

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

/* UNI Group: survey-to-CAD showcase. Original navy, blue and gold tokens retained. */
.lidar-showcase { background: var(--surface); }
.lidar-stages { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.lidar-stage { min-width: 0; background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 25px rgba(6,20,33,.055); }
.lidar-image { height: 205px; background: var(--navy-950); overflow: hidden; }
.lidar-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lidar-stage:nth-child(3) .lidar-image { background: var(--white); }
.lidar-stage:nth-child(3) .lidar-image img { object-fit: contain; }
.lidar-stage-copy { padding: 23px 26px 29px; border-top: 3px solid var(--gold); }
.lidar-stage-copy span { font-size: .74rem; font-weight: 800; color: var(--blue-500); letter-spacing: .13em; }
.lidar-stage-copy h3 { margin: 8px 0 7px; font-size: 1.16rem; line-height: 1.3; color: var(--navy-900); }
.lidar-stage-copy p { margin: 0; color: var(--muted); font-size: .87rem; }
.lidar-note, .services-disclaimer { color: var(--muted); font-size: .83rem; line-height: 1.7; }
.lidar-note { margin: 20px 0 0; }
.services-disclaimer { max-width: 950px; padding: 25px 24px; margin: 26px 0 0; border-left: 3px solid var(--gold); background: var(--surface); }
.service-more { margin-top: 28px; }
.contact-links { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .lidar-stages { grid-template-columns: 1fr; gap: 18px; }
  .lidar-image { height: auto; aspect-ratio: 3.6 / 1; }
  .lidar-image img { object-fit: cover; }
  .lidar-stage:nth-child(3) .lidar-image { aspect-ratio: 3 / 1; }
  .lidar-stage-copy { padding: 19px 21px 24px; }
  .service-more { margin-top: 24px; }
}
@media (min-width: 761px) and (max-width: 1020px) {
  .lidar-stages { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lidar-stage:last-child { grid-column: 1 / -1; }
}

/* 2026 technical journal; built on original Arquitectos Navales & Asociados palette. */
.blog-teaser, .blog-related { background: var(--surface); }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 25px; }
.blog-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: 0 13px 32px rgba(6,20,33,.045); min-width: 0; }
.blog-card-media { display: block; aspect-ratio: 16 / 8.6; overflow: hidden; background: var(--navy-950); }
.blog-card-media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.blog-card:hover .blog-card-media img { transform:scale(1.025); }
.blog-card-copy { padding: 30px 32px 35px; flex: 1; }
.blog-card-copy h3 { font-size: clamp(1.3rem,2vw,1.7rem); line-height:1.22; color:var(--navy-900); margin: 16px 0; letter-spacing:-.015em; }
.blog-card-copy h3 a:hover { color:var(--blue-500); }
.blog-card-copy p { color:var(--muted); font-size:.94rem; line-height:1.8; }
.blog-card-copy .text-link { margin-top:15px; }
.blog-tags { display:flex; flex-wrap:wrap; gap:10px 20px; color:var(--blue-500); font-size:.72rem; text-transform:uppercase; font-weight:800; letter-spacing:.06em; }
.blog-tags span + span { color: var(--muted); }
.blog-list-section .section-heading { max-width:780px; }
.breadcrumbs { display:flex; gap:12px; align-items:center; padding-top:22px; padding-bottom:22px; flex-wrap:wrap; font-size:.8rem; color:var(--muted); }
.breadcrumbs a { color:var(--navy-800); font-weight:700; }
.breadcrumbs a:hover { text-decoration:underline; }
.blog-article-heading { background:var(--navy-900); color:#fff; padding:75px 0 105px; }
.blog-article-heading h1 { margin:0; font-size:clamp(2.05rem,4.7vw,4.35rem); max-width:940px; line-height:1.11; letter-spacing:-.04em; text-wrap:balance; overflow-wrap:break-word; }
.blog-article-heading .narrow-shell { max-width: 980px; }
.blog-article-heading .narrow-shell > p:not(.eyebrow) { color:#dce8ef; max-width:790px; line-height:1.75; font-size:1.15rem; margin-top:25px; }
.blog-byline { margin-top:26px; border-top:1px solid rgba(255,255,255,.22); padding-top:17px; display:flex; flex-wrap:wrap; gap:10px 28px; font-size:.8rem; color:#d3e1eb; }
.blog-feature { margin-top:-58px; position:relative; z-index:2; border: 8px solid var(--white); box-shadow: var(--shadow); height:min(43vw,420px); background:var(--surface); }
.blog-feature img { display:block; width:100%; height:100%; object-fit:cover; }
.blog-article-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; align-items:start; gap:7%; }
.blog-article-body { min-width:0; max-width:790px; }
.blog-article-body section { margin-top:49px; }
.blog-article-body h2 { font-size:clamp(1.4rem,2.5vw,1.98rem); line-height:1.25; margin:0 0 21px; color:var(--navy-900); letter-spacing:-.022em; }
.blog-article-body p { font-size:1rem; line-height:1.95; color:#3f5365; margin:0 0 20px; }
.blog-article-body ul { margin:12px 0 26px; padding-left:22px; }
.blog-article-body li { margin:12px 0; line-height:1.75; }
.blog-article-body li::marker { color:var(--blue-500); }
.editorial-notice { padding:18px 20px; background:var(--surface); border-left:3px solid var(--gold); font-size:.85rem !important; line-height:1.7 !important; }
.blog-keypoints { background:var(--navy-950); color:#fff; padding:32px 37px; margin:30px 0 50px; }
.blog-keypoints h2 { color:#fff; margin:0 0 15px; font-size:1.32rem; }
.blog-keypoints li { color:#dfe7ed; }
.blog-aside-inner { position:sticky; top:115px; background:var(--surface); padding:30px 25px; border-top:4px solid var(--gold); }
.blog-aside-inner h2 { font-size:1.45rem; line-height:1.25; color:var(--navy-900); margin:0; }
.blog-aside-inner p:not(.eyebrow) { color:var(--muted); line-height:1.75; font-size:.9rem; }
.blog-aside-inner .button { width:100%; text-align:center; }
.blog-aside-inner .text-link { font-size:.78rem; }
.blog-references { border-top:1px solid var(--line); padding-top:29px; }
.blog-references a { color:var(--navy-800); text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
@media (max-width: 1020px) {
  .blog-article-layout { grid-template-columns:1fr; gap:40px; }
  .blog-article-aside { max-width:790px; }
  .blog-aside-inner { position:static; }
  .nav-row { gap:15px; }
  .primary-nav { gap:16px; }
}
@media (max-width:760px) {
  .blog-grid { grid-template-columns:1fr; gap:17px; }
  .blog-card-copy { padding:25px 23px 28px; }
  .blog-card-media { aspect-ratio: 16 / 8.5; }
  .blog-article-heading { padding:53px 0 85px; }
  .blog-article-heading h1 { font-size:clamp(2rem,8vw,2.9rem); }
  .blog-article-heading .narrow-shell > p:not(.eyebrow) { font-size:.99rem; line-height:1.7; }
  .blog-feature { height:200px; margin-top:-45px; border-width:5px; }
  .blog-article-body p { font-size:.96rem; line-height:1.82; }
  .blog-keypoints { padding:26px 24px; }
  .blog-article-body section { margin-top:38px; }
  .blog-article-body h2 { line-height:1.26; }
  .blog-article-layout { gap:30px; }
  .breadcrumbs { gap:9px; font-size:.75rem; }
  .blog-aside-inner .button { width:100%; }
}
@media (max-width:360px) {
  .blog-article-heading h1 { font-size:1.95rem; }
  .blog-card-copy { padding:22px 20px 25px; }
  .blog-feature { height:165px; }
}

.brand-mark-original { object-fit: contain; border-radius: 50%; background: transparent; }
.site-header .brand-mark-original { width: 52px; height: 52px; }
.site-footer .brand-mark-original { width: 52px; height: 52px; }
