:root {
  color-scheme: light;
  --ink: #13202f;
  --muted: #526173;
  --line: #dce4ee;
  --paper: #f6f8fb;
  --white: #ffffff;
  --navy: #0b1625;
  --navy-2: #102238;
  --red: #d91f2a;
  --red-dark: #a9151e;
  --cyan: #06a3b7;
  --green: #45b36b;
  --shadow: 0 24px 70px rgba(9, 22, 38, .15);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 22, 37, .94);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  width: 50px;
  height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.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;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,22,37,.92) 0%, rgba(11,22,37,.82) 45%, rgba(11,22,37,.38) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .72fr);
  gap: 48px;
  align-items: center;
  padding: 92px 0;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .95;
  letter-spacing: 0;
  max-width: 780px;
}

.hero-copy p {
  max-width: 640px;
  font-size: 1.18rem;
  color: rgba(255,255,255,.85);
}

.hero-logo-video {
  width: min(390px, 32vw);
  aspect-ratio: 1 / 1;
  justify-self: center;
  position: relative;
  opacity: .98;
  isolation: isolate;
  filter: drop-shadow(0 0 20px rgba(217, 31, 42, .46)) drop-shadow(0 28px 45px rgba(0, 0, 0, .32));
}

.hero-logo-video::before {
  content: "";
  position: absolute;
  inset: -14%;
  background: radial-gradient(circle, rgba(217, 31, 42, .28), rgba(217, 31, 42, 0) 62%);
  z-index: -1;
}

.hero-logo-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 47, 64, .28), rgba(255, 47, 64, .08) 48%, rgba(255, 255, 255, .12));
  -webkit-mask: url("/assets/img/f1it-logo-opt.png") center / contain no-repeat;
  mask: url("/assets/img/f1it-logo-opt.png") center / contain no-repeat;
  mix-blend-mode: color-dodge;
  pointer-events: none;
}

.hero-logo-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .92;
  filter: brightness(1.7) contrast(1.55) saturate(1.45);
  -webkit-mask: url("/assets/img/f1it-logo-opt.png") center / contain no-repeat;
  mask: url("/assets/img/f1it-logo-opt.png") center / contain no-repeat;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 850;
  font-size: .78rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  background: var(--navy);
  color: var(--white);
}

.button-ghost {
  border-color: rgba(255,255,255,.34);
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  padding: 86px 0 74px;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 1.14rem;
}

.section {
  padding: 82px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2,
.split h2,
.contact-band h2,
.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p,
.split p,
.prose p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.reference-card,
.download-card,
.contact-card,
.map-card,
.callout,
.check-panel,
.feature,
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(17, 31, 49, .06);
}

.service-card {
  overflow: hidden;
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-card__body {
  padding: 24px;
}

.service-card h3,
.feature h3,
.callout h3,
.download-card h2,
.contact-card h2,
.map-card h2,
.reference-card h2 {
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead-small {
  font-weight: 760;
  color: var(--navy);
}

.service-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.center {
  text-align: center;
  margin-top: 30px;
}

.split-band {
  background: var(--white);
}

.split,
.two-col,
.contact-layout,
.support-grid,
.references-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 34px;
  align-items: start;
}

.callout,
.check-panel,
.download-card,
.contact-card {
  padding: 28px;
}

.callout {
  border-left: 5px solid var(--red);
}

.text-link {
  color: var(--red);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.feature-grid,
.faq-grid,
.reference-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  padding: 22px;
}

.feature span,
.process-grid span {
  display: inline-block;
  color: var(--red);
  font-weight: 900;
  margin-bottom: 12px;
}

.check-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
}

.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.steps {
  margin: 0;
  padding-left: 22px;
}

.steps li {
  margin: 10px 0;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

details {
  padding: 20px 22px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin-bottom: 0;
  color: var(--muted);
}

.reference-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reference-card {
  padding: 24px;
}

.tag {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9f6f8;
  color: #006c7b;
  font-size: .86rem;
  font-weight: 800;
}

blockquote {
  margin: 16px 0;
  color: var(--muted);
}

.reference-person {
  margin: 0;
  font-weight: 850;
}

.partner-section {
  background: var(--paper);
  padding-top: 64px;
}

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

.partner-card {
  min-height: 156px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(17, 31, 49, .06);
}

.partner-card p {
  margin: 0 0 2px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.partner-card h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  line-height: 1.1;
}

.partner-card span {
  display: block;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.45;
}

.support-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.process-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-grid li {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
}

.process-grid p {
  color: rgba(255,255,255,.78);
}

.map-card {
  overflow: hidden;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 330px;
  border: 0;
}

.map-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.map-card__footer h2,
.map-card__footer p {
  margin: 0;
}

.map-card__footer p {
  color: var(--muted);
}

.contact-band {
  background: var(--navy);
  color: var(--white);
  padding: 54px 0;
}

.contact-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-band p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.prose {
  max-width: 840px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

.site-footer {
  background: #07111e;
  color: rgba(255,255,255,.78);
  padding: 52px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1rem;
}

.footer-grid a {
  color: var(--white);
}

.footer-brand {
  color: var(--white);
}

.footer-brand img {
  width: 44px;
  height: 46px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 34px;
  padding-top: 20px;
  font-size: .92rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .split,
  .two-col,
  .contact-layout,
  .references-preview {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .service-grid.compact,
  .feature-grid,
  .partner-grid,
  .reference-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    background: rgba(11,22,37,.86);
  }

  .hero-grid {
    padding: 64px 0;
  }

  .hero-logo-video {
    display: none;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.65rem;
  }

  .section,
  .page-hero {
    padding: 56px 0;
  }

  .service-grid,
  .service-grid.compact,
  .feature-grid,
  .faq-grid,
  .partner-grid,
  .reference-grid,
  .process-grid,
  .support-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-band__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
