/* BluNET brand system, taken from the group's own logos:
   navy #111E3E ("Blu"), blue #0E76BD (every logo), charcoal #484B4C (Elevated, OneMINED),
   B-mark gradient indigo #253990 -> cyan #25AAE2. Type pairs a bold word with a light blue word
   (Blu|NET, NE|MINED) in a geometric sans; corners stay square like the marks.
   Layout: full-bleed bands on a 76rem column; navy hero, light #F5F5F5 logo banner, content bands. */
:root {
  --navy: #111E3E;
  --navy-deep: #0B1530;
  --blue: #0E76BD;
  --blue-bright: #3C9EE0;
  --indigo: #253990;
  --cyan: #25AAE2;
  --charcoal: #484B4C;

  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --fg: #111E3E;
  --muted: #5E6163;
  --line: #E3E4E6;
  --panel: #F5F5F5;
  --accent: #0E76BD;

  --on-navy: #FFFFFF;
  --navy-muted: #A9B3C7;
  --navy-line: rgba(255, 255, 255, 0.12);

  --font: "Montserrat", "Gotham", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.375rem, 2.2vw, 1.75rem);
  --step-3: clamp(1.875rem, 3.8vw, 2.875rem);
  --step-4: clamp(2.5rem, 6.2vw, 5rem);

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 3px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1530; --bg-alt: #0F1B3A; --fg: #F2F4F8; --muted: #A9B3C7; --line: #1F2C4E;
    --panel: #F5F5F5; --accent: #3C9EE0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1530; --bg-alt: #0F1B3A; --fg: #F2F4F8; --muted: #A9B3C7; --line: #1F2C4E;
  --panel: #F5F5F5; --accent: #3C9EE0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--step-0)/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem 1rem; z-index: 20; }

/* Wide-tracked caps, like CONNECTIONS / PERFORMANCE under the Elevated mark */
.label {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: 0.24em; color: var(--accent);
}
.label::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.role { font-size: 0.6875rem; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }

/* Header, with the B-mark gradient as a hairline */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--navy); color: var(--on-navy);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--blue) 50%, var(--cyan)); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 4.75rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 2.75rem; width: auto; display: block; }
.wordmark { font-weight: 700; font-size: 1.5rem; }
.wordmark b { font-weight: 300; color: var(--blue-bright); }
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--navy-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; }
.site-nav a:hover { color: var(--on-navy); }
.site-nav a.nav-cta { color: var(--on-navy); background: var(--blue); padding: 0.75rem 1.25rem; border-radius: var(--radius); }
.site-nav a.nav-cta:hover { background: var(--blue-bright); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none;
  padding: 1.05rem 1.75rem; border-radius: var(--radius);
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em;
  background: var(--blue); color: #FFFFFF; border: 1px solid var(--blue);
}
.btn:hover { background: var(--blue-bright); border-color: var(--blue-bright); }
.btn .arr { transition: transform 0.2s; letter-spacing: 0; }
.btn:hover .arr { transform: translateX(3px); }

/* Hero: navy with the B-mark's indigo/cyan light and a faint wireframe grid */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(56rem 30rem at 92% 0%, rgba(37, 170, 226, 0.22), transparent 62%),
    radial-gradient(50rem 30rem at 0% 120%, rgba(37, 57, 144, 0.55), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 78% 35%, #000 5%, transparent 65%);
  mask-image: radial-gradient(ellipse at 78% 35%, #000 5%, transparent 65%);
}
.hero-inner { padding-block: clamp(4.5rem, 12vw, 9rem) clamp(4rem, 9vw, 7rem); }
.hero .label { color: var(--cyan); }
.hero h1 { font-size: var(--step-4); max-width: 15ch; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; font-weight: 300; color: var(--blue-bright); }
.hero .lede { margin-top: 1.75rem; max-width: 36rem; color: var(--navy-muted); font-size: clamp(1rem, 1.5vw, 1.1875rem); line-height: 1.7; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2.75rem; }

/* Hero photo (images/<id>.jpg): sits behind a navy wash so text and logos stay readable */
.hero.has-photo::before {
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(17, 30, 62, 0.92) 38%, rgba(17, 30, 62, 0.55) 75%, rgba(17, 30, 62, 0.35) 100%),
    linear-gradient(0deg, var(--navy) 0%, transparent 45%),
    var(--photo) center / cover no-repeat;
}
.hero.has-photo::after { display: none; }
@media (max-width: 46rem) {
  .hero.has-photo::before { background: linear-gradient(rgba(17, 30, 62, 0.8), var(--navy)), var(--photo) center / cover no-repeat; }
}

