:root {
  --navy: #0b1f33;
  --navy-2: #13304d;
  --amber: #f2a900;
  --amber-dark: #c98c00;
  --paper: #f5f3ee;
  --white: #ffffff;
  --ink: #1b2430;
  --muted: #5b6673;
  --line: #dcd8cf;
  --radius: 6px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1rem; text-wrap: pretty; }

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--amber); color: var(--navy); padding: .5rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .95rem;
  color: var(--amber-dark);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .08em;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .45rem 1rem; font-size: .95rem; }
.btn-accent { background: var(--amber); color: var(--navy); }
.btn-accent:hover { background: #ffbb1f; }
.btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: var(--navy); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--white); }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--amber); color: var(--navy);
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; border-radius: var(--radius);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; }
.brand-text small { font-size: .72rem; opacity: .8; letter-spacing: .06em; text-transform: uppercase; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  color: var(--white); text-decoration: none; font-weight: 500; font-size: .95rem;
  position: relative; padding: .25rem 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--amber); transition: width .25s;
}
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { width: 100%; }
.site-nav a.active { color: var(--amber); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle .bar { width: 26px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--navy); padding: 1.5rem 1.25rem 2rem;
    transform: translateY(-120%); transition: transform .35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .site-header { background: var(--navy); }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); padding-top: calc(var(--header-h) + 3rem); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: slowZoom 18s ease-out forwards; }
@keyframes slowZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,51,.55) 0%, rgba(11,31,51,.75) 55%, rgba(11,31,51,.97) 100%); }
.hero-content { position: relative; max-width: 900px; margin-left: max(1.25rem, (100% - 1200px) / 2); margin-bottom: 3rem; }
.hero .eyebrow { color: var(--amber); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 680px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.stats {
  position: relative; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.2);
}
.stat { padding: 1.5rem 1rem 0 0; display: flex; flex-direction: column-reverse; }
.stat dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.stat dd { margin: 0; font-family: var(--font-head); font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; color: var(--amber); line-height: 1; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .eyebrow { color: var(--amber); }
.section-dark p { color: rgba(255,255,255,.82); }
.section-muted { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.section-dark .section-head p { color: rgba(255,255,255,.75); }
.sub-title { margin-top: 2rem; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.badge-card {
  position: absolute; right: -1rem; bottom: 2rem;
  background: var(--amber); color: var(--navy); padding: 1.25rem 1.5rem; border-radius: var(--radius);
  display: flex; flex-direction: column; box-shadow: 0 15px 40px rgba(0,0,0,.2);
}
.badge-num { font-family: var(--font-head); font-size: 2.25rem; font-weight: 700; line-height: 1; }
.badge-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 16/10; }
  .badge-card { right: 1rem; }
}

.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-list li {
  border: 1px solid var(--line); background: var(--paper); padding: .45rem .9rem;
  border-radius: 999px; font-size: .9rem; font-weight: 500;
}

/* Strengths */
.strengths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); counter-reset: s; border: 1px solid rgba(255,255,255,.12); }
.strength { background: var(--navy); padding: 2rem 1.5rem; counter-increment: s; transition: background .25s; }
.strength:hover { background: var(--navy-2); }
.strength::before { content: counter(s, decimal-leading-zero); font-family: var(--font-head); color: var(--amber); font-size: 1.1rem; font-weight: 600; display: block; margin-bottom: 1rem; }
.strength h3 { font-size: 1.35rem; color: var(--white); }
.strength p { font-size: .925rem; margin: 0; }
@media (max-width: 1000px) { .strengths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .strengths { grid-template-columns: 1fr; } }

/* Tabs */
.tab-list { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 2px solid var(--line); margin-bottom: 2rem; }
.tab {
  background: none; border: 0; cursor: pointer; padding: .9rem 1.25rem; margin-bottom: -2px;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--amber); }
