@import url('https://fonts.googleapis.com/css2?family=Anton&family=Cinzel:wght@500&family=Poppins:wght@400;600&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  /* NO overflow-x here on purpose.
     When html has overflow:visible (default), body's overflow-x:hidden
     propagates to the viewport instead — which keeps position:fixed working. */
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: #fff;
  color: #111;
}

p {
  font-weight: 500;
}

/* =========================
   GLOBAL HEADER / HERO
========================= */

header {
  position: relative;
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
  background-color: red;
}

header .container {
  position: relative;
  z-index: 2;
}

header .overlay {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 1), transparent 700%);
}

header .overlay-2 {
  position: absolute;
  inset: 0;
  opacity: 0.92;
  z-index: 1;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    linear-gradient(217deg, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0) 40.71%),
    linear-gradient(127deg, #42423c, rgba(0, 255, 0, 0) 10.71%),
    linear-gradient(320deg, rgba(0, 0, 255, 0.8), rgba(0, 0, 255, 0) 30.71%);
}

header .overlay-3 {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  z-index: 1;
  color: black;
  background:
    linear-gradient(217deg, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0) 40.71%),
    linear-gradient(127deg, #42423c, rgba(0, 255, 0, 0) 10.71%),
    linear-gradient(320deg, rgba(0, 0, 255, 0.8), rgba(0, 0, 255, 0) 30.71%);
}

.top-header {
  text-align: center;
}

