:root {
  --ink: #152622;
  --muted: #5e6f6a;
  --line: #d7dfdb;
  --paper: #f4f6f2;
  --white: #ffffff;
  --deep: #0b2823;
  --deep-soft: #123b34;
  --planning: #36a5d5;
  --construction: #f4b233;
  --employees: #ed686b;
  --green: #67aa79;
  --focus: #f2df3e;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 9% 74%, rgba(54, 165, 213, 0.08), transparent 24rem),
    radial-gradient(circle at 91% 78%, rgba(237, 104, 107, 0.07), transparent 24rem),
    var(--paper);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--deep);
  background: var(--focus);
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 355px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(18, 59, 52, 0.42), transparent 58%),
    var(--deep);
}

.hero::after {
  position: absolute;
  right: -12%;
  bottom: -205px;
  width: 680px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.network-lines {
  position: absolute;
  inset: 0;
  opacity: 0.33;
  background-image:
    linear-gradient(28deg, transparent 0 53%, rgba(54, 165, 213, 0.32) 53.15% 53.35%, transparent 53.5%),
    linear-gradient(151deg, transparent 0 73%, rgba(242, 223, 62, 0.22) 73.1% 73.3%, transparent 73.5%),
    radial-gradient(circle at 72% 32%, #f2df3e 0 3px, transparent 4px),
    radial-gradient(circle at 83% 64%, #ed686b 0 3px, transparent 4px),
    radial-gradient(circle at 61% 75%, #36a5d5 0 3px, transparent 4px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 22px 112px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.biap-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.06rem;
  font-weight: 760;
  letter-spacing: 0.045em;
}

.brand-link,
.fttp-brand-link {
  border-radius: 12px;
  text-decoration: none;
}

.brand-link:focus-visible,
.fttp-brand-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.biap-brand img,
.fttp-logo {
  transition: filter 160ms ease, transform 160ms ease;
}

.brand-link:hover img,
.fttp-brand-link:hover .fttp-logo {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.fttp-brand-link {
  display: block;
}

.biap-brand img {
  width: 126px;
  height: 53px;
  padding: 7px 8px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--white);
}

.biap-brand span {
  padding-left: 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
}

.fttp-logo {
  width: min(210px, 31vw);
  height: 68px;
  object-fit: contain;
  object-position: right center;
}

.hero-copy {
  max-width: 760px;
  margin-top: 62px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #bcd5ce;
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 660px;
  margin-bottom: 0;
  color: #d5e2de;
  font-size: 1.06rem;
  line-height: 1.65;
}

.portal-section {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  padding-bottom: 62px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  --card-accent: var(--planning);
  position: relative;
  display: flex;
  min-height: 346px;
  padding: 26px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(21, 38, 34, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(15, 42, 36, 0.09);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.portal-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--card-accent);
  content: "";
}

.portal-card::after {
  position: absolute;
  right: -52px;
  bottom: -62px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 9%, transparent);
  content: "";
  pointer-events: none;
}

.portal-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 60%, var(--line));
  box-shadow: 0 24px 66px rgba(15, 42, 36, 0.15);
  transform: translateY(-5px);
}

.portal-card:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--focus) 70%, white);
  outline-offset: 4px;
}

.portal-card.construction {
  --card-accent: var(--construction);
}

.portal-card.employees {
  --card-accent: var(--employees);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.number {
  color: color-mix(in srgb, var(--card-accent) 80%, var(--ink));
}

.category {
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent) 14%, white);
}

.portal-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin-block: 24px 20px;
  place-items: center;
  border-radius: 20px;
  color: var(--ink);
  background: color-mix(in srgb, var(--card-accent) 14%, white);
}

.portal-icon svg {
  width: 46px;
  height: 46px;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-icon .accent-line,
.portal-icon .check {
  stroke: color-mix(in srgb, var(--card-accent) 82%, var(--ink));
  stroke-width: 3.2;
}

.card-copy {
  position: relative;
  z-index: 1;
}

.card-copy h2 {
  margin-bottom: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.card-copy p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.open-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  font-size: 0.94rem;
  font-weight: 760;
}

.open-label span {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  transition: background 180ms ease, transform 180ms ease;
}

.portal-card:hover .open-label span {
  background: color-mix(in srgb, var(--card-accent) 78%, var(--ink));
  transform: translate(2px, -2px);
}

.access-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

.footer-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.84rem;
}

.footer-inner span:first-child {
  color: var(--ink);
  font-weight: 750;
}

@media (max-width: 900px) {
  .hero {
    min-height: 316px;
  }

  .hero-inner {
    padding-bottom: 96px;
  }

  .hero-copy {
    margin-top: 42px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 238px;
  }

  .portal-icon {
    width: 62px;
    height: 62px;
    margin-block: 18px 16px;
    border-radius: 17px;
  }

  .portal-icon svg {
    width: 39px;
    height: 39px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 282px;
  }

  .hero-inner {
    padding-block: 14px 82px;
  }

  .brand-bar {
    gap: 14px;
  }

  .biap-brand {
    gap: 8px;
    font-size: 0.85rem;
  }

  .biap-brand img {
    width: 96px;
    height: 43px;
    padding: 6px;
  }

  .biap-brand span {
    padding-left: 8px;
  }

  .fttp-logo {
    width: 112px;
    height: 44px;
  }

  .hero-copy {
    margin-top: 34px;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 0.7rem;
  }

  h1 {
    margin-bottom: 10px;
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .intro {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .portal-section {
    margin-top: -52px;
    padding-bottom: 36px;
  }

  .portal-grid {
    gap: 12px;
  }

  .portal-card {
    min-height: 204px;
    padding: 20px;
    border-radius: 18px;
  }

  .portal-icon {
    width: 52px;
    height: 52px;
    margin-block: 13px 12px;
    border-radius: 14px;
  }

  .portal-icon svg {
    width: 33px;
    height: 33px;
  }

  .card-copy h2 {
    margin-bottom: 7px;
    font-size: 1.42rem;
  }

  .card-copy p {
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .open-label {
    font-size: 0.88rem;
  }

  .open-label span {
    width: 30px;
    height: 30px;
  }

  .access-note {
    margin-top: 16px;
    font-size: 0.82rem;
  }

  .footer-inner {
    min-height: 64px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .portal-card,
  .portal-icon,
  .open-label span {
    border: 1px solid CanvasText;
  }
}
