:root {
  --igm-blue: #234585;
  --blue-bright: #3974e8;
  --soft-white: #f8f6f2;
  --charcoal: #10182d;
  --muted: #69768b;
  --light-gray: #e6e8eb;
  --light-blue: #d7e3f3;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: "Manrope", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  left: clamp(1rem, 4vw, 4.8rem);
  right: calc(clamp(1rem, 4vw, 4.8rem) + 18rem);
  top: 1.2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.4rem;
  padding: 0.8rem 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1.5rem 4rem rgba(31, 41, 51, 0.12);
  backdrop-filter: blur(22px);
  transition: opacity 360ms ease, transform 360ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.site-header.is-hidden {
  border-color: transparent;
  opacity: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-140%);
  pointer-events: none;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: clamp(7.2rem, 10vw, 9.6rem);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.7rem);
  color: #0b172a;
  font-size: 1rem;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 0.75rem 0;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0.28rem;
  width: 0;
  height: 2px;
  content: "";
  background: var(--igm-blue);
  transition: width 240ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-dropdown { position: relative; }
.nav-dropdown__toggle { position: relative; display: flex; gap: 0.35rem; align-items: center; padding: 0.75rem 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: inherit; white-space: nowrap; }
.nav-dropdown__toggle::after { position: absolute; right: 0; bottom: 0.28rem; left: 0; height: 2px; content: ""; background: var(--igm-blue); transform: scaleX(0); transition: transform 220ms ease; }
.nav-dropdown:hover .nav-dropdown__toggle::after, .nav-dropdown:focus-within .nav-dropdown__toggle::after, .nav-dropdown.is-active .nav-dropdown__toggle::after { transform: scaleX(1); }
.nav-dropdown__toggle span { transition: transform 220ms ease; }
.nav-dropdown:hover .nav-dropdown__toggle span, .nav-dropdown:focus-within .nav-dropdown__toggle span { transform: rotate(180deg); }
.nav-dropdown__menu { position: absolute; top: calc(100% + 0.45rem); left: 50%; display: grid; min-width: 10.5rem; padding: 0.55rem; border: 1px solid rgba(35, 69, 133, 0.12); border-radius: 0.7rem; visibility: hidden; opacity: 0; background: rgba(255,255,255,0.98); box-shadow: 0 1rem 2.4rem rgba(18,29,51,0.16); transform: translate(-50%, -0.45rem); transition: opacity 180ms ease, transform 180ms ease, visibility 180ms; }
.nav-dropdown:hover .nav-dropdown__menu, .nav-dropdown:focus-within .nav-dropdown__menu { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.nav-dropdown__menu a { padding: 0.7rem 0.8rem; border-radius: 0.45rem; }
.nav-dropdown__menu a::after { display: none; }
.nav-dropdown__menu a:hover, .nav-dropdown__menu a.active { background: #eaf0f8; color: var(--igm-blue); }

.franchise-menu {
  position: fixed;
  top: 2.3rem;
  right: clamp(1rem, 4vw, 4.8rem);
  z-index: 35;
}

.franchise-button,
.primary-link {
  min-height: 3rem;
  padding: 0.84rem 1.25rem;
  border: 1px solid var(--igm-blue);
  border-radius: 999px;
  background: var(--igm-blue);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 1rem 2.8rem rgba(35, 69, 133, 0.18);
  transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.franchise-button:hover,
.primary-link:hover {
  background: #193b77;
  box-shadow: 0 1.2rem 3.2rem rgba(35, 69, 133, 0.26);
  transform: translateY(-0.16rem);
}

.franchise-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  display: grid;
  min-width: 13.5rem;
  padding: 0.45rem;
  border: 1px solid rgba(35, 69, 133, 0.14);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1.4rem 3.2rem rgba(31, 41, 51, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.35rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.franchise-menu:hover .franchise-dropdown,
.franchise-menu:focus-within .franchise-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.franchise-dropdown a {
  padding: 0.72rem 0.85rem;
  border-radius: 0.65rem;
  color: var(--charcoal);
  font-weight: 800;
}

.franchise-dropdown a:hover,
.franchise-dropdown a:focus-visible {
  background: var(--light-blue);
  color: var(--igm-blue);
}

.story-hero {
  position: relative;
  min-height: min(44rem, 82vh);
  margin: clamp(1.2rem, 3vw, 2.2rem) clamp(1rem, 4vw, 4.2rem) 0;
  overflow: hidden;
  background: #111827;
}

.story-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
  transform: scale(1.04);
  animation: heroFloat 18s ease-in-out infinite alternate;
}

.story-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 19, 31, 0.76) 0%, rgba(12, 19, 31, 0.46) 42%, rgba(12, 19, 31, 0.08) 78%),
    linear-gradient(180deg, rgba(12, 19, 31, 0.18), rgba(12, 19, 31, 0.28));
}