#main-header {
  background-image: url('../media/pexels-divinetechygirl-1181345.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#about-us-header {
  background-image: url('../media/pexels-fauxels-3183150.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#blogs-header {
  background-image: url('../media/pexels-pixabay-355952.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#our-work-header {
  background-image: url('../media/pexels-divinetechygirl-1181244.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#what-we-do-header {
  background-image: url('../media/pexels-kevin-ku-92347-577585.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#tech-header {
  background-image: url('../media/pexels-divinetechygirl-1181354.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#tech-header-2 {
  background-image: url('../media/pexels-scottwebb-1029624.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 500px;
}

#programs-header {
  background-image: url('../media/pexels-googledeepmind-17483868.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#contact-header {
  background-image: url('../media/pexels-mark-g-1057309-2401539.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Inner hero copy container — used across all page headers */
.what-we-do-header {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 80px 40px;
}

.what-we-do-title {
  color: white;
  font-family: 'Anton', sans-serif;
  padding: 0 0 16px;
  font-size: 64px;
  text-align: left;
  margin: 0;
}

.what-we-do-description {
  color: rgba(255, 255, 255, 0.92);
  padding: 0 0 20px;
  font-size: 19px;
  text-align: left;
  width: 85%;
  line-height: 1.8;
}


/* =========================
   GENERAL UTILITIES
========================= */

.border-5,
.border-w-5 {
  border-width: 5px !important;
}

.border-white {
  border: 1px solid transparent;
  border-color: #fff !important;
}

hr.hr-primary {
  border-top-color: #CC164D !important;
}

em {
  font-style: italic;
}

.font-weight-normal {
  font-weight: 400 !important;
}

.circular-image {
  text-align: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.tech-img {
  border-radius: 20px;
  width: 100%;
  height: auto;
}

.engineerchititle {
  margin: 0;
  padding: 30px;
  font-size: 64px;
  font-family: 'Anton', sans-serif;
  font-weight: 800;
}

.typewrite {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: white;
}

.long-red-line {
  height: 5px;
  width: 100%;
  background-color: red;
}

.down-arrow {
  color: red;
}

.down-arrow:hover {
  transform: translateY(25px) scale(1);
  transition: transform 300ms 0ms cubic-bezier(.5, .11, .51, .11);
  color: red;
}

.purpose-word {
  background-color: #cc0000;
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  display: inline;
}

/* =========================
   SERVICES / PROCESS PAGE
========================= */

/* ---- Phase image banners ---- */
.phase-banner {
  min-height: 46vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.phase-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.38) 100%);
  z-index: 1;
}

.phase-banner-content {
  position: relative;
  z-index: 2;
  padding: 60px 80px;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  width: 100%;
}

.phase-banner-num {
  font-family: 'Anton', sans-serif;
  font-size: 130px;
  line-height: 1;
  color: rgba(255,255,255,0.07);
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
}

.phase-banner-text {
  display: flex;
  flex-direction: column;
}

.phase-banner-eyebrow {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.phase-banner-title {
  font-family: 'Anton', sans-serif;
  font-size: 76px;
  color: white;
  margin: 0 0 10px;
  line-height: 1;
}

.phase-banner-sub {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 2px;
  margin: 0;
}

/* ---- Timeline ---- */
.process-timeline {
  background: #f8f8f8;
  padding: 80px 0 90px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, #ddd 6%, #ddd 94%, transparent 100%);
  transform: translateX(-50%);
}

.tl-step {
  display: flex;
  position: relative;
  margin-bottom: 52px;
}

.tl-step:last-child {
  margin-bottom: 0;
}

.tl-step.tl-left {
  justify-content: flex-end;
  padding-right: calc(50% + 48px);
}

.tl-step.tl-right {
  justify-content: flex-start;
  padding-left: calc(50% + 48px);
}

.tl-dot {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c40000 0%, #ff2a2a 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 18px rgba(196,0,0,0.32);
  z-index: 2;
  flex-shrink: 0;
}

.tl-card {
  background: white;
  padding: 28px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-top: 3px solid red;
  position: relative;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.tl-card:hover {
  box-shadow: 0 14px 36px rgba(0,0,0,0.11);
  transform: translateY(-3px);
}

/* Arrow connectors pointing at the timeline dot */
.tl-step.tl-left .tl-card::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -11px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 11px solid white;
}

.tl-step.tl-right .tl-card::before {
  content: '';
  position: absolute;
  top: 30px;
  left: -11px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 11px solid white;
}

.tl-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tl-step-num {
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: white;
  background: linear-gradient(135deg, #c40000 0%, #ff2a2a 100%);
  padding: 3px 10px;
  border-radius: 3px;
}

.tl-duration {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  display: block;
}

.tl-title {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: #111;
  margin: 0 0 10px;
}

.tl-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

.process-overview {
  background: #111;
  padding: 80px 0;
}

.process-overview-heading {
  text-align: center;
  margin-bottom: 52px;
}

.process-overview-label {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}

.process-overview-title {
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  color: white;
  margin: 0;
}

.phase-card {
  background: #1a1a1a;
  border-top: 4px solid red;
  padding: 40px 32px 36px;
  height: 100%;
  transition: background 0.2s ease;
}

.phase-card:hover {
  background: #222;
}

.phase-card-num {
  font-family: 'Anton', sans-serif;
  font-size: 72px;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  display: block;
  margin-bottom: -8px;
}

.phase-card-title {
  font-family: 'Anton', sans-serif;
  font-size: 34px;
  color: white;
  margin-bottom: 12px;
}

.phase-card-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.process-detail {
  padding: 100px 0 120px;
  background: #f8f8f8;
}

.process-phase {
  margin-bottom: 80px;
}

.process-phase:last-child {
  margin-bottom: 0;
}

.process-phase-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e8e8e8;
}

.process-phase-num {
  font-family: 'Anton', sans-serif;
  font-size: 80px;
  line-height: 1;
  color: rgba(204,0,0,0.1);
}

.process-phase-title {
  font-family: 'Anton', sans-serif;
  font-size: 54px;
  color: #111;
  margin: 0;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 36px;
  background: white;
  border-left: 4px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.process-step:hover {
  border-left-color: red;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.step-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #c40000 0%, #ff2a2a 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(196,0,0,0.25);
}

.step-body {
  flex: 1;
}

.step-duration {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: red;
  display: inline-block;
  margin-bottom: 8px;
}

.step-title {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  color: #111;
  margin: 0 0 10px;
}

.step-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* =========================
   SPRINTS SECTION
========================= */

.sprints-section {
  background: #f7f7f7;
  padding: 90px 0;
}

.sprints-intro {
  max-width: 720px;
  margin-bottom: 56px;
}

.sprints-section .process-overview-label {
  color: #cc0000;
}

.sprints-section .process-overview-title {
  color: #111;
}

.sprints-lead {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-top: 16px;
}

.sprints-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.sprint-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border-top: 4px solid #e8e8e8;
  transition: border-color 0.2s;
}

.sprint-card:hover {
  border-color: #cc0000;
}

.sprint-card-featured {
  border-color: #cc0000;
}

.sprint-card-icon {
  font-size: 22px;
  color: #cc0000;
  margin-bottom: 16px;
}

.sprint-card-title {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: #111;
  margin-bottom: 12px;
}

.sprint-card-desc {
  font-size: 16px;
  line-height: 1.75;
  color: #555;
  margin: 0;
}

.sprints-callout {
  background: #111;
  color: rgba(255,255,255,0.85);
  border-left: 5px solid #cc0000;
  border-radius: 8px;
  padding: 28px 32px;
  font-size: 17px;
  line-height: 1.8;
  max-width: 860px;
}

.sprints-callout p {
  margin: 0;
}

@media (max-width: 768px) {
  .sprints-grid {
    grid-template-columns: 1fr;
  }

  .sprints-callout {
    padding: 22px 20px;
    font-size: 15px;
  }
}

.process-cta {
  background: linear-gradient(135deg, #111111 0%, #1e1e1e 55%, #8b0000 140%);
  padding: 100px 0;
  text-align: center;
  color: white;
}

.process-cta-label {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  color: #f3b2b2;
  margin-bottom: 16px;
}

.process-cta-title {
  font-family: 'Anton', sans-serif;
  font-size: 54px;
  color: white;
  margin-bottom: 20px;
  line-height: 1.08;
}

.process-cta-text {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 36px;
}

.process-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #c40000 0%, #ff2a2a 100%);
  color: white !important;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(196,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(196,0,0,0.4);
  color: white !important;
}

.get-started-h1 {
  color: red;
  font-family: 'Anton', sans-serif;
  margin: 0;
}

/* =========================
   NAVBAR
========================= */

.engineerchi-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: 'Cinzel', serif;
}

.navbar-shell {
  min-height: 92px;
  padding-left: 24px;
  padding-right: 24px;
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

#navbar-image {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: white;
  padding: 6px;
  border-radius: 14px;
  border: 2px solid rgba(255, 0, 0, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

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

.brand-name {
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  letter-spacing: 0.5px;
  color: #111;
  text-transform: none;
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #666;
  margin-top: 4px;
}

.engineerchi-nav-list {
  gap: 8px;
}

.engineerchi-nav-list .nav-item {
  display: inline-block;
  margin: 0 2px;
  text-transform: uppercase;
}

.engineerchi-nav-list .nav-item::after {
  display: block;
  content: '';
  border-bottom: solid 2px red;
  transform: scaleX(0);
  transition: transform 250ms ease-in-out;
}

.engineerchi-nav-list .nav-item:hover::after {
  transform: scaleX(1);
}

.engineerchi-nav-list .nav-link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #111 !important;
  padding: 14px 16px !important;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.engineerchi-nav-list .nav-link:hover {
  color: red !important;
  background: rgba(255, 0, 0, 0.05);
}

.nav-contact-item::after {
  display: none;
}

.nav-contact-link {
  background: linear-gradient(135deg, #c40000 0%, #ff2a2a 100%);
  color: white !important;
  padding: 14px 22px !important;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(196, 0, 0, 0.22);
}

.nav-contact-link:hover {
  color: white !important;
  background: linear-gradient(135deg, #a80000 0%, #e31d1d 100%);
  transform: translateY(-1px);
}

.custom-navbar-toggler {
  border: 1px solid rgba(255, 0, 0, 0.18);
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: none !important;
}

.custom-navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.12) !important;
}

.bottom-nav {
  height: 80px;
  display: inline;
}

/* =========================
   HOME + SHARED SECTIONS
========================= */

.first-section {
  background-color: #fff;
}

.we-help {
  padding: 100px;
  padding-top: 200px;
  padding-bottom: 200px;
}

.we-help-1 {
  color: white;
  background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .3)), url(../media/work1.jpg) center no-repeat;
  background-size: cover;
  background-position: center top;
}

.we-help-about {
  color: white;
  background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(../media/work1.jpg) center no-repeat;
  background-position: center top;
}

.we-help-h1 {
  font-family: 'Anton', sans-serif;
}

.we-help-h1-2 {
  font-family: 'Anton', sans-serif;
  color: red;
}

.we-help-2 {
  color: white;
  background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../media/ux1.jpg) center center no-repeat scroll;
  background-size: cover;
  background-position: center bottom;
}

.we-help-3 {
  color: white;
  background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../media/blogImages/programming-1873854_1920.png) center center no-repeat scroll;
  background-size: cover;
  background-position: center bottom;
}

.we-help-4 {
  color: white;
  background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../media/pexels-pixabay-159304\ \(1\).jpg) center center no-repeat scroll;
  background-size: cover;
  background-position: center center;
}

/* Parallax on desktop only — iOS/touch devices don't render fixed backgrounds correctly */
@media (hover: hover) and (min-width: 769px) {
  .we-help-2 {
    background-attachment: fixed;
  }
  .we-help-3 {
    background-attachment: fixed;
  }
  .we-help-4 {
    background-attachment: fixed;
  }
}

.second-section {
  background-color: orange;
  min-height: 500px;
}

.we-help-1 h3 {
  background-color: white;
  color: red;
  padding: 10px;
  font-family: 'Cinzel', serif;
}

.insights {
  padding: 100px;
  padding-top: 200px;
  padding-bottom: 200px;
  background-color: red;
  color: white;
}

.insights h3 {
  color: red;
  padding: 20px;
}

.fourth-section {
  background-color: white;
  margin-top: 100px;
  margin-bottom: 100px;
  min-height: 200px;
  font-family: 'Anton', sans-serif;
}

.what-we-do-link a,
.first-section a,
.third-section a {
  color: white;
  text-decoration: none;
}

#next {
  cursor: pointer;
  position: relative;
  font-weight: bold;
  font-size: 20px;
  user-select: none;
  transition: 0.2s ease-in;
}

#next:hover::before {
  opacity: 1;
}

#next span {
  display: inline-block;
  transition: 0.6s ease-in;
}

#next:hover span,
.workItem:hover span {
  transform: translateX(30px);
}

.section-link-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 18px;
  transition: gap 0.2s ease;
}

.section-link-light:hover {
  gap: 14px;
  color: white !important;
}

.section-link-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111 !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 18px;
  transition: gap 0.2s ease;
}

