:root {
  --ink: #17201e;
  --ink-soft: #2c3a36;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #f08a24;
  --amber-dark: #b95f14;
  --mist: #f5f8f6;
  --warm: #f4f0e8;
  --line: rgba(23, 32, 30, 0.13);
  --white: #ffffff;
  --muted: #60706c;
  --shadow: 0 20px 60px rgba(14, 36, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--amber-dark);
}

.navbar {
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid transparent;
  min-height: 76px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 42, 38, 0.08);
}

.navbar-toggler {
  border-color: var(--line);
  border-radius: 7px;
}

.brand-mark {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    var(--teal-dark);
  border-radius: 7px;
  color: var(--white);
  display: inline-flex;
  gap: 5px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  position: relative;
  width: 58px;
}

.brand-mark::after {
  background: var(--amber);
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

.brand-route {
  height: 22px;
  position: relative;
  width: 18px;
}

.brand-route::before,
.brand-route::after {
  background: rgba(255, 255, 255, 0.76);
  content: "";
  height: 2px;
  left: 4px;
  position: absolute;
  transform-origin: left center;
  width: 15px;
}

.brand-route::before {
  top: 6px;
  transform: rotate(32deg);
}

.brand-route::after {
  top: 15px;
  transform: rotate(-32deg);
}

.route-dot {
  background: var(--white);
  border-radius: 50%;
  height: 6px;
  position: absolute;
  width: 6px;
  z-index: 1;
}

.route-dot-a {
  left: 1px;
  top: 3px;
}

.route-dot-b {
  right: 0;
  top: 10px;
}

.route-dot-c {
  left: 1px;
  bottom: 2px;
}

.brand-letters {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  color: var(--ink);
  font-weight: 800;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 3px;
}

.nav-link {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
  padding-inline: 0.8rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal);
}

.btn {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 750;
  gap: 0.5rem;
  justify-content: center;
  min-height: 42px;
}

.btn-accent {
  background: var(--amber);
  border-color: var(--amber);
  color: #1d1308;
}

.btn-accent:hover,
.btn-accent:focus {
  background: #ff9a31;
  border-color: #ff9a31;
  color: #1d1308;
}

.hero {
  color: var(--white);
  display: flex;
  min-height: 82vh;
  overflow: hidden;
  padding: 128px 0 70px;
  position: relative;
}

.hero-media {
  background-image:
    linear-gradient(90deg, rgba(8, 21, 18, 0.91) 0%, rgba(8, 21, 18, 0.73) 39%, rgba(8, 21, 18, 0.22) 100%),
    url("../images/its-group-field-night-zubin-bhuyan-smart-transportation.jpg");
  background-position: center top;
  background-size: cover;
  inset: 0;
  position: absolute;
  transform: scale(1.01);
}

.hero::after {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.1), rgba(240, 138, 36, 0.18));
  bottom: 0;
  content: "";
  height: 42%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.hero-content {
  align-self: center;
  max-width: 1180px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

.hero .eyebrow,
.band-ink .eyebrow {
  color: #8ee3d8;
}

.hero h1 {
  font-size: 4.35rem;
  font-weight: 900;
  line-height: 0.96;
  margin: 0;
  max-width: 760px;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.26rem;
  line-height: 1.55;
  margin: 1.3rem 0 0;
  max-width: 710px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.72);
}

.hero-metrics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  max-width: 820px;
  overflow: hidden;
}

.hero-metrics div {
  background: rgba(255, 255, 255, 0.13);
  min-height: 104px;
  padding: 1.1rem;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 0.35rem;
}

.section {
  padding: 92px 0;
}

.band-light {
  background: var(--mist);
}

.band-warm {
  background: var(--warm);
}

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

.section-heading {
  margin-bottom: 2.5rem;
  max-width: 850px;
}

.section-heading h2 {
  font-size: 2.55rem;
  font-weight: 850;
  line-height: 1.08;
  margin: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
  margin: 1rem 0 0;
}

.band-ink .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.split-heading {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  max-width: none;
}

.split-heading > p {
  margin-bottom: 0;
}

.info-card,
.mini-project,
.person-card,
.news-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.info-card {
  box-shadow: 0 10px 30px rgba(23, 32, 30, 0.06);
  height: 100%;
  min-height: 258px;
  padding: 1.45rem;
}

.icon-pill {
  align-items: center;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 50%;
  color: var(--teal);
  display: inline-flex;
  font-size: 1.2rem;
  height: 44px;
  justify-content: center;
  margin-bottom: 1.2rem;
  width: 44px;
}

.info-card h3,
.mini-project h3,
.person-card h3,
.news-card h3 {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 0.75rem;
}

.info-card p,
.mini-project p,
.person-card p,
.news-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.project-stack {
  display: grid;
  gap: 2rem;
}

.project-feature {
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  overflow: hidden;
}

