*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:     #1a3060;
  --blue:     #2a5090;
  --mid:      #3a70c0;
  --sky:      #6898d8;
  --pale:     #d0ddf0;
  --lgray:    #e8e8e8;
  --mgray:    #707070; /* was #999 — too low contrast on white (WCAG AA fix) */
  --dgray:    #444;
  --offwhite: #f7f8fb;
  --white:    #ffffff;
  --black:    #0d1220;
  --font-head: Futura, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
html { scroll-padding-top: 74px; }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--offwhite);
  color: var(--black);
  font-size: 15px;
}

/* Skip link — hidden until keyboard-focused, then jumps above the nav. */
.skip-link {
  position: absolute; top: -48px; left: 8px; z-index: 1000;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 0 0 6px 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ── NAV ── */
nav {
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; height: 58px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo { display: flex; align-items: baseline; gap: 0; text-decoration: none; }
.nav-logo .word { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: 1px; }
.nav-logo .num  { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: #fff; position: relative; top: -8px; margin-left: 2px; }
.nav-logo .sub  { font-size: 8.5px; color: var(--pale); letter-spacing: 3.5px; font-weight: 400; margin-left: 10px; opacity: 0.75; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--pale); font-size: 12px; letter-spacing: 1.5px;
  padding: 7px 13px; border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  font-family: inherit; text-decoration: none;
}
.nav-links a:hover  { background: rgba(255,255,255,0.1); color: #fff; }
.nav-links a.active { background: rgba(255,255,255,0.14); color: #fff; }
.nav-toggle {
  display: none;
  background: none; border: none; color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  padding: 6px 4px;
}

@media (max-width: 720px) {
  nav { padding: 0 20px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 58px; left: 0; right: 0; z-index: 99;
    background: var(--navy);
    flex-direction: column; gap: 0;
    padding: 8px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-radius: 0; }

  footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 24px 20px;
  }
  .f-links { flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
}

/* ── PAGES ── */
.page { display: none; }
.page.active { display: flex; flex-direction: column; min-height: calc(100vh - 58px); }

/* ── HOME ── */
.home-top {
  background: var(--navy);
  display: flex; align-items: center; gap: 32px;
  padding: 0 36px;
  overflow: hidden;
  position: relative;
  height: 160px;
  flex-shrink: 0;
}
.home-top-text { position: relative; z-index: 2; flex-shrink: 0; }
.home-top-text h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 38px; color: #fff; letter-spacing: 1px; line-height: 1;
}
.home-top-text h1 sup { font-size: 26px; position: relative; top: -9px; margin-left: 2px; }
.home-top-text .numx  { font-size: 38px; color: #fff; position: relative; top: -10px; margin-left: 2px; }
.home-top-text p { font-size: 10px; color: var(--pale); letter-spacing: 5px; margin-top: 7px; opacity: 0.8; }
.home-top-divider { width: 1px; height: 70px; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.home-top-tag { font-size: 13px; color: var(--pale); opacity: 0.65; max-width: 280px; line-height: 1.6; position: relative; z-index: 2; }

/* Skyline fading in from right */
.home-skyline {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 55%; z-index: 1;
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}
.home-skyline svg { width: 100%; height: 100%; }

/* Cards */
.home-cards {
  flex: 1;
  padding: 28px 36px;
  display: flex; flex-direction: column;
}
.home-cards-label {
  font-size: 10px; letter-spacing: 4px; color: var(--mid);
  font-weight: 600; margin-bottom: 16px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  flex: 1;
}
.card {
  background: var(--white);
  border: 1.5px solid var(--lgray);
  border-radius: 8px; padding: 24px 26px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--sky); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s;
}
.card:hover { border-color: var(--pale); box-shadow: 0 4px 18px rgba(26,48,96,0.1); transform: translateY(-2px); }
.card:hover::before { transform: scaleX(1); }
.card-tag { font-size: 9.5px; letter-spacing: 3.5px; color: var(--sky); font-weight: 600; margin-bottom: 8px; }
.card h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy); margin-bottom: 7px; }
.card p  { font-size: 13px; color: var(--dgray); line-height: 1.6; flex: 1; }
.card-arrow { margin-top: 14px; color: var(--mid); font-size: 16px; }
.card.card-static { cursor: default; }
.card.card-static:hover { border-color: var(--lgray); box-shadow: none; transform: none; }
.card.card-static:hover::before { transform: scaleX(0); }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: var(--pale);
  padding: 20px 36px;
  display: flex; justify-content: center; align-items: center; /* was space-between — revert when logo/links return */
  flex-shrink: 0;
}
.f-logo { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: white; text-decoration: none; }
.f-logo-sub { font-family: inherit; font-size: 10px; font-weight: 400; letter-spacing: 3px; opacity: 0.55; margin-left: 8px; }
.f-links { display: flex; gap: 22px; }
.f-links a { font-size: 11px; letter-spacing: 1px; transition: color 0.15s; text-decoration: none; color: var(--pale); }
.f-links a:hover { color: #fff; }
.f-copy { font-size: 11px; opacity: 0.4; }

/* ── INNER PAGE SHELL ── */
.page-hero {
  background: var(--navy); padding: 40px 36px 34px;
  border-bottom: 3px solid var(--sky); flex-shrink: 0;
}
.page-hero .pg-label { font-size: 10px; letter-spacing: 4px; color: var(--sky); font-weight: 600; margin-bottom: 8px; }
.page-hero h1 { font-family: var(--font-head); font-weight: 700; font-size: 36px; color: white; }
.page-hero p  { color: var(--pale); margin-top: 10px; max-width: 560px; font-size: 14px; line-height: 1.7; opacity: 0.85; }

.page-body-full { flex: 1; padding: 40px 36px; background: var(--white); }

.section-label { font-size: 10px; letter-spacing: 4px; color: var(--mid); font-weight: 600; margin-bottom: 8px; }
h2.serif { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--navy); margin-bottom: 16px; scroll-margin-top: 74px; }
p.body { color: var(--dgray); font-size: 14px; line-height: 1.75; margin-bottom: 12px; }

/* About */
.about-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.stat-num { font-family: Georgia, serif; font-size: 42px; color: var(--sky); font-weight: 700; line-height: 1; }
.stat-lbl { font-size: 10px; letter-spacing: 3px; color: var(--mgray); margin: 4px 0 20px; }

/* Apps */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app-card { border: 1.5px solid var(--lgray); border-radius: 8px; overflow: hidden; display: block; text-decoration: none; color: inherit; }
.app-card-link { cursor: pointer; transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s; }
.app-card-link:hover { border-color: var(--pale); box-shadow: 0 4px 18px rgba(26,48,96,0.1); transform: translateY(-2px); }
.app-thumb { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.app-info { padding: 16px 18px; }
.app-tag  { font-size: 9px; letter-spacing: 3px; color: var(--sky); font-weight: 600; margin-bottom: 5px; }
.app-info h4 { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 5px; }
.app-info p  { font-size: 12px; color: var(--dgray); line-height: 1.5; }

/* Services */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc-item { padding: 22px 24px; border-left: 3px solid var(--sky); background: var(--offwhite); border-radius: 0 6px 6px 0; }
.svc-item h4 { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.svc-item p  { font-size: 13px; color: var(--dgray); line-height: 1.6; }

/* App User Guide */
.guide-block { margin-bottom: 36px; }
.guide-block h4 { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 14px; }
.guide-img-frame {
  border: 1.5px solid var(--lgray); border-radius: 10px;
  padding: 18px 20px; background: var(--offwhite);
  margin-bottom: 18px;
}
.guide-img-inner { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.guide-img { max-width: 100%; display: block; }
.guide-marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sky); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.guide-steps { list-style: none; }
.guide-steps li { display: flex; gap: 14px; margin-bottom: 14px; }
.guide-steps li:last-child { margin-bottom: 0; }
.guide-steps .num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sky); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.guide-steps .txt { font-size: 14px; color: var(--dgray); line-height: 1.6; padding-top: 2px; }
.guide-steps .txt strong { color: var(--navy); }

/* Contact */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 10px; letter-spacing: 2px; color: var(--navy); font-weight: 600; margin-bottom: 5px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--lgray); border-radius: 4px;
  font-family: inherit; font-size: 13px; color: var(--black);
  background: white; outline: none; transition: border-color 0.15s;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--sky); }
.form-field textarea { resize: vertical; min-height: 90px; }
.btn-primary {
  background: var(--mid); color: white; border: none; cursor: pointer;
  padding: 10px 24px; border-radius: 4px; font-size: 12px;
  letter-spacing: 1.5px; font-weight: 600; font-family: inherit;
  transition: background 0.15s;
}
.btn-primary:hover { background: #4a80d0; }