.section-link-dark:hover {
  gap: 14px;
  color: #111 !important;
}

/* =========================
   CLIENTS
========================= */

#clients {
  padding: 60px 0;
}

#clients .clients-wrap {
  border-top: 1px solid #d6eaff;
  border-left: 1px solid #d6eaff;
  margin-bottom: 30px;
}

#clients .client-logo {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid #d6eaff;
  border-bottom: 1px solid #d6eaff;
  overflow: hidden;
  background: #fff;
  height: 160px;
}

#clients img {
  transition: all 10s ease-in-out;
}

/* =========================
   TIMELINE
========================= */

.timeline {
  list-style: none;
  padding: 20px 0;
  position: relative;
}

.timeline::before {
  top: 0;
  bottom: 0;
  position: absolute;
  content: " ";
  width: 3px;
  background-color: #eeeeee;
  left: 50%;
  margin-left: -1.5px;
}

.timeline > li {
  margin-bottom: 20px;
  position: relative;
}

.timeline > li::before,
.timeline > li::after {
  content: " ";
  display: table;
}

.timeline > li::after {
  clear: both;
}

.timeline > li > .timeline-panel {
  width: 46%;
  float: left;
  border: 1px solid #d4d4d4;
  border-radius: 2px;
  padding: 20px;
  position: relative;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}

.timeline > li > .timeline-panel::before {
  position: absolute;
  top: 26px;
  right: -15px;
  display: inline-block;
  border-top: 15px solid transparent;
  border-left: 15px solid #ccc;
  border-bottom: 15px solid transparent;
  content: " ";
}

.timeline > li > .timeline-panel::after {
  position: absolute;
  top: 27px;
  right: -14px;
  display: inline-block;
  border-top: 14px solid transparent;
  border-left: 14px solid #fff;
  border-bottom: 14px solid transparent;
  content: " ";
}

.timeline > li > .timeline-badge {
  color: #fff;
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 1.4em;
  text-align: center;
  position: absolute;
  top: 16px;
  left: 50%;
  margin-left: -25px;
  background-color: #999999;
  z-index: 100;
  border-radius: 50%;
}

.timeline > li.timeline-inverted > .timeline-panel {
  float: right;
}

.timeline > li.timeline-inverted > .timeline-panel::before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto;
}

.timeline > li.timeline-inverted > .timeline-panel::after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -14px;
  right: auto;
}

.timeline-badge.primary {
  background-color: #2e6da4 !important;
}

.timeline-badge.success {
  background-color: #3f903f !important;
}

.timeline-badge.warning {
  background-color: #f0ad4e !important;
}

.timeline-badge.danger {
  background-color: #d9534f !important;
}

.timeline-badge.info {
  background-color: #5bc0de !important;
}

.timeline-title {
  margin-top: 0;
  color: inherit;
}

.timeline-body > p,
.timeline-body > ul {
  margin-bottom: 0;
}

.timeline-body > p + p {
  margin-top: 5px;
}

/* =========================
   CARDS / ITEMS / WORK
========================= */

.item {
  background-color: white;
  padding: 0 0 10px;
  float: left;
  color: black;
  border: 1px solid black;
}

.item button {
  font-family: 'Cinzel', serif;
  padding: 20px;
  line-height: normal;
}

.item p {
  text-align: left;
  padding: 20px;
}

.item h3 {
  color: red !important;
  font-weight: bold;
  padding: 20px;
}

.item img {
  width: 100%;
  height: 40%;
  margin-bottom: 30px;
}

.item a {
  text-decoration: none !important;
  text-align: left;
  color: black !important;
}

.first-section-tech-stack {
  min-height: 100%;
  background-color: white;
}

/* =========================
   TECH CARD GRID
========================= */

.tech-grid-section {
  padding: 80px 0 100px;
  background: #f8f8f8;
}

.tech-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.tech-card-img-wrap {
  background: #fff;
  padding: 32px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  border-bottom: 1px solid #f0f0f0;
}

.tech-card-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.tech-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tech-card-name {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: #111;
  margin-bottom: 10px;
}

.tech-card-description {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  flex-grow: 1;
  margin-bottom: 24px;
  text-align: left;
}

.tech-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #c40000 0%, #ff2a2a 100%);
  color: white !important;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(196, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.tech-card-btn:hover {
  background: linear-gradient(135deg, #a80000 0%, #e31d1d 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196, 0, 0, 0.3);
  color: white !important;
}

.tech-card-btn .btn-arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}

.tech-card-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* =========================
   INSIGHT CARD GRID
========================= */

.insights-grid-section {
  padding: 80px 0 100px;
  background: #f8f8f8;
}

.insights-grid-heading {
  text-align: center;
  margin-bottom: 52px;
}

.insights-grid-title {
  font-family: 'Anton', sans-serif;
  font-size: 46px;
  color: #111;
  margin-top: 8px;
}

.insight-grid-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
}

.insight-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.insight-grid-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.insight-grid-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.insight-grid-card-date {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Cinzel', serif;
  margin-bottom: 10px;
}

.insight-grid-card-title {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.2;
}

.insight-grid-card-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  flex-grow: 1;
  margin-bottom: 22px;
  text-align: left;
}

.insight-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  color: red !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: gap 0.2s ease;
  align-self: flex-start;
}

.insight-read-btn:hover {
  gap: 12px;
}

.picking-tech {
  font-size: 45px;
  padding: 20px;
  font-family: 'Anton', sans-serif;
}

.work-title {
  font-size: 50px;
  font-weight: 800;
}

.work-details {
  margin: 0 auto;
  width: 70%;
}

.workItem {
  display: flex;
  align-items: center;
  transform: scale(.9);
  transition: .9s ease-in-out;
  color: white;
}

.workItem:hover {
  transform: scale(1);
  cursor: pointer;
  color: red;
}

/* =========================
   DJANGO / TECH SECTION
========================= */