.tab .count { font-family: var(--font-body); font-size: .75rem; background: var(--line); color: var(--ink); border-radius: 999px; padding: .1rem .5rem; margin-left: .4rem; vertical-align: middle; }
.tab[aria-selected="true"] .count { background: var(--amber); }
.tab-panel { animation: fadeUp .4s ease; }
.tab-panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.value-panel { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.value-panel .value-intro h3 { font-size: clamp(2.5rem, 5vw, 4rem); text-transform: uppercase; color: var(--navy); }
.value-panel .value-intro p { font-size: 1.15rem; color: var(--muted); }
.value-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.value-points li { background: var(--paper); border-left: 4px solid var(--amber); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }
.value-points strong { display: block; font-family: var(--font-head); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 800px) { .value-panel { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Mission/Vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; }
.mv-card { background: var(--white); padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius); border: 1px solid var(--line); }
.mv-vision { background: var(--navy); color: var(--white); border: 0; }
.mv-vision h3 { color: var(--amber); }
.mv-vision p { font-size: 1.15rem; line-height: 1.7; color: rgba(255,255,255,.9); }
.mv-card h3 { font-size: 2rem; text-transform: uppercase; }
@media (max-width: 860px) { .mv-grid { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f33' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* QHSE */
.iso-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.iso { border: 2px solid var(--navy); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; }
.iso span { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; color: var(--navy); }
.iso small { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 700px) { .iso-row { grid-template-columns: 1fr; } }

.qhse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.qhse-card {
  background: var(--paper); padding: 1.75rem 1.5rem; border-radius: var(--radius);
  border-top: 4px solid var(--amber); transition: transform .25s, box-shadow .25s;
}
.qhse-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(11,31,51,.12); }
.qhse-card h3 { font-size: 1.35rem; text-transform: uppercase; }
.qhse-card p { font-size: .925rem; color: var(--muted); margin: 0; }

.pull-quote {
  margin: 3rem 0 0; padding: 2rem 0 0; border-top: 1px solid var(--line);
  font-family: var(--font-head); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 500; line-height: 1.3;
  color: var(--navy); max-width: 900px;
}

/* Divisions */
.division-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.division { border: 1px solid rgba(255,255,255,.15); padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius); transition: border-color .25s; }
.division:hover { border-color: var(--amber); }
.division-num { font-family: var(--font-head); font-size: 4rem; font-weight: 700; color: var(--amber); line-height: 1; display: block; margin-bottom: 1rem; }
.division h3 { font-size: 1.85rem; text-transform: uppercase; }
@media (max-width: 800px) { .division-grid { grid-template-columns: 1fr; } }

/* Services */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  padding: .55rem 1.1rem; border-radius: 999px; font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item[hidden] { display: none; }
.acc-trigger {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 1.25rem; padding: 1.4rem .25rem;
  color: var(--ink);
}
.acc-num { font-family: var(--font-head); font-weight: 600; color: var(--amber-dark); font-size: 1rem; min-width: 2rem; }
.acc-title { flex: 1; font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.acc-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: none; }
@media (min-width: 700px) { .acc-tag { display: inline; } }
.acc-icon { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex-shrink: 0; transition: background .25s, border-color .25s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy); transform: translate(-50%, -50%); transition: transform .25s; }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--amber); border-color: var(--amber); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc-trigger:hover .acc-title { color: var(--navy-2); }

.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-panel.open { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-body { padding: 0 .25rem 1.75rem 3.25rem; }
.acc-body > p { color: var(--muted); max-width: 800px; }
.acc-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem 2rem; margin-top: 1rem; }
.acc-group h4 { font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; color: var(--navy); }
.acc-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.acc-group li { position: relative; padding-left: 1rem; font-size: .925rem; }
.acc-group li::before { content: ""; position: absolute; left: 0; top: .6rem; width: 6px; height: 6px; background: var(--amber); }
@media (max-width: 600px) { .acc-body { padding-left: .25rem; } }

/* Banner */
.banner { position: relative; padding: clamp(5rem, 12vw, 9rem) 0; color: var(--white); overflow: hidden; }
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,51,.95) 0%, rgba(11,31,51,.6) 100%); }
.banner-content { position: relative; }
.banner-content p { font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.75rem); font-weight: 500; line-height: 1.2; max-width: 900px; margin: 0; }

/* Workforce */
.workforce-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
#role-search {
  flex: 1; min-width: 240px; padding: .9rem 1.1rem .9rem 2.75rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6673' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 1rem center/18px no-repeat;
}
#role-search:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242,169,0,.35); }
.result-count { margin: 0; color: var(--muted); font-size: .9rem; }

.workforce-panel > p { color: var(--muted); max-width: 760px; }
.role-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.role-grid li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; font-weight: 500; font-size: .95rem; display: flex; align-items: center; gap: .65rem;
  transition: border-color .2s, transform .2s;
}
.role-grid li::before { content: ""; width: 8px; height: 8px; background: var(--amber); flex-shrink: 0; }
.role-grid li:hover { border-color: var(--navy); transform: translateY(-2px); }
.role-grid li[hidden] { display: none; }
.role-group-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; margin: 1.75rem 0 .75rem; color: var(--navy); }
.role-group-title:first-of-type { margin-top: 0; }
.role-group[hidden] { display: none; }
.empty-state { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
mark { background: rgba(242,169,0,.35); color: inherit; padding: 0 .1em; border-radius: 2px; }

/* Equipment */
.equipment-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.5rem; }
.equipment-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .75rem; font-weight: 500; }
.equipment-list li span { font-family: var(--font-head); color: var(--amber-dark); font-weight: 600; min-width: 1.75rem; }
@media (max-width: 480px) { .equipment-list { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact-info li { display: flex; flex-direction: column; font-size: 1.1rem; }
.contact-info span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--amber); margin-bottom: .2rem; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--amber); }