/* Logo banner: fixed light grey in both themes, original artwork */
.strip { background: #F5F5F5; border-bottom: 1px solid #E6E6E6; padding-block: clamp(1.75rem, 4vw, 2.5rem); }
.strip ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem clamp(3rem, 9vw, 7rem); }
.strip li, .strip a { min-width: 0; }
.strip a { display: flex; align-items: center; justify-content: center; height: 5rem; max-width: 16rem; transition: opacity 0.2s, transform 0.2s; }
.strip a:hover { opacity: 0.8; transform: translateY(-2px); }
.strip .logo-img { max-height: 3rem; }
.strip .round .logo-img { max-height: 5rem; }

/* Sections */
.band { padding-block: clamp(4rem, 9vw, 7rem); }
.band.alt { background: var(--bg-alt); }
.band-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); max-width: 46rem; }
.band-head h2 { font-size: var(--step-3); }
.intro { margin-top: 1.5rem; }
.statement { font-size: var(--step-2); font-weight: 500; line-height: 1.4; text-wrap: pretty; }
.prose { display: grid; gap: 1.25rem; color: var(--muted); max-width: 62ch; }

/* Company tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.tile {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(17, 30, 62, 0.45); }
.tile-main { display: flex; flex-direction: column; text-decoration: none; flex: 1; }
.tile-logo { background: var(--panel); display: grid; place-items: center; aspect-ratio: 16 / 10; max-width: 100%; padding: clamp(1.5rem, 4vw, 2.5rem); border-bottom: 2px solid var(--accent); }
.tile-body { padding: 1.5rem; display: grid; gap: 0.5rem; }
.tile-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tile h3 { font-size: 1.25rem; }
.tile .go { color: var(--muted); transition: transform 0.2s, color 0.2s; }
.tile-main:hover .go { transform: translateX(4px); color: var(--accent); }
.tile p { color: var(--muted); font-size: 0.9375rem; }
.subs { display: grid; gap: 0.5rem; padding: 0 1.5rem 1.5rem; }
.sub { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.sub:hover { border-color: var(--accent); color: var(--accent); }

/* Logo images: never cropped, always scaled down to fit their box */
.logo-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.tile-logo .logo-img { max-height: 8rem; }
.tile-logo .wide { max-width: min(100%, 17rem); }
.for-dark { display: none !important; }
.monogram { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: var(--radius); background: var(--blue); color: #FFFFFF; font-weight: 700; font-size: 1.5rem; }

/* Company page */
.co-hero .hero-inner { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.625rem; font-size: 0.6875rem; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.2em; color: var(--navy-muted); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-navy); }
.crumbs [aria-current] { color: var(--cyan); }
.co-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.co-head h1 { font-size: clamp(2.25rem, 5.5vw, 4.25rem); letter-spacing: -0.025em; }
.pill { display: inline-flex; align-items: center; gap: 0.75rem; margin-top: 1.75rem; font-size: 0.875rem; color: var(--navy-muted); }
.pill a { color: var(--on-navy); text-decoration: none; font-weight: 600; }
.pill a:hover { color: var(--cyan); }
.pill i { width: 0.5rem; height: 0.5rem; background: var(--cyan); transform: rotate(45deg); }
.co-logo { display: grid; place-items: center; min-height: clamp(10rem, 24vw, 16rem); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--navy-line); border-top: 2px solid var(--blue); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.co-logo .logo-img { max-height: 12rem; }
.co-logo .wide { max-width: min(100%, 26rem); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.details { margin: 0; display: grid; border-top: 2px solid var(--fg); }
.details div { display: flex; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 1.125rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.details dt { color: var(--muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; align-self: center; }
.details dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.details a { text-decoration: none; }
.details a:hover { color: var(--accent); }
.services { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.services li { padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9375rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--navy-muted); padding-block: clamp(3rem, 7vw, 4.5rem) 2rem; font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.foot-grid .brand { color: var(--on-navy); margin-bottom: 1rem; }
.foot-grid h4 { margin: 0 0 1.25rem; font-size: 0.6875rem; font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: 0.24em; color: var(--cyan); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.foot-grid a { text-decoration: none; overflow-wrap: anywhere; }
.foot-grid li { min-width: 0; }
.foot-grid a:hover { color: var(--on-navy); }
.legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--navy-line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8125rem; }

/* Responsive */
@media (max-width: 60rem) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-head, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 46rem) {
  .tiles, .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.16s; } .rise.d3 { animation-delay: 0.24s; } .rise.d4 { animation-delay: 0.32s; }
  @keyframes rise { from { transform: translateY(14px); opacity: 0.001; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .tile .go, .btn .arr, .strip a { transition: none; }
}
