:root {
  color: #172a3a;
  background: #f5f7f9;
  font: 100%/1.6 "Segoe UI", system-ui, sans-serif;
  --navy: #0c2031;
  --ink: #172a3a;
  --muted: #506170;
  --line: #d8e0e7;
  --gold: #f3d69d;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid #ba7631; outline-offset: 5px; }
.layout { width: min(calc(100% - 3rem), 75rem); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 2;
  top: 0.8rem;
  left: 1rem;
  transform: translateY(-200%);
  padding: 0.7rem 1rem;
  color: var(--navy);
  background: white;
  border-radius: 0.25rem;
}
.skip:focus { transform: none; }

.site-header {
  color: white;
  background: var(--navy);
  border-bottom: 1px solid #c3d5e329;
}
.header-inner {
  min-height: 4.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid #bc9a5c;
  border-radius: 0.35rem;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.brand-company {
  margin-top: 0.2rem;
  display: block;
  color: #cbd5dd;
  font-size: 0.8rem;
  font-weight: 500;
}
.header-inner nav { display: flex; gap: clamp(0.85rem, 4vw, 2.65rem); }
.header-inner nav a, .company-link {
  padding-block: 0.55rem;
  color: #e5ebf0;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.company-link { justify-self: end; }
.header-inner a:hover, footer a:hover { text-decoration: underline; text-underline-offset: 0.28em; }

.hero {
  min-height: clamp(24rem, 41vw, 37rem);
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, #0c2031 0%, #0c2031f0 21%, #0c20318c 50%, #0c203100 75%),
    url('./images/l-hazard-global.webp') center 48% / cover no-repeat,
    var(--navy);
}
.hero-content { padding-block: clamp(3.75rem, 7vw, 7rem); }
.eyebrow {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 12ch;
  margin: 0.6rem 0 1.4rem;
  font: 400 clamp(3.35rem, 7.25vw, 6.75rem)/0.98 Georgia, serif;
  letter-spacing: -0.055em;
}
.hero p:not(.eyebrow) {
  max-width: 35ch;
  margin-bottom: 1.75rem;
  color: #e0e8ef;
  font-size: clamp(1.06rem, 2vw, 1.23rem);
}
.button {
  display: inline-flex;
  justify-content: center;
  padding: 0.66rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}
.button-primary { color: #292017; background: var(--gold); }
.button-primary:hover { background: #ffe7b7; }

.catalogue { padding-block: clamp(2.9rem, 6vw, 5.5rem); }
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.35rem;
  margin-bottom: 1.65rem;
}
.section-intro h2, .company h2 {
  font: 400 clamp(2.45rem, 4vw, 3.8rem)/1 Georgia, serif;
  letter-spacing: -0.055em;
}
.section-intro p { margin-top: 0.55rem; color: var(--muted); }
.search-wrap { min-width: min(100%, 18rem); }
.search-wrap label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.search-wrap input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #9eafbd;
  border-radius: 0.35rem;
  color: var(--ink);
  background: white;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 0 1.35rem;
  border-bottom: 1px solid var(--line);
}
.filter {
  min-height: 2.75rem;
  padding: 0.48rem 0.86rem;
  border: 1px solid #a6b5c2;
  border-radius: 0.35rem;
  color: var(--navy);
  background: white;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}
.filter:hover { border-color: #263e54; }
.filter[aria-pressed="true"] { color: white; background: var(--navy); border-color: var(--navy); }
.results { margin-top: 0.75rem; color: var(--muted); font-size: 0.9rem; }
.results:empty { display: none; }
.empty { padding: 2rem 0 1rem; }

.platform-group { margin-top: 2.75rem; }
.platform-group h3 {
  margin-bottom: 0.85rem;
  padding-left: 0.7rem;
  border-left: 3px solid #bc9050;
  font-size: clamp(1.25rem, 2.3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.card {
  min-height: 11.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: white;
}
.card:focus-within, .card:hover { border-color: #a38b64; }
.card h4 { margin: 0.53rem 0 0.28rem; font-size: 1.1rem; line-height: 1.4; letter-spacing: -0.025em; }
.card p { margin-bottom: 0.65rem; color: var(--muted); }
.card a {
  overflow-wrap: anywhere;
  margin-top: auto;
  color: #244a6a;
  font-size: 0.9rem;
  font-weight: 650;
  text-underline-offset: 0.2em;
}
.card a:hover { color: #744616; }
.status {
  padding: 0.13rem 0.45rem;
  border-radius: 0.23rem;
  color: #564019;
  background: #f7efd9;
  font-size: 0.82rem;
  font-weight: 700;
}
.status[data-status="public-site"] { color: #1f4b3b; background: #e1efe8; }
.status[data-status="sandbox"] { color: #294264; background: #e4edf7; }
.status[data-status="in-preparation"], .status[data-status="link-unavailable"] { color: #4a5663; background: #eef1f4; }

.company { background: var(--navy); color: white; }
.company-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2rem;
  padding-block: clamp(2.75rem, 5vw, 4.75rem);
}
.company h2 { margin-top: 0.5rem; }
.company-inner > div:last-child { max-width: 37rem; }
.company-inner p:not(.eyebrow) { color: #dbe5ed; }
.company-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-top: 1.15rem; }
.button-light { color: var(--navy); background: white; }
.button-light:hover { background: #e8edf2; }
.button-outline { color: white; border-color: #a1aeb9; }
.button-outline:hover { background: #ffffff14; }

footer { color: #dce5ed; background: #081824; border-top: 1px solid #c3d5e329; }
.footer-inner {
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  padding-block: 1rem;
  font-size: 0.875rem;
}

@media (max-width: 55rem) {
  .hero { background-position: center, 62% center, center; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  .layout { width: calc(100% - 2rem); }
  .header-inner { min-height: 4rem; grid-template-columns: minmax(0, 1fr) auto; gap: 0.45rem; }
  .company-link { display: none; }
  .hero {
    background-image: linear-gradient(90deg, #0c2031 0%, #0c2031e8 48%, #0c20316e 100%), url('./images/l-hazard-global.webp');
    background-position: center, 64% center;
  }
  .hero h1 { max-width: none; }
  .hero .eyebrow { max-width: 22ch; }
  .section-intro { align-items: stretch; flex-direction: column; }
  .card-grid, .company-inner { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .company-inner { align-items: start; gap: 1.15rem; }
}