.contact-form { background: var(--navy-2); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.85); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .8rem .9rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--white);
}
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: rgba(255,255,255,.1); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff7a6b; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-status.error { color: #ffb4aa; }
.form-status.success { color: var(--amber); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #071523; color: rgba(255,255,255,.65); padding: 2rem 0; font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.footer-inner p { margin: 0; }

/* Back to top */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--amber); color: var(--navy); font-size: 1.25rem; font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Brand logo ---------- */
.brand-logo { width: 48px; height: 48px; border-radius: 50%; background: var(--white); flex-shrink: 0; }

/* ---------- Shared figure / triggers ---------- */
.wide-figure { margin: 0 0 3rem; }
.wide-figure img { width: 100%; border-radius: var(--radius); }
.split-media-natural img { aspect-ratio: auto; object-fit: contain; }
.plain-trigger, .clients-figure, .org-figure, .gallery-item button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit;
}

/* ---------- Experience ---------- */
.exp-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 2rem; }
.exp-stats div { flex: 1 1 180px; background: var(--navy); color: var(--white); padding: 1.25rem 1.5rem; border-radius: var(--radius); border-left: 4px solid var(--amber); }
.exp-stats dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.exp-stats dd { margin: 0; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; }
.exp-tools { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.exp-tools input, .exp-tools select {
  font: inherit; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.exp-tools input { flex: 1 1 280px; }
.exp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.exp-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 900px; }
.exp-table th, .exp-table td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.exp-table thead th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; }
.exp-table tbody tr:nth-child(even) { background: var(--paper); }
.exp-table tbody tr:hover { background: #fdf3d6; }
.exp-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.exp-table .num-col { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.exp-table .company { font-weight: 600; min-width: 220px; }
.exp-table .scope { color: var(--muted); min-width: 260px; }
.exp-table td:nth-child(3), .exp-table td:nth-child(4) { white-space: nowrap; }
.exp-table tfoot th, .exp-table tfoot td { background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: 1.2rem; text-transform: uppercase; border: 0; }
.exp-table tfoot td.num { background: var(--amber); color: var(--navy); font-weight: 700; }
.exp-empty { text-align: center !important; color: var(--muted); padding: 2rem !important; }
.pill { display: inline-block; background: #e3f4e6; color: #1d6b2c; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; }

@media (max-width: 760px) {
  .exp-table { min-width: 0; }
  .exp-table thead { display: none; }
  .exp-table, .exp-table tbody, .exp-table tr, .exp-table td { display: block; width: 100%; }
  .exp-table tbody tr { padding: 1rem; border-bottom: 1px solid var(--line); }
  .exp-table td { border: 0; padding: .2rem 0; text-align: left !important; display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; white-space: normal !important; }
  .exp-table td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: .15rem; }
  .exp-table .exp-empty { display: block; }
  .exp-table .exp-empty::before { content: none; }
  .exp-table tfoot tr { display: flex; justify-content: space-between; }
  .exp-table tfoot th, .exp-table tfoot td { display: block; width: auto; }
  .exp-table tfoot td:last-child { display: none; }
}

/* ---------- Gallery ---------- */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.gallery-item button { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.gallery-item button:hover img, .gallery-item button:focus-visible img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; color: var(--white);
  background: linear-gradient(transparent, rgba(11,31,51,.92)); display: flex; flex-direction: column;
}
.gallery-cap strong { font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; }
.gallery-cap small { font-size: .82rem; opacity: .85; }

/* ---------- Clients ---------- */
.clients-layout { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: flex-start; }
.clients-figure { flex: 1 1 340px; max-width: 520px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.client-list { flex: 1 1 360px; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.client-list li {
  padding: .8rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--radius);
  font-weight: 600; font-size: .92rem; background: var(--white); transition: background .2s, transform .2s;
}
.client-list li:hover { background: var(--paper); transform: translateY(-2px); }

/* ---------- Organization ---------- */
.org-grid { display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-start; }
.org-grid > * { flex: 1 1 340px; }
.org-figure { max-width: 460px; border-radius: var(--radius); overflow: hidden; background: var(--white); position: relative; }
.org-label { position: absolute; left: 0; bottom: 0; background: var(--amber); color: var(--navy); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; padding: .35rem .8rem; font-size: .9rem; }
.achv-title { color: var(--amber); text-transform: uppercase; }
.achv-list { list-style: none; counter-reset: a; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.achv-list li { counter-increment: a; display: flex; gap: 1rem; padding: .9rem 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); }
.achv-list li::before { content: counter(a, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--amber); line-height: 1.2; }

/* ---------- Contact people ---------- */
.people { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .75rem; }
.people li { display: flex; flex-direction: column; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); }
.people strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--amber); }
.people a { text-decoration: none; opacity: .9; font-size: .92rem; overflow-wrap: anywhere; }
.people a:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(5,14,24,.92); }
.lightbox figure { margin: 0; max-width: min(1200px, 88vw); display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--white); font-family: var(--font-head); font-size: 1.2rem; text-align: center; }
.lb-close, .lb-nav { position: fixed; background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.25); cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lb-close:hover, .lb-nav:hover { background: var(--amber); color: var(--navy); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