.story-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 45rem;
  min-height: min(44rem, 82vh);
  flex-direction: column;
  justify-content: center;
  padding: 9.8rem clamp(1.5rem, 6vw, 4.8rem) 4.5rem;
  color: var(--white);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 1.1rem;
  color: #74839c;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.story-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow::after {
  display: inline-block;
  width: 4.3rem;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.58;
}

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

.story-hero h1 {
  max-width: 43rem;
  margin-bottom: 1.35rem;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
}

.story-hero h1 span {
  color: var(--blue-bright);
}

.story-hero__content > p:last-child {
  max-width: 35rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
}

.identity-section,
.history-section,
.regn-section,
.future-section {
  padding: clamp(4.5rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.identity-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(19rem, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.identity-copy h2,
.history-heading h2,
.regn-copy h2,
.future-section h2 {
  margin-bottom: 1.2rem;
  color: #08132c;
  font-size: clamp(2.4rem, 4.3vw, 4.45rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

.identity-copy p,
.history-heading > p,
.regn-copy p,
.future-section > p {
  max-width: 43rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.identity-visual {
  position: relative;
  min-height: 20rem;
}

.identity-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1.95 / 1;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 1.3rem 3.4rem rgba(31, 41, 51, 0.12);
  transition: transform 560ms ease;
}

.identity-visual:hover img {
  transform: scale(1.018);
}

.visual-card {
  position: absolute;
  right: -1.5rem;
  bottom: -0.7rem;
  display: grid;
  width: min(17rem, 44%);
  min-height: 8.2rem;
  align-content: space-between;
  padding: 1.55rem 1.45rem;
  border-radius: 0.75rem;
  background: var(--igm-blue);
  color: var(--white);
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 1.2rem 3rem rgba(35, 69, 133, 0.2);
  transition: transform 260ms ease;
}

.visual-card:hover {
  transform: translateY(-0.25rem);
}

.visual-card span {
  justify-self: end;
  font-size: 1.7rem;
}

.value-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 1rem;
}

.value-item {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-right: clamp(1rem, 3vw, 3rem);
  border-right: 1px solid rgba(35, 69, 133, 0.16);
}

.value-item:last-child {
  border-right: 0;
}

.value-icon {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  place-items: center;
  border: 1px solid rgba(35, 69, 133, 0.13);
  border-radius: 50%;
  background: rgba(215, 227, 243, 0.36);
  color: var(--igm-blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.value-item h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.value-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.history-section {
  margin: 0 clamp(1rem, 4vw, 4.2rem);
  background: #f7f9fc;
}

.history-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: 2rem;
}

.history-heading h2 {
  margin-bottom: 0;
}

.history-heading > p {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.history-timeline {
  --progress: 0%;
}

.timeline-track {
  position: relative;
  height: 0.1rem;
  margin: 1.5rem 2.1rem 0;
  background: rgba(116, 131, 156, 0.32);
}

.timeline-track::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  content: "";
  background: var(--igm-blue);
  transition: width 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.timeline-years {
  display: grid;
  grid-template-columns: repeat(10, minmax(4rem, 1fr));
  gap: 0;
  margin: -0.78rem 0 1.8rem;
}

.timeline-years button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  color: #66748e;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  transition: color 240ms ease, transform 240ms ease;
}

.timeline-years button::before {
  display: block;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  content: "";
  background: #9aa8bf;
  box-shadow: 0 0 0 0 rgba(35, 69, 133, 0);
  transition: background 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.timeline-years button[aria-selected="true"] {
  color: var(--igm-blue);
  transform: translateY(0.12rem);
}

.timeline-years button[aria-selected="true"]::before {
  background: var(--igm-blue);
  box-shadow: 0 0 0 0.72rem rgba(35, 69, 133, 0.13);
  transform: scale(1.25);
}

.history-card {
  display: grid;
  grid-template-columns: minmax(13rem, 24rem) minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  min-height: 10rem;
  padding: 1.1rem 1.4rem 1.1rem 1.1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1.2rem 3rem rgba(31, 41, 51, 0.07);
}

.history-card.is-changing {
  animation: cardSwap 340ms ease;
}

.history-image {
  overflow: hidden;
  border-radius: 0.35rem;
  background: #d7dce4;
}

.history-image img {
  display: block;
  width: 100%;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  filter: none;
}

.history-copy p:first-child {
  margin-bottom: 0.35rem;
  color: var(--igm-blue);
  font-size: 1rem;
  font-weight: 900;
}

.history-copy h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  line-height: 1;
}

.history-copy p:last-child {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.history-controls {
  display: flex;
  gap: 0.75rem;
}

.history-controls button {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid rgba(35, 69, 133, 0.12);
  border-radius: 50%;
  background: var(--white);
  color: var(--igm-blue);
  cursor: pointer;
  font: inherit;
  font-size: 1.7rem;
  font-weight: 700;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.history-controls button:last-child,
.history-controls button:hover {
  background: var(--igm-blue);
  color: var(--white);
  transform: translateY(-0.12rem);
}

.regn-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.regn-image {
  overflow: hidden;
  border-radius: 0.75rem;
}

.regn-image img {
  display: block;
  width: 100%;
  aspect-ratio: 2.05 / 0.78;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 560ms ease;
}

.regn-image:hover img {
  transform: scale(1.025);
}

.regn-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.text-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--igm-blue);
  font-weight: 900;
}

.text-link span,
.primary-link span {
  transition: transform 220ms ease;
}

.text-link:hover span,
.primary-link:hover span {
  transform: translateX(0.25rem);
}

.future-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.8fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin: 0 clamp(1rem, 4vw, 4.2rem) clamp(2rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.48);
}

.future-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4.05rem);
}

.future-section > p {
  margin-bottom: 0;
  font-size: 1rem;
}

.primary-link {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.site-footer {
  background: var(--igm-blue);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 7vw, 8.5rem);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.9rem;
  color: var(--white);
  font-size: clamp(3rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 0.9;
  border-bottom: 0.12em solid currentColor;
}

.social-link {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--igm-blue);
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 1.2rem;
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.footer-newsletter label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.footer-newsletter input {
  width: min(100%, 25rem);
  min-height: 3.35rem;
  padding: 0 1.1rem;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--charcoal);
  font: inherit;
}

.footer-newsletter p,
.footer-contact p {
  max-width: 28rem;
  margin: 0.7rem 0 1rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.footer-newsletter button {
  min-width: 13rem;
  min-height: 3.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--igm-blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.footer-links a,
.footer-contact a {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.5rem, 7vw, 8.5rem);
  background: var(--white);
  color: var(--igm-blue);
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.8rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFloat {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.1rem, -0.35rem, 0);
  }
}

@keyframes cardSwap {
  0% {
    opacity: 0.45;
    transform: translateX(1.2rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .identity-section,
  .history-heading,
  .regn-section,
  .future-section {
    grid-template-columns: 1fr;
  }

  .value-row {
    grid-template-columns: 1fr;
  }

  .value-item {
    border-right: 0;
    border-bottom: 1px solid rgba(35, 69, 133, 0.13);
    padding-bottom: 1.4rem;
  }

  .history-card {
    grid-template-columns: 1fr;
  }

  .history-controls {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .site-header {
    right: 1rem;
    display: grid;
    gap: 0.15rem;
    justify-items: center;
    min-height: auto;
    padding: 0.65rem 0.8rem 0.75rem;
  }

  .main-nav {
    width: 100%;
    max-width: none;
    gap: 0.75rem;
    justify-content: center;
    overflow: visible;
    font-size: 0.76rem;
  }

  .logo img {
    width: 5.4rem;
  }

  .franchise-menu {
    top: auto;
    right: 1rem;
    bottom: 1rem;
  }

  .franchise-button {
    max-width: calc(100vw - 2rem);
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
  }

  .franchise-dropdown {
    top: auto;
    bottom: calc(100% + 0.55rem);
  }

  .story-hero {
    min-height: 100vh;
    margin: 0;
  }

  .story-hero__content {
    min-height: 100vh;
    padding-top: 8rem;
  }

  .identity-section,
  .history-section,
  .regn-section,
  .future-section {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .visual-card {
    right: 0.85rem;
    width: min(16rem, 58%);
  }

  .timeline-years {
    display: flex;
    overflow-x: auto;
    padding: 0.8rem 0 1rem;
    scroll-snap-type: x mandatory;
  }

  .timeline-years button {
    min-width: 4.6rem;
    scroll-snap-align: center;
  }

  .timeline-track {
    margin-right: 0;
    margin-left: 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