.first-section-django {
  background: linear-gradient(270deg, #179d28, #0d921e, #80bb3b);
  background-size: 600% 600%;
  animation: AnimationName 30s ease infinite;
}

@keyframes AnimationName {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}

.django-title {
  padding: 30px;
  font-family: 'Anton', sans-serif;
}

.django-row {
  margin-top: 50px;
  text-align: center;
}

.django-p {
  text-align: left;
  border: 2px solid green;
  padding: 20px;
}

.django-intro {
  margin: 0 auto;
}

/* =========================
   CAROUSEL
========================= */

.carousel:hover {
  cursor: grab;
}

.carousel:hover:active {
  cursor: grabbing;
}

.carousel button {
  padding: 30px;
  width: 100%;
  border-radius: 0;
  border-right: 2px solid black;
  border-left: 2px solid black;
  background-color: red;
}

/* =========================
   FORMS / CONTACT
========================= */

.design-section {
  background-color: #111;
}

.footer {
  min-height: 30%;
  background-color: red;
  color: white;
}

.contact-form {
  padding: 50px;
}

.right-side {
  background-color: blue;
  height: 100%;
}

.contact-section {
  padding: 100px;
}

input {
  padding: 5px;
  border-radius: 6px;
  height: 50px;
}

input:active {
  text-decoration: none;
  outline: none;
}

.hello-email {
  text-decoration: underline;
}

.blog {
  border: 2px solid black;
  height: 100%;
  color: black;
}

.newsletter {
  padding: 80px 0;
  background: url(../media/interstellar.svg);
  background-position: center center;
}

.newsletter .content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.newsletter .content h2 {
  color: white;
  margin-bottom: 40px;
}

.newsletter .content .form-control {
  height: 50px;
  border-radius: 0;
}

.newsletter .content.form-control:focus {
  box-shadow: none;
  border: 2px solid red;
}

.newsletter .content .button {
  min-height: 50px;
  border-radius: 0;
  background: red;
  color: #fff;
  font-weight: 600;
}

.contact-section-wrap {
  padding: 80px 0 120px;
  background: #f8f8f8;
}

.contactForm {
  margin: 0;
  height: 100%;
  background: transparent;
  padding: 0;
  color: inherit;
}

.contact-info-panel {
  padding: 60px 40px 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-kicker {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: red;
  margin-bottom: 14px;
}

.contact-panel-title {
  font-family: 'Anton', sans-serif;
  font-size: 42px;
  line-height: 1.08;
  color: #111;
  margin-bottom: 20px;
}

.contact-panel-text {
  font-size: 18px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #111;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-detail i {
  color: red;
  font-size: 18px;
}

.contact-form-panel {
  background: #fff;
  padding: 56px 52px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-top: 5px solid red;
}

.contact-form-panel .form-group {
  margin-bottom: 22px;
}

.contact-form-panel label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contactInputs,
.contact-input {
  border-radius: 4px;
  border: 1.5px solid #ddd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input:focus {
  border-color: red;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08);
  outline: none;
}

.contact-title {
  font-family: 'Anton', sans-serif;
  color: #111;
  font-size: 38px;
  margin-bottom: 8px;
}

.contact-subtitle {
  font-size: 17px;
  color: #555;
  margin-bottom: 30px;
}

.contact-submit-btn {
  min-width: 180px;
  padding: 14px 32px;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 1px;
  border-radius: 4px;
  margin-top: 10px;
}

.budget-optional {
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
}

.budget-hint {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

select {
  background:
    linear-gradient(45deg, transparent 50%, grey 50%),
    linear-gradient(135deg, grey 50%, transparent 50%),
    linear-gradient(to right, white, white);
  background-position:
    calc(100% - 21px) calc(1em + 2px),
    calc(100% - 16px) calc(1em + 2px),
    100% 0;
  background-size:
    5px 5px,
    5px 5px,
    2.5em 2.5em;
  background-repeat: no-repeat;
  border: thin solid grey;
  font: 300 1em/100% "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5em;
  padding: 0.5em 3.5em 0.5em 1em;
  border-radius: 0;
  margin: 0;
  box-sizing: border-box;
  appearance: none;
}

.login-button {
  padding: 22px;
  background-color: blue;
  color: white;
  border: none;
}

.login-background {
  background-image: url(../media/pexels-kelly-lacy-4642503.jpg);
  background-repeat: none;
  background-position: center center;
}

.loginForm {
  height: 100%;
  background-color: red;
  padding: 100px;
  margin-top: 140px;
  margin-bottom: 200px;
  color: white;
  opacity: .9;
  border: 2px solid black;
}

.messages-section {
  width: 100%;
  background-color: white;
  height: 1050px;
}

#contact-section {
  background-color: black !important;
}

/* =========================
   BACK TO TOP
========================= */

#back2Top {
  width: 40px;
  line-height: 40px;
  overflow: hidden;
  z-index: 999;
  display: block;
  cursor: pointer;
  transform: rotate(270deg);
  position: fixed;
  bottom: 50px;
  right: 0;
  background-color: red;
  color: white;
  text-align: center;
  font-size: 30px;
  text-decoration: none;
}

#back2Top:hover {
  background-color: black;
  color: red;
}

/* =========================
   ABOUT PAGE
========================= */

.about-us-hero {
  min-height: 92vh;
}

.about-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 80px 40px;
}

.about-kicker {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: 10px;
  font-family: 'Cinzel', serif;
}

.about-hero-description {
  max-width: 760px;
  line-height: 1.8;
  font-size: 19px;
}

.about-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
  padding-top: 100px;
  padding-bottom: 100px;
}

.about-section-heading {
  margin-bottom: 40px;
}

.about-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: red;
  font-family: 'Cinzel', serif;
  margin-bottom: 10px;
}

.about-founder-row {
  row-gap: 40px;
}

.founder-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-image {
  width: 320px;
  max-width: 100%;
  border: 8px solid white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.bio-letter-card {
  background: #fffdf8;
  color: #1f1f1f;
  padding: 50px;
  border-left: 8px solid red;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  position: relative;
}

.bio-letter-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 120px;
  height: 120px;
  border-top: 2px solid rgba(204, 22, 77, 0.15);
  border-right: 2px solid rgba(204, 22, 77, 0.15);
}

.bio-letter-card p {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 22px;
}

