:root {
  --navy-950: #06182f;
  --navy-900: #09233f;
  --navy-800: #103c63;
  --gold-500: #e7b536;
  --gold-100: #fff4cf;
  --ink: #112c47;
  --muted: #657589;
  --paper: #ffffff;
  --cloud: #f3f7fa;
  --line: #dce6ed;
  --radius-lg: 30px;
  --radius-md: 21px;
  --shadow: 0 18px 50px rgba(6, 24, 47, .12);
  --shadow-soft: 0 8px 28px rgba(6, 24, 47, .08);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body { margin: 0; color: var(--ink); background: var(--cloud); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(231, 181, 54, .75); outline-offset: 4px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 999; left: 18px; top: 10px; padding: 10px 17px; color: var(--navy-950); background: var(--gold-500); border-radius: 999px; font-weight: 900; transform: translateY(-180%); transition: transform 160ms ease; }
.skip:focus { transform: translateY(0); }

.utility-bar { color: #dce8f2; background: var(--navy-950); border-top: 4px solid var(--gold-500); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.utility-bar .wrap { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.utility-bar a { color: var(--paper); }
.masthead { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(9,35,63,.08); backdrop-filter: blur(14px); transition: box-shadow 180ms ease; }
.masthead.is-scrolled { box-shadow: 0 12px 36px rgba(6,24,47,.12); }
.masthead-row { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: flex-end; gap: 10px; min-width: max-content; color: var(--navy-950); line-height: 1; }
.logo strong { position: relative; padding-bottom: 12px; font-size: 2.2rem; font-weight: 950; letter-spacing: -.07em; }
.logo strong::after { content: ""; position: absolute; left: 0; bottom: 1px; width: 100%; height: 4px; background: var(--gold-500); border-radius: 99px; }
.logo span { padding-bottom: 15px; font-size: .72rem; font-weight: 950; letter-spacing: .15em; }

.site-nav { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.site-nav > a, .nav-more-btn { position: relative; min-height: 44px; display: inline-flex; align-items: center; padding: 9px 10px; color: #596879; background: transparent; border: 0; border-radius: 12px; font-size: .86rem; font-weight: 800; white-space: nowrap; transition: color 160ms ease, background 160ms ease; }
.site-nav > a:hover, .nav-more-btn:hover, .site-nav > a.current, .nav-more.current .nav-more-btn { color: var(--navy-950); background: var(--gold-100); }
.site-nav > a.current::after, .nav-more.current .nav-more-btn::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; background: var(--gold-500); border-radius: 99px; }
.nav-more { position: relative; }
.nav-more-btn::before { content: "More"; }
.nav-more-btn::after { content: "⌄"; margin-left: 6px; font-size: .9rem; }
.nav-popover { position: absolute; top: calc(100% + 10px); right: 0; width: 225px; padding: 9px; visibility: hidden; opacity: 0; transform: translateY(-8px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: 160ms ease; }
.nav-more:hover .nav-popover, .nav-more:focus-within .nav-popover, .nav-more.open .nav-popover { visibility: visible; opacity: 1; transform: none; }
.nav-popover a { display: block; padding: 11px 13px; color: var(--ink); border-radius: 11px; font-size: .9rem; font-weight: 800; }
.nav-popover a:hover, .nav-popover a.current { background: var(--gold-100); }
.site-nav .contact-link, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; color: var(--navy-950) !important; background: var(--gold-500) !important; border: 2px solid var(--gold-500); border-radius: 999px !important; font-weight: 950 !important; transition: transform 160ms ease, box-shadow 160ms ease; }
.site-nav .contact-link::after { display: none !important; }
.site-nav .contact-link:hover, .button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(231,181,54,.28); }
.button.outline { color: var(--navy-950) !important; background: transparent !important; border-color: var(--navy-950); }
.button.outline:hover { color: var(--paper) !important; background: var(--navy-950) !important; box-shadow: var(--shadow-soft); }
.button.light { color: var(--navy-950) !important; background: var(--paper) !important; border-color: var(--paper); }
.menu-button { display: none; width: 48px; height: 48px; margin-left: auto; padding: 12px; color: var(--paper); background: var(--navy-950); border: 0; border-radius: 14px; }
.menu-button i { display: block; height: 2px; margin: 5px 0; background: currentColor; border-radius: 2px; transition: 180ms ease; }
.menu-button[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { overflow: clip; }
h1, h2, h3 { margin: 0; color: var(--navy-950); line-height: 1.08; letter-spacing: -.04em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.7rem); }
h3 { font-size: clamp(1.15rem, 1.65vw, 1.45rem); }
p { margin-top: 0; }
.kicker { display: inline-flex; align-items: center; gap: 11px; margin: 0 0 14px; color: var(--navy-800); font-size: .76rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.kicker::before { content: ""; width: 42px; height: 5px; background: var(--gold-500); border-radius: 99px; }
.lede { max-width: 750px; margin: 20px 0 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }

.home-visual { background: var(--paper); border-bottom: 1px solid var(--line); }
.home-visual img { width: 100%; height: auto; max-height: 820px; object-fit: contain; background: #ecf4f9; }
.inner-hero { position: relative; padding: 86px 0; color: var(--paper); background: linear-gradient(130deg, rgba(6,24,47,.99), rgba(16,60,99,.94)); }
.inner-hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 48px 48px; }
.inner-hero .wrap { position: relative; z-index: 1; }
.inner-hero h1 { color: var(--paper); }
.inner-hero .kicker { color: var(--gold-500); }
.inner-hero .lede { color: #cfdeea; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.visual-card { overflow: hidden; min-height: 410px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.visual-card img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; }
.services-hero-visual img { transform: scale(1.45); transform-origin: 100% 48%; }
.safety-logo-image { object-position: center bottom; }
.visual-card.quality-safety-visual { min-height: 0; background: #eaf1f6; }
.visual-card.quality-safety-visual img { height: auto; min-height: 0; object-fit: contain; }

.section { padding: 88px 0; }
.section.compact { padding: 64px 0; }
.section.paper { background: var(--paper); }
.section.navy { color: var(--paper); background: var(--navy-950); }
.section.gold-wash { background: var(--gold-100); }
.section.navy h2, .section.navy h3 { color: var(--paper); }
.section.navy .kicker { color: var(--gold-500); }
.section.navy .lede { color: #c7d8e6; }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.section-title > div { max-width: 830px; }

.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.metric { position: relative; min-height: 212px; padding: 23px 19px; overflow: hidden; background: var(--paper); border: 1px solid #eadfbf; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.metric::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--gold-500); }
.metric img { width: 65px; height: 65px; margin-bottom: 12px; object-fit: contain; }
.metric-value { display: block; color: var(--navy-950); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 950; letter-spacing: -.045em; line-height: 1; }
.metric-label { display: block; margin-top: 11px; color: var(--muted); font-size: .82rem; font-weight: 800; line-height: 1.45; }

.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.panel { padding: 29px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.panel h3 { margin-bottom: 12px; }
.panel p { margin: 0; color: var(--muted); }
.section.navy .panel h3 { color: var(--navy-950); }
.badge { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; color: var(--navy-950); background: var(--gold-100); border-radius: 50%; font-weight: 950; }
.service-panel { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 19px; min-height: 205px; }
.service-panel a { display: inline-flex; margin-top: 18px; color: var(--navy-950); font-weight: 950; }
.service-panel a::after { content: "→"; margin-left: 8px; color: var(--gold-500); }
.media-panel { overflow: hidden; padding: 0; }
.media-panel > img { width: 100%; height: 270px; object-fit: cover; transition: transform 500ms ease; }
.media-panel:hover > img { transform: scale(1.025); }
.media-panel.full-image-panel > img { height: 390px; object-fit: contain; background: #eaf1f6; }
.media-panel.full-image-panel:hover > img { transform: none; }
.panel-body { padding: 25px; }
.project-panel { display: flex; flex-direction: column; }
.project-panel .panel-body { flex: 1; display: flex; flex-direction: column; }
.project-panel .detail-link { margin-top: auto; padding-top: 18px; color: var(--navy-950); font-weight: 950; }
.project-panel .detail-link::after { content: " →"; color: var(--gold-500); }

.check-list { display: grid; gap: 14px; margin: 25px 0 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 11px; align-items: start; }
.check-list li::before { content: "✓"; display: grid; place-items: center; width: 23px; height: 23px; color: var(--navy-950); background: var(--gold-500); border-radius: 50%; font-size: .74rem; font-weight: 950; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 8px 14px; color: var(--navy-950); background: var(--paper); border: 1px solid #e9dbb0; border-radius: 999px; font-size: .85rem; font-weight: 850; }
.cycle { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 17px; margin-top: 30px; }
.cycle::before { content: ""; position: absolute; top: 29px; left: 8%; right: 8%; height: 4px; background: var(--gold-500); }
.cycle-step { position: relative; z-index: 1; text-align: center; }
.cycle-step span { display: grid; place-items: center; width: 61px; height: 61px; margin: 0 auto 14px; color: var(--navy-950); background: var(--paper); border: 5px solid var(--gold-500); border-radius: 50%; font-weight: 950; }
.cycle-step h3 { font-size: .96rem; }

.client-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.client-card { display: grid; place-items: center; min-height: 185px; padding: 22px; background: var(--paper); border: 1px solid #e8ddb9; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.client-card img { width: 100%; max-width: 245px; max-height: 122px; object-fit: contain; }
.portfolio-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px; }
.portfolio-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); text-align: center; }
.portfolio-card img { width: 100%; aspect-ratio: .72; object-fit: cover; object-position: top; }
.portfolio-card h3 { padding: 18px 10px 21px; font-size: 1rem; }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-items { display: grid; gap: 16px; margin-top: 28px; }
.contact-item { display: grid; grid-template-columns: 42px 1fr; gap: 15px; align-items: start; }
.contact-icon { display: grid; place-items: start; width: 38px; height: 38px; padding-top: 2px; color: var(--navy-950); background: transparent; font-weight: 950; }
.contact-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-item strong { display: block; color: var(--gold-500); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; }
.contact-item span, .contact-item a { display: block; margin-top: 4px; color: var(--ink); font-weight: 850; }
.form { display: grid; gap: 17px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field label { display: block; margin-bottom: 6px; color: var(--navy-950); font-size: .78rem; font-weight: 950; text-transform: uppercase; }
.field input, .field textarea { width: 100%; padding: 14px 15px; color: var(--ink); background: #f8fafc; border: 1px solid #cbd8e2; border-radius: 12px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(231,181,54,.17); }
.field textarea { min-height: 145px; resize: vertical; }
.form-note { margin: 0; color: var(--muted); font-size: .84rem; }

.cta { position: relative; overflow: hidden; padding: 52px; color: var(--paper); background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); border-radius: var(--radius-lg); }
.cta::after { content: ""; position: absolute; right: -75px; bottom: -105px; width: 300px; height: 300px; border: 38px solid rgba(231,181,54,.18); border-radius: 50%; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 900px; color: var(--paper); }
.cta p { max-width: 710px; color: #c8dae8; }

.footer { color: #c5d5e2; background: var(--navy-950); border-top: 6px solid var(--gold-500); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .8fr; gap: 48px; padding: 60px 0 38px; }
.footer .logo { color: var(--paper); margin-bottom: 18px; }
.footer h3 { margin-bottom: 16px; color: var(--paper); font-size: 1rem; letter-spacing: 0; }
.footer p { max-width: 470px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a:hover { color: var(--gold-500); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 19px 0 27px; border-top: 1px solid rgba(255,255,255,.12); font-size: .81rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 560ms ease, transform 560ms ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }

@media (max-width: 1110px) {
  .site-nav > a, .nav-more-btn { padding-inline: 7px; font-size: .79rem; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .utility-bar .wrap { justify-content: center; }
  .utility-bar a { display: none; }
  .masthead-row { min-height: 76px; }
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: 114px 16px auto; z-index: 110; display: none; max-height: calc(100vh - 132px); overflow: auto; margin: 0; padding: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav > a, .nav-more-btn { width: 100%; justify-content: flex-start; min-height: 47px; padding: 11px 13px; font-size: .96rem; }
  .site-nav > a.current::after, .nav-more.current .nav-more-btn::after { display: none; }
  .nav-more { width: 100%; }
  .nav-popover { position: static; display: grid; width: 100%; padding: 3px 0 3px 14px; visibility: visible; opacity: 1; transform: none; background: transparent; border: 0; box-shadow: none; }
  .nav-popover a { padding: 9px 13px; }
  .hero-layout { grid-template-columns: 1fr; }
  .visual-card { order: -1; min-height: 330px; }
  .visual-card img { min-height: 330px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .utility-bar { font-size: .62rem; letter-spacing: .055em; }
  .site-nav { inset: 111px 10px auto; }
  .section { padding: 62px 0; }
  .section.compact { padding: 46px 0; }
  .inner-hero { padding: 62px 0; }
  .home-visual img { max-height: none; }
  .section-title { display: block; margin-bottom: 29px; }
  .section-title .button { margin-top: 20px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric { min-height: 188px; padding: 19px 15px; }
  .metric img { width: 57px; height: 57px; }
  .metric-value { font-size: 1.42rem; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .service-panel { grid-template-columns: 1fr; min-height: auto; }
  .media-panel.full-image-panel > img { height: auto; }
  .cycle { grid-template-columns: 1fr 1fr; gap: 27px 15px; }
  .cycle::before { display: none; }
  .portfolio-grid, .client-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .client-card { min-height: 140px; padding: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .cta { padding: 34px 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 45px; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { display: grid; }
}

@media (max-width: 430px) {
  .logo span { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .metric { display: grid; grid-template-columns: 62px 1fr; column-gap: 13px; min-height: 0; }
  .metric img { grid-row: 1 / 3; margin: 0; }
  .metric-label { margin-top: 6px; }
  .portfolio-grid, .client-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