.project-feature.reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.project-feature.reverse .project-copy {
  order: 2;
}

.project-copy {
  padding: 2.2rem;
}

.project-kicker {
  color: var(--amber-dark);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 850;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.project-copy h3 {
  font-size: 1.85rem;
  font-weight: 850;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.project-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.check-list {
  display: grid;
  gap: 0.78rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  align-items: flex-start;
  color: var(--ink-soft);
  display: flex;
  gap: 0.62rem;
  line-height: 1.45;
}

.check-list i {
  color: var(--teal);
  flex: 0 0 auto;
  margin-top: 0.12rem;
}

.project-visual {
  align-items: center;
  background: #eef4f1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  min-height: 420px;
  position: relative;
}

.project-visual img {
  height: 100%;
  min-height: 0;
  max-height: 520px;
  object-fit: contain;
  width: 100%;
}

.project-visual figcaption,
.field-item figcaption,
.people-photo figcaption {
  background: rgba(9, 23, 20, 0.82);
  bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  left: 0;
  line-height: 1.4;
  margin: 0;
  padding: 0.8rem 0.95rem;
  position: absolute;
  right: 0;
}

.project-visual figcaption {
  background: #17312d;
  bottom: auto;
  left: auto;
  position: static;
  right: auto;
  width: 100%;
}

.mini-project {
  height: 100%;
  overflow: hidden;
}

.mini-project img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.mini-project div {
  padding: 1.2rem;
}

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

.field-item {
  border-radius: 8px;
  margin: 0;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.field-item.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 540px;
}

.field-item img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  width: 100%;
}

.people-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(290px, 0.85fr) minmax(0, 1.15fr);
}

.people-photo {
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.people-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.people-list {
  display: grid;
  gap: 1rem;
}

.person-card {
  padding: 1.25rem;
}

.person-card h3 a {
  color: var(--ink);
}

.person-card h3 a:hover {
  color: var(--teal);
}

.highlighted-person {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 150px;
}

.highlighted-person img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 150px;
}

.profile-link,
.text-link {
  align-items: center;
  display: inline-flex;
  font-weight: 750;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.news-card {
  align-items: start;
  box-shadow: 0 18px 48px rgba(104, 67, 20, 0.12);
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 94px minmax(0, 1fr);
  padding: 1.35rem;
}

.date-box {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 104px;
  padding: 0.65rem;
  text-align: center;
}

.date-box span,
.date-box small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.date-box strong {
  font-size: 2rem;
  line-height: 1;
  margin: 0.18rem 0;
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.12), rgba(240, 138, 36, 0.15)),
    var(--white);
}

.contact-panel {
  align-items: center;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 2rem;
}

.contact-panel h2 {
  font-size: 2.25rem;
  font-weight: 850;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.contact-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 1.6rem 0;
}

.site-footer strong {
  color: var(--white);
  display: block;
}

.site-footer span {
  display: block;
  margin-top: 0.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 1199.98px) {
  .hero h1 {
    font-size: 3.7rem;
  }

  .project-copy h3 {
    font-size: 1.62rem;
  }

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

@media (max-width: 991.98px) {
  .navbar {
    min-height: 70px;
  }

  .navbar-collapse {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(15, 42, 38, 0.1);
    margin-top: 0.75rem;
    padding: 0.75rem;
  }

  .hero {
    min-height: 78vh;
    padding-top: 112px;
  }

  .hero-media {
    background-image:
      linear-gradient(90deg, rgba(8, 21, 18, 0.9) 0%, rgba(8, 21, 18, 0.71) 68%, rgba(8, 21, 18, 0.42) 100%),
      url("../images/its-group-field-night-zubin-bhuyan-smart-transportation.jpg");
    background-position: center;
  }

  .split-heading,
  .project-feature,
  .project-feature.reverse,
  .people-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .project-feature.reverse .project-copy {
    order: 0;
  }

  .people-photo {
    position: relative;
    top: auto;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 52px;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .hero-metrics div {
    min-height: 86px;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading h2,
  .contact-panel h2 {
    font-size: 2rem;
  }

  .project-copy {
    padding: 1.35rem;
  }

  .project-copy h3 {
    font-size: 1.42rem;
  }

  .project-visual {
    min-height: 300px;
  }

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

  .field-item,
  .field-item.large {
    grid-column: auto;
    grid-row: auto;
    min-height: 330px;
  }

  .highlighted-person {
    grid-template-columns: 1fr;
  }

  .highlighted-person img {
    width: 100%;
  }

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

  .date-box {
    align-items: center;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: flex-start;
    min-height: auto;
    width: 100%;
  }

  .date-box strong {
    font-size: 1.45rem;
  }

  .contact-panel {
    padding: 1.35rem;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.45rem;
  }

  .section-heading h2,
  .contact-panel h2 {
    font-size: 1.72rem;
  }

  .btn-lg {
    font-size: 1rem;
    min-height: 46px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