.bio-letter-intro {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.bio-letter-close {
  margin-top: 35px;
  font-family: 'Cinzel', serif;
  font-size: 20px;
}

.bio-letter-close span {
  color: red;
  font-weight: 700;
}

.founder-linkedin-link,
.first-section .founder-linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #111 !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.founder-linkedin-link:hover,
.first-section .founder-linkedin-link:hover {
  color: #cc0000 !important;
}

.mission-band {
  background: linear-gradient(135deg, #111111 0%, #1e1e1e 55%, #8b0000 140%);
  color: white;
  padding: 100px 0;
}

.mission-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Cinzel', serif;
  color: #f3b2b2;
  margin-bottom: 18px;
}

.mission-title {
  font-family: 'Anton', sans-serif;
  font-size: 54px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.mission-text {
  font-size: 19px;
  line-height: 1.9;
  max-width: 900px;
  color: rgba(255, 255, 255, 0.92);
}

/* =========================
   ABOUT CTA BAND
========================= */

.about-cta-band {
  background: #cc0000;
  padding: 80px 0;
  text-align: center;
}

.about-cta-title {
  font-family: 'Anton', sans-serif;
  font-size: 42px;
  color: #fff;
  margin-bottom: 12px;
}

.about-cta-text {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.about-cta-btn {
  display: inline-block;
  background: #fff;
  color: #cc0000;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 16px 40px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.about-cta-btn:hover {
  background: #111;
  color: #fff;
}

/* =========================
   HOME PAGE REFINEMENTS
========================= */

.home-hero {
  min-height: calc(100vh - 97px);
}

.home-hero-content {
  max-width: 920px;
  padding: 120px 24px 100px;
}

.hero-kicker,
.section-kicker {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: red;
  margin-bottom: 14px;
}

.section-kicker-light,
.hero-kicker {
  color: rgba(255, 255, 255, 0.92);
}

.home-hero-title {
  margin-bottom: 20px;
  line-height: 1.25;
}

.home-hero-subtext {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.hero-scroll-link {
  display: inline-block;
  margin-top: 14px;
}

.home-intro-section .we-help,
.home-insights-section .we-help,
.home-insights-section .insights {
  padding: 110px 72px;
}

.home-intro-copy,
.home-client-panel,
.home-strategy-panel,
.home-insights-panel {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-section-title,
.home-section-title-dark {
  font-size: 56px;
  line-height: 1.04;
  margin-bottom: 24px;
}

.home-section-text,
.home-section-text-dark {
  font-size: 19px;
  line-height: 1.9;
  max-width: 640px;
  margin-bottom: 28px;
}

.home-section-text-dark {
  color: #202020;
}

.clients-intro {
  margin-bottom: 30px;
}

.clients-title {
  font-family: 'Anton', sans-serif;
  font-size: 42px;
  color: #111;
  line-height: 1.08;
  margin-bottom: 12px;
}

.home-client-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.case-study-strip {
  padding: 90px 0 40px;
  background: #fff;
}

.case-study-heading {
  margin-bottom: 34px;
  padding: 0 20px;
}

.case-study-title {
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  color: #111;
  line-height: 1.08;
  margin-bottom: 0;
}

.case-study-carousel {
  padding-bottom: 20px;
}

.case-study-slide {
  padding: 0;
  background: #fff;
}

.case-study-slide img {
  width: 100%;
  display: block;
}

.case-study-button {
  box-shadow: none;
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
}

.home-strategy-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.home-insights-panel {
  background: linear-gradient(135deg, #9d0000 0%, #d91010 65%, #ff3a3a 100%);
  color: white;
}

.insights-title {
  font-family: 'Anton', sans-serif;
  font-size: 46px;
  line-height: 1.08;
  margin-bottom: 28px;
  color: white;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.insight-card-link {
  text-decoration: none;
}

.insight-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card h3 {
  margin: 0;
  color: red;
  font-size: 24px;
}

.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

.home-cta-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
  margin-top: 0;
  margin-bottom: 0;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
}

.home-cta-text {
  max-width: 760px;
  margin: 18px auto 30px;
  font-size: 19px;
  line-height: 1.85;
  color: #333;
}

.home-cta-button {
  min-width: 220px;
}

/* =========================
   CASE STUDY PAGE
========================= */

.case-study-hero {
  min-height: 82vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.case-study-overlay {
  opacity: 0.72;
}

.case-study-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 55px 40px 40px;
}

.case-study-kicker {
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 14px;
  font-family: 'Cinzel', serif;
}

.case-study-title-hero {
  padding: 0;
  margin-bottom: 22px;
  max-width: 900px;
}

.case-study-description-hero {
  padding: 0;
  margin-bottom: 24px;
  max-width: 760px;
  font-size: 20px;
  line-height: 1.85;
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-study-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.case-study-visit {
  margin-top: 28px;
}

.case-study-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  background: linear-gradient(135deg, #c40000 0%, #ff2a2a 100%);
  color: white !important;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(196, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-study-visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(196, 0, 0, 0.45);
  color: white !important;
}

.case-study-content-section {
  background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
  padding: 90px 0 110px;
}

.case-study-paper {
  background: #fffdf8;
  border-left: 8px solid red;
  padding: 52px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
  position: relative;
}

.case-study-paper::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 120px;
  height: 120px;
  border-top: 2px solid rgba(204, 22, 77, 0.15);
  border-right: 2px solid rgba(204, 22, 77, 0.15);
}

.case-study-paper-top {
  margin-bottom: 28px;
}

.case-study-paper-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: red;
  font-family: 'Cinzel', serif;
  margin-bottom: 10px;
}

.case-study-paper-title {
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  line-height: 1.08;
  color: #111;
  margin: 0;
}

.case-study-body {
  color: #1f1f1f;
}

.casestudy-text {
  font-size: 17px;
  line-height: 1.9;
  font-family: 'Poppins', sans-serif;
  color: #222;
}

.casestudy-text p {
  margin-bottom: 24px;
}

.casestudy-description {
  margin: 0 auto;
}

/* =========================
   INSIGHT PAGE
========================= */

.insight-hero {
  min-height: 78vh;
  background:
    linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .48)),
    url('../media/pexels-pixabay-355952.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.insight-overlay {
  opacity: 0.85;
}

.insight-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 55px 40px 40px;
}

.insight-content-section {
  background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
  padding: 90px 0 110px;
}

.insight-paper {
  background: #fffdf8;
  border-left: 8px solid red;
  padding: 52px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
  position: relative;
}

.insight-paper::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 120px;
  height: 120px;
  border-top: 2px solid rgba(204, 22, 77, 0.15);
  border-right: 2px solid rgba(204, 22, 77, 0.15);
}

.insight-body {
  color: #1f1f1f;
  font-size: 17px;
  line-height: 1.9;
  font-family: 'Poppins', sans-serif;
}

.insight-body p {
  margin-bottom: 24px;
}

/* ── Share buttons ─────────────────────────────────────────── */
.insight-share {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.insight-share-top {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.insight-share-bottom {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #eee;
}

.insight-share-label {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  white-space: nowrap;
}

.insight-share-btns {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, transform 0.18s ease;
}

.share-btn:hover { transform: translateY(-2px); }

.share-fb:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-tw:hover  { background: #1da1f2; border-color: #1da1f2; color: #fff; }
.share-li:hover  { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share-copy:hover { background: #cc0000; border-color: #cc0000; color: #fff; }

.share-copy-done {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
}

.share-native:hover { background: #111; border-color: #111; color: #fff; }

/* South Side Code inquiry info items */
.ssi-ways {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ssi-way {
  border-left: 3px solid #CC164D;
  padding: 10px 16px;
}

.ssi-way strong {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 17px;
  color: #111;
  margin-bottom: 4px;
}

.ssi-way p {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* =========================
   CHICODE PAGE
========================= */

.chicode-hero {
  min-height: 80vh;
  background:
    linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.5)),
    url('../media/pexels-divinetechygirl-1181354.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.chicode-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 100px 40px 80px;
}

.chicode-hero-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #CC164D;
  margin-bottom: 16px;
}

.chicode-hero-title {
  font-family: 'Anton', sans-serif;
  font-size: 80px;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 28px;
}

.chicode-hero-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin-bottom: 40px;
}

.chicode-hero-cta {
  display: inline-block;
  background: #CC164D;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 16px 36px;
  text-decoration: none;
  border: 2px solid #CC164D;
  transition: background 0.2s ease, color 0.2s ease;
}

.chicode-hero-cta:hover {
  background: transparent;
  color: #fff;
}

.chicode-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.chicode-hero-cta-outline {
  background: transparent;
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.45);
}

.chicode-hero-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff !important;
  border-color: rgba(255,255,255,0.75);
}

/* Mission band */
.chicode-mission {
  background: #111;
  padding: 90px 0;
}

.chicode-mission-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #CC164D;
  margin-bottom: 20px;
}

.chicode-mission-title {
  font-family: 'Anton', sans-serif;
  font-size: 52px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 28px;
}

.chicode-mission-text {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
  max-width: 700px;
}

/* Who it's for */
.chicode-who {
  background: #f8f8f8;
  padding: 90px 0 100px;
}

.chicode-who-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #CC164D;
  margin-bottom: 14px;
}

.chicode-who-title {
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.1;
}

.chicode-who-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #555;
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 0;
}

.chicode-audience-card {
  background: #fff;
  border-top: 4px solid #CC164D;
  padding: 32px 28px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  height: 100%;
}

.chicode-audience-icon {
  font-size: 28px;
  color: #CC164D;
  margin-bottom: 16px;
}

.chicode-audience-title {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: #111;
  margin-bottom: 10px;
}

.chicode-audience-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  margin: 0;
}

/* Curriculum */
.chicode-curriculum {
  background: #fff;
  padding: 90px 0 100px;
}

.chicode-curriculum-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #CC164D;
  margin-bottom: 14px;
}

.chicode-curriculum-title {
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.1;
}

.chicode-curriculum-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 0;
}

.chicode-module {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid #eee;
}

.chicode-module:last-child {
  border-bottom: none;
}

.chicode-module-num {
  font-family: 'Anton', sans-serif;
  font-size: 42px;
  color: #CC164D;
  line-height: 1;
  min-width: 56px;
}

.chicode-module-content h4 {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: #111;
  margin-bottom: 8px;
}

.chicode-module-content p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  margin: 0;
}

/* Structure */
.chicode-structure {
  background: #111;
  padding: 90px 0;
}

.chicode-structure-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #CC164D;
  margin-bottom: 14px;
}

.chicode-structure-title {
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.chicode-structure-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 0;
}

.chicode-pillar {
  border-left: 3px solid #CC164D;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  height: 100%;
}

.chicode-pillar-num {
  font-family: 'Anton', sans-serif;
  font-size: 38px;
  color: rgba(204,22,77,0.4);
  line-height: 1;
  margin-bottom: 12px;
}

.chicode-pillar-title {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.chicode-pillar-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* CTA */
.chicode-cta {
  background: #CC164D;
  padding: 90px 0;
  text-align: center;
}

.chicode-cta-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.chicode-cta-title {
  font-family: 'Anton', sans-serif;
  font-size: 60px;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.05;
}

.chicode-cta-text {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.chicode-cta-btn {
  display: inline-block;
  background: #fff;
  color: #CC164D;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 16px 40px;
  text-decoration: none;
  border: 2px solid #fff;
  transition: background 0.2s ease, color 0.2s ease;
  margin: 0 8px 12px;
}

.chicode-cta-btn:hover {
  background: transparent;
  color: #fff;
}

.chicode-cta-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.chicode-cta-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.chicode-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.chicode-cta-btn-school {
  background: transparent;
  color: rgba(255,255,255,0.75) !important;
  border-color: rgba(255,255,255,0.35);
  font-size: 13px;
  letter-spacing: 0.8px;
}

.chicode-cta-btn-school:hover {
  background: rgba(255,255,255,0.08);
  color: #fff !important;
  border-color: rgba(255,255,255,0.7);
}

/* =========================
   MOBILE / RESPONSIVE
========================= */

@media only screen and (max-width: 768px) {
  .phase-banner {
    min-height: 38vh;
  }

  .phase-banner-content {
    padding: 44px 28px;
  }

  .phase-banner-title {
    font-size: 52px;
  }

  .phase-banner-num {
    font-size: 90px;
    right: 28px;
  }

  /* Timeline: collapse to left-edge single column */
  .process-timeline::before {
    left: 26px;
    transform: none;
  }

  .tl-step.tl-left,
  .tl-step.tl-right {
    justify-content: flex-start;
    padding-left: 76px;
    padding-right: 0;
  }

  .tl-dot {
    left: 26px;
    top: 18px;
    transform: none;
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .tl-card {
    max-width: 100%;
    padding: 22px 20px;
  }

  .tl-step.tl-left .tl-card::after,
  .tl-step.tl-right .tl-card::before {
    display: none;
  }
}

@media only screen and (max-width: 991px) {
  .tech-grid-section,
  .insights-grid-section {
    padding: 60px 0 80px;
  }

  .insights-grid-title {
    font-size: 36px;
  }

  .process-overview {
    padding: 60px 0;
  }

  .process-overview-title {
    font-size: 36px;
  }

  .process-detail {
    padding: 70px 0 90px;
  }

  .process-phase-title {
    font-size: 40px;
  }

  .process-phase-num {
    font-size: 56px;
  }

  .process-cta-title {
    font-size: 38px;
  }

  .process-step {
    padding: 24px 24px;
  }

  .contact-section-wrap {
    padding: 60px 16px 90px;
  }

  .contact-info-panel {
    padding: 40px 0 20px;
  }

  .contact-form-panel {
    padding: 40px 32px;
  }

  .what-we-do-header {
    padding: 60px 28px;
  }

  .what-we-do-title {
    font-size: 46px;
  }

  .navbar-shell {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand-tagline {
    display: none;
  }

  .navbar-collapse {
    margin-top: 18px;
    background: white;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

  .engineerchi-nav-list {
    gap: 2px;
  }

  .engineerchi-nav-list .nav-link {
    border-radius: 12px;
    padding: 12px 14px !important;
  }

  .nav-contact-link {
    text-align: center;
    margin-top: 8px;
  }

  .home-intro-section .we-help,
  .home-insights-section .we-help,
  .home-insights-section .insights {
    padding: 80px 32px;
  }

  .home-intro-copy,
  .home-client-panel,
  .home-strategy-panel,
  .home-insights-panel {
    min-height: auto;
  }

  .home-section-title,
  .home-section-title-dark,
  .case-study-title,
  .clients-title,
  .insights-title {
    font-size: 38px;
  }

  .home-section-text,
  .home-section-text-dark,
  .home-hero-subtext,
  .home-cta-text,
  .case-study-description-hero,
  .casestudy-text,
  .insight-body {
    font-size: 17px;
  }

  .home-hero-content {
    padding: 90px 20px 70px;
  }

  .case-study-hero-copy,
  .insight-hero-copy {
    padding: 54px 28px 40px;
  }

  .case-study-paper,
  .insight-paper {
    padding: 36px 28px;
  }

  .case-study-paper-title {
    font-size: 38px;
  }

  .about-hero-copy {
    padding: 60px 24px;
  }

  .bio-letter-card {
    padding: 30px 24px;
  }

  .bio-letter-card p,
  .mission-text {
    font-size: 17px;
  }

  .mission-title {
    font-size: 38px;
  }

  .founder-image {
    width: 240px;
  }
}

@media only screen and (max-width: 575px) {
  .engineerchititle {
    font-size: 46px;
  }

  .contact-section-wrap {
    padding: 48px 16px 72px;
  }

  .contact-form-panel {
    padding: 28px 24px;
  }

  .contact-panel-title {
    font-size: 30px;
  }

  .what-we-do-header {
    padding: 44px 20px;
  }

  .what-we-do-title {
    font-size: 36px;
  }

  .what-we-do-description {
    width: 100%;
    font-size: 16px;
  }

  #navbar-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    padding: 5px;
  }

  .brand-name {
    font-size: 22px;
  }

  .navbar-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-section-title,
  .home-section-title-dark,
  .case-study-title,
  .clients-title,
  .insights-title,
  .case-study-paper-title {
    font-size: 31px;
  }

  .home-intro-section .we-help,
  .home-insights-section .we-help,
  .home-insights-section .insights,
  .home-cta-section {
    padding: 64px 20px;
  }

  .home-hero-subtext,
  .home-section-text,
  .home-section-text-dark,
  .home-cta-text,
  .case-study-description-hero,
  .casestudy-text,
  .insight-body {
    font-size: 16px;
    line-height: 1.85;
  }

  .home-hero-content,
  .case-study-hero-copy,
  .insight-hero-copy {
    padding: 44px 20px 34px;
  }

  .case-study-hero {
    min-height: 70vh;
  }

  .insight-hero {
    min-height: 68vh;
  }

  .case-study-paper,
  .insight-paper {
    padding: 28px 20px;
  }

  .case-study-meta-pill {
    font-size: 12px;
    padding: 9px 14px;
  }

  .insight-card {
    padding: 18px;
  }

  .insight-card h3 {
    font-size: 20px;
  }
}

@media only screen and (max-width: 430px) {
  .what-we-do-title {
    font-size: 36px;
  }

  .engineerchititle {
    font-size: 29px;
  }

  .home-hero-title {
    line-height: 1.18;
  }

  /* On mobile, swap red-background "Purpose" for red-text — no blocky box */
  .purpose-word {
    background-color: transparent;
    color: #ff3333;
    padding: 0;
    border-radius: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  }

  /* Work page */
  .work-details {
    margin: 0 auto !important;
    width: 88% !important;
  }

  .work-title {
    font-size: 28px !important;
  }

  .work-description {
    font-size: 15px;
  }

  /* Services process */
  .phase-card {
    padding: 28px 24px;
  }

  .phase-card-num {
    font-size: 50px;
  }

  .phase-card-title {
    font-size: 28px;
  }

  .process-overview-title {
    font-size: 30px;
  }

  .process-phase-title {
    font-size: 32px;
  }

  .process-phase-num {
    font-size: 42px;
  }

  .process-step {
    padding: 20px 18px;
    gap: 16px;
  }

  .step-icon {
    width: 44px;
    height: 44px;
    font-size: 15px;
    flex-shrink: 0;
  }

  .step-title {
    font-size: 20px;
  }

  .step-desc {
    font-size: 15px;
  }

  .process-cta {
    padding: 70px 20px;
  }

  .process-cta-title {
    font-size: 32px;
  }

  .process-cta-text {
    font-size: 16px;
  }

  /* About */
  .mission-title {
    font-size: 30px;
  }

  .mission-band {
    padding: 70px 0;
  }

  /* Contact */
  .contact-section-wrap {
    padding: 40px 12px 60px;
  }

  .contact-info-panel {
    padding: 32px 0 14px;
  }

  .contact-panel-title {
    font-size: 26px;
  }

  .contact-form-panel {
    padding: 24px 20px;
  }

  /* Home hero */
  .home-hero-content {
    padding: 70px 20px 50px;
  }

  .home-hero-subtext {
    font-size: 16px;
  }

  .home-intro-section .we-help,
  .home-insights-section .we-help,
  .home-insights-section .insights {
    padding: 52px 20px;
  }

  .home-cta-section {
    padding: 70px 20px;
  }

  .get-started-h1 {
    font-size: 34px;
  }

  .section-link-light,
  .section-link-dark {
    font-size: 16px;
  }

  /* Tech / insight cards */
  .tech-grid-section,
  .insights-grid-section {
    padding: 52px 0 70px;
  }

  .tech-card-name,
  .insight-grid-card-title {
    font-size: 19px;
  }

  /* Case study strip */
  .case-study-strip {
    padding: 60px 0 24px;
  }

  .case-study-title {
    font-size: 28px;
  }
}

@media only screen and (max-width: 414px) {
  #main-header {
    background-image: url('../media/pexels-divinetechygirl-1181345.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@media only screen and (max-width: 375px) {
  .what-we-do-title {
    font-size: 35px;
  }

  .engineerchititle {
    font-size: 30px;
  }

  .home-hero-title {
    line-height: 1.2;
  }

  .purpose-word {
    background-color: transparent;
    color: #ff3333;
    padding: 0;
    border-radius: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  }

  .we-help-2 {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../media/ux1.jpg) center center no-repeat scroll;
    background-position: center bottom;
  }

  .we-help-3 {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../media/blogImages/programming-1873854_1920.png) center center no-repeat scroll;
    background-position: center bottom;
  }

  .we-help-4 {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../media/pexels-pixabay-159304\ \(1\).jpg) center center no-repeat scroll;
    background-position: center center;
  }
}

@media only screen and (min-width: 1920px) {
  .what-we-do-title {
    margin: auto;
  }
}

@media (pointer: coarse) and (hover: none) {
  #main-header {
    background-image: url('../media/pexels-divinetechygirl-1181345.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* =========================
   ANNOUNCEMENT BANNER
========================= */

#announcement-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #111;
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  animation: bannerSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes bannerSlideDown {
  to {
    max-height: 80px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

.announcement-text {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

.announcement-tag {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

.announcement-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 8px;
  white-space: nowrap;
  font-weight: 600;
}

.announcement-link:hover {
  color: #ff6666;
}

.announcement-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.2s;
}

.announcement-close:hover {
  color: #fff;
}

@media (max-width: 600px) {
  #announcement-banner {
    padding: 12px 44px 12px 16px;
    justify-content: flex-start;
    text-align: left;
  }

  .announcement-text {
    font-size: 13px;
  }
}
}

/* ── Floating Language Switcher ───────────────────────────── */
/* Note: element is moved to <html> in JS to bypass overflow-x:hidden on body */
#lang-float {
  position: fixed;
  right: 0;
  top: 50vh;
  transform: translateY(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  /* panel is first in DOM (left), tab is second (right) — no row-reverse needed */
}

#lang-float .lang-float__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 8px;
  background: #cc0000;
  color: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  box-shadow: -3px 0 14px rgba(0,0,0,0.22);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  transition: background 0.2s;
  flex-shrink: 0;
}
#lang-float .lang-float__tab:hover { background: #aa0000; }
#lang-float .lang-float__tab i { font-size: 15px; margin-bottom: 3px; }

#lang-float .lang-float__panel {
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  border-radius: 8px 0 0 8px;
  box-shadow: -3px 0 14px rgba(0,0,0,0.13);
}
#lang-float.lang-float--open .lang-float__panel { max-width: 130px; }

#lang-float .lang-float__panel form {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  gap: 6px;
  white-space: nowrap;
}

#lang-float .lang-float__opt {
  padding: 6px 14px;
  border: 1.5px solid #ddd;
  background: #fff;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  color: #444;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
#lang-float .lang-float__opt:hover { background: #f5f5f5; border-color: #bbb; }
#lang-float .lang-float__opt--on { background: #cc0000; color: #fff; border-color: #cc0000; }

/* ═══════════════════════════════════════════
   CIVIC & ENVIRONMENTAL TECHNOLOGY SECTION
═══════════════════════════════════════════ */

.civic-bridge {
  background: #f7f7f5;
  padding: 72px 0;
  border-top: 1px solid #e8e8e4;
  border-bottom: 1px solid #e8e8e4;
}

.civic-bridge-text {
  max-width: 820px;
  font-size: 18px;
  line-height: 1.9;
  color: #444;
  margin: 0;
}

.civic-section {
  background: #fff;
  padding: 96px 0;
}

.civic-section-heading {
  margin-bottom: 64px;
}

.civic-stage-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(34, 120, 80, 0.1);
  color: #1a6645;
  border: 1px solid rgba(34, 120, 80, 0.25);
}

.civic-section-kicker {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
}

.civic-section-title {
  font-family: 'Anton', sans-serif;
  font-size: 48px;
  color: #111;
  margin-bottom: 20px;
  line-height: 1.08;
}

.civic-section-desc {
  font-size: 17px;
  line-height: 1.85;
  color: #555;
  max-width: 680px;
  margin: 0;
}

/* Cards grid */
.civic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

.civic-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 30px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  border-top: 4px solid #e0e0e0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.civic-card:hover {
  border-color: #1a6645;
  border-top-color: #1a6645;
  box-shadow: 0 8px 32px rgba(26, 102, 69, 0.1);
  transform: translateY(-2px);
}

.civic-card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-family: 'Cinzel', serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.badge-pilot-ready {
  background: rgba(34, 120, 80, 0.08);
  color: #1a6645;
  border: 1px solid rgba(34, 120, 80, 0.22);
}

.badge-prototype {
  background: rgba(160, 100, 0, 0.08);
  color: #7a4f00;
  border: 1px solid rgba(160, 100, 0, 0.2);
}

.badge-active-rd {
  background: rgba(0, 70, 150, 0.07);
  color: #004899;
  border: 1px solid rgba(0, 70, 150, 0.18);
}

.badge-in-development {
  background: rgba(90, 90, 90, 0.07);
  color: #555;
  border: 1px solid rgba(90, 90, 90, 0.18);
}

.civic-card-icon {
  font-size: 24px;
  color: #1a6645;
  margin-bottom: 16px;
}

.civic-card-title {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  color: #111;
  margin-bottom: 12px;
}

.civic-card-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 20px;
}

.civic-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.civic-card-list li {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  padding: 4px 0 4px 18px;
  position: relative;
}

.civic-card-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #1a6645;
  font-weight: 700;
}

/* Civic CTA block */
.civic-cta-block {
  background: linear-gradient(135deg, #0d2b1e 0%, #1a4a30 60%, #0d3320 100%);
  border-radius: 16px;
  padding: 64px 48px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.civic-cta-text-group {
  max-width: 560px;
}

.civic-cta-kicker {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: rgba(140, 230, 170, 0.9);
  margin-bottom: 14px;
}

.civic-cta-title {
  font-family: 'Anton', sans-serif;
  font-size: 36px;
  color: white;
  margin-bottom: 14px;
  line-height: 1.1;
}

.civic-cta-desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

.civic-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.civic-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: linear-gradient(135deg, #1a7a4a 0%, #28a660 100%);
  color: white !important;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(26, 102, 69, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.civic-cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 102, 69, 0.45);
  color: white !important;
}

.civic-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 32px;
  background: transparent;
  color: rgba(255,255,255,0.8) !important;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.28);
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.civic-cta-btn-secondary:hover {
  border-color: rgba(255,255,255,0.65);
  color: white !important;
}

/* Responsive: civic section */
@media (max-width: 991px) {
  .civic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .civic-section-title {
    font-size: 36px;
  }

  .civic-cta-block {
    flex-direction: column;
    padding: 48px 28px;
    text-align: center;
    gap: 32px;
  }

  .civic-cta-title {
    font-size: 28px;
  }

  .civic-cta-actions {
    width: 100%;
  }

  .civic-cta-btn-primary,
  .civic-cta-btn-secondary {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .civic-grid {
    grid-template-columns: 1fr;
  }

  .civic-section {
    padding: 64px 0;
  }

  .civic-bridge {
    padding: 52px 0;
  }

  .civic-bridge-text {
    font-size: 16px;
  }
}

/* Mobile position is handled by JS applyPosition() in base.html */

/* ═══════════════════════════════════════════════════════════
   FIRST-LOAD OVERLAY — covers raw HTML paint on cold visits
═══════════════════════════════════════════════════════════ */

#ssc-overlay {
  position: fixed;
  inset: 0;
  background: #0d0d0f;       /* near-black — blends with dark hero */
  z-index: 999998;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.55s ease;
}

#ssc-overlay.ssc-overlay-out {
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════════
   HERO STAGGER FADE — home page only, CSS-only, no JS
═══════════════════════════════════════════════════════════ */

@keyframes sscHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Each direct child starts invisible and fades up in sequence.
   Delays start at 0.45s so the cascade begins as the overlay lifts. */
.ssc-hero-stagger > * {
  opacity: 0;
  animation: sscHeroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ssc-hero-stagger > *:nth-child(1) { animation-delay: 0.45s; }  /* kicker     */
.ssc-hero-stagger > *:nth-child(2) { animation-delay: 0.62s; }  /* h1 title   */
.ssc-hero-stagger > *:nth-child(3) { animation-delay: 0.82s; }  /* subtext    */
.ssc-hero-stagger > *:nth-child(4) { animation-delay: 1.02s; }  /* typewriter */
.ssc-hero-stagger > *:nth-child(5) { animation-delay: 1.18s; }  /* down arrow */

@media (prefers-reduced-motion: reduce) {
  #ssc-overlay { display: none; }
  .ssc-hero-stagger > * {
    opacity: 1;
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS — ssc (site scroll controller)
═══════════════════════════════════════════════════════════ */

/* ── Scroll progress bar ──────────────────────────────────── */
#ssc-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #cc0000 0%, #ff4444 100%);
  z-index: 99999;
  pointer-events: none;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Base state: hidden ───────────────────────────────────── */
.ssc-animate {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.ssc-fade-up    { transform: translateY(38px); }
.ssc-fade-left  { transform: translateX(-46px); }
.ssc-fade-right { transform: translateX(46px); }
.ssc-scale-up   { transform: scale(0.91); }

/* ── Visible state ────────────────────────────────────────── */
.ssc-animate.ssc-visible {
  opacity: 1;
  transform: none;
}

/* ── Stagger: slightly longer duration for later items ─────── */
.ssc-animate[style*="transition-delay: 1"] { transition-duration: 0.75s; }
.ssc-animate[style*="transition-delay: 2"] { transition-duration: 0.8s; }
.ssc-animate[style*="transition-delay: 3"] { transition-duration: 0.85s; }

/* ── Mobile: convert horizontal slides to vertical fades ─────
   Horizontal 46px translate on a narrow screen can overflow or
   look odd when sections stack full-width. Vertical is cleaner. */
@media (max-width: 768px) {
  .ssc-fade-left,
  .ssc-fade-right {
    transform: translateY(30px);
  }
}

/* ── Respect user preference ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ssc-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}