/* ============================================================
   YOOREED INDUSTRIE — Premium Industrial Landing Page
   Palette: industrial red / charcoal black / white / light gray
   ============================================================ */

:root {
  --red:        #E0141E;
  --red-dark:   #A90E16;
  --red-glow:   rgba(224, 20, 30, .35);
  --steel:      #1D5FA3;
  --steel-dark: #164A80;
  --steel-glow: rgba(29, 95, 163, .28);
  --black:      #0B0D10;
  --charcoal:   #14171C;
  --charcoal-2: #1B1F26;
  --ink:        #171B21;
  --slate:      #5B6572;
  --gray:       #F5F6F8;
  --gray-2:     #EAECF0;
  --metallic:   #C3C9D1;
  --line:       #E4E7EB;
  --white:      #FFFFFF;
  --font-head:  'Archivo', 'Segoe UI', sans-serif;
  --font-body:  'Inter', 'Segoe UI', sans-serif;
  --shadow-sm:  0 1px 2px rgba(12, 14, 17, .04), 0 6px 18px rgba(12, 14, 17, .06);
  --shadow-md:  0 4px 10px rgba(12, 14, 17, .05), 0 18px 44px rgba(12, 14, 17, .12);
  --shadow-lg:  0 30px 70px rgba(12, 14, 17, .18);
  --radius:     16px;
  --header-h:   84px;
  --ease:       cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--white); }

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, p, li, span { overflow-wrap: break-word; }

.container {
  width: min(1320px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: 110px 0; }

/* ---------- Typography helpers ---------- */
.red { color: var(--red); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.eyebrow-line { width: 52px; height: 2px; background: var(--red); border-radius: 2px; }
.eyebrow-light { color: #FF5A61; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
}
.title-light { color: var(--white); }

.section-text {
  color: var(--slate);
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 46ch;
  margin-top: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .01em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }

.btn-red {
  background: linear-gradient(135deg, #F0202A 0%, var(--red) 45%, var(--red-dark) 100%);
  color: var(--white);
  box-shadow: 0 10px 26px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 18px 38px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }

.btn-lg { padding: 18px 36px; font-size: 15px; }

.btn-ghost {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .32);
  color: var(--white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn-ghost .ico { width: 16px; height: 16px; }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 30px rgba(12, 14, 17, .07);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand { flex-shrink: 0; }
.brand-logo { height: 58px; width: auto; }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 4px; }

.nav-link {
  position: relative;
  display: block;
  padding: 10px 15px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), #FF5A61);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--red); }
.nav-link.active { color: var(--red); }
.nav-link.active::after { transform: scaleX(1); }

.header-cta { padding: 13px 26px; font-size: 14px; }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--black); }

.hero-split {
  display: grid;
  grid-template-columns: minmax(480px, 44%) 1fr;
  height: calc(100vh - var(--header-h));
  max-height: 860px;
  min-height: 640px;
}
.hero-split > * { min-width: 0; }

/* --- Left dark panel --- */
.hero-dark {
  position: relative;
  background:
    radial-gradient(1100px 640px at -12% 118%, rgba(224, 20, 30, .18), transparent 56%),
    radial-gradient(700px 420px at 108% -10%, rgba(224, 20, 30, .07), transparent 60%),
    linear-gradient(155deg, #15181E 0%, var(--black) 72%);
  display: flex;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 90px) 100%, 0 100%);
  padding: 72px 150px 72px 0;
  z-index: 2;
}

/* technical grid pattern */
.hero-dark-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(115deg, rgba(0,0,0,.9), transparent 65%);
  -webkit-mask-image: linear-gradient(115deg, rgba(0,0,0,.9), transparent 65%);
  pointer-events: none;
}

.hero-dark-content {
  position: relative;
  padding-left: max(48px, calc((100vw - 1320px) / 2));
  width: 100%;
}

.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 30px;
  white-space: nowrap;
}
.hero-kicker .sep {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red), 0 0 4px var(--red);
}

.hero-brand {
  font-family: var(--font-head);
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.03;
  background: linear-gradient(180deg, #FFFFFF 30%, #C9CDD4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}
.hero-brand .red {
  background: linear-gradient(180deg, #FF4049 10%, var(--red) 55%, #B60F17 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.01em;
  color: #F2F3F5;
  max-width: 23ch;
  margin-bottom: 18px;
}

.hero-text {
  color: #A3AAB4;
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 50ch;
  margin-bottom: 40px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* --- Right visual --- */
.hero-visual { position: relative; overflow: hidden; }

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 40%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 13, 16, .6) 0%, rgba(11, 13, 16, .1) 42%, transparent 60%),
    linear-gradient(0deg, rgba(11, 13, 16, .48) 0%, transparent 36%);
}

/* red diagonal connectors between dark panel and image */
.hero-diag {
  position: absolute;
  top: -12%;
  height: 124%;
  pointer-events: none;
  z-index: 3;
}
.diag-1 {
  left: -70px;
  width: 9px;
  background: linear-gradient(180deg, #FF3B44, var(--red) 45%, var(--red-dark));
  transform: skewX(-11deg);
  box-shadow: 0 0 38px var(--red-glow);
}
.diag-2 {
  left: -40px;
  width: 3px;
  background: rgba(255, 255, 255, .3);
  transform: skewX(-11deg);
}

/* glassmorphism panel */
.hero-panel {
  position: absolute;
  z-index: 4;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  width: min(330px, 78%);
  padding: 10px 28px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03) 40%), rgba(13, 15, 19, .5);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .12);
  display: grid;
}
.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 45%;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--red), rgba(224, 20, 30, 0));
}

.panel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  line-height: 1.3;
}
.panel-item + .panel-item { border-top: 1px solid rgba(255, 255, 255, .1); }

.panel-ico {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(224, 20, 30, .28), rgba(224, 20, 30, .1));
  border: 1px solid rgba(224, 20, 30, .42);
  color: #FF565E;
  box-shadow: 0 0 20px rgba(224, 20, 30, .25), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.panel-ico svg { width: 23px; height: 23px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--white); position: relative; }
.services.section { padding-top: 150px; }

.services-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) repeat(5, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.services-grid > * { min-width: 0; }

.services-intro { padding-top: 8px; }
.services-intro .section-text { font-size: 15.5px; }
.services-intro .btn { margin-top: 32px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  right: 22px;
  height: 2.5px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--steel), #4D8AD1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 95, 163, .22);
}
.card:hover::before { transform: scaleX(1); }

.card-media {
  border-radius: 11px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  margin-bottom: 22px;
  background: var(--gray-2);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.08); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(29, 95, 163, .12), rgba(29, 95, 163, .05));
  border: 1px solid rgba(29, 95, 163, .24);
  color: var(--steel);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.card-ico svg { width: 24px; height: 24px; }
.card:hover .card-ico {
  background: linear-gradient(135deg, #2C74C4, var(--steel-dark));
  color: var(--white);
  box-shadow: 0 8px 20px var(--steel-glow);
}

.card-num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px #E3E7EC;
  letter-spacing: .04em;
  transition: -webkit-text-stroke .35s var(--ease);
}
.card:hover .card-num { -webkit-text-stroke: 1px rgba(29, 95, 163, .5); }

.card-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #10141A;
  margin-bottom: 9px;
  overflow-wrap: normal;
  transition: color .3s var(--ease);
}
.card:hover .card-title { color: var(--steel); }

.card-text { font-size: 13.8px; line-height: 1.68; color: #5D6774; flex-grow: 1; margin-bottom: 20px; }

.card-arrow {
  margin-top: auto;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2C74C4, var(--steel-dark));
  color: var(--white);
  box-shadow: 0 6px 16px var(--steel-glow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
}
.card-arrow svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.card-arrow:hover {
  transform: scale(1.1);
  filter: brightness(1.12);
  box-shadow: 0 10px 24px var(--steel-glow);
}
.card-arrow:hover svg { transform: translateX(2px); }

/* ============================================================
   WHY / INNOVATION (dark)
   ============================================================ */
.why { background: var(--black); position: relative; overflow: hidden; }

.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
.why::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 520px at 88% 18%, rgba(224, 20, 30, .1), transparent 60%);
  pointer-events: none;
}

.why-split {
  display: grid;
  grid-template-columns: 44% 1fr;
  min-height: 580px;
}
.why-split > * { min-width: 0; }

.why-media { position: relative; overflow: hidden; }

.why-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05) brightness(1.02) sepia(.1);
}

/* red diagonal separator */
.why-diag {
  position: absolute;
  top: -5%;
  right: -46px;
  height: 110%;
  width: 92px;
  background: linear-gradient(200deg, #FF3B44 0%, var(--red) 40%, var(--red-dark) 95%);
  transform: skewX(-10deg);
  box-shadow: -22px 0 70px var(--red-glow);
  z-index: 2;
}

.why-content {
  position: relative;
  z-index: 1;
  padding: 100px clamp(40px, 6vw, 100px) 100px clamp(56px, 5vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-content .section-title { max-width: 21ch; margin-bottom: 58px; }

.why-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.feature {
  position: relative;
  padding-top: 24px;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), rgba(224, 20, 30, .15));
}
.feature-ico {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(224, 20, 30, .09);
  border: 1px solid rgba(224, 20, 30, .28);
  color: #FF565E;
  filter: drop-shadow(0 0 14px rgba(224, 20, 30, .35));
  margin-bottom: 18px;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.feature:hover .feature-ico { background: rgba(224, 20, 30, .18); transform: translateY(-3px); }
.feature-ico svg { width: 26px; height: 26px; }

.feature h3 {
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--white);
  margin-bottom: 7px;
  transition: color .3s var(--ease);
}
.feature:hover h3 { color: #FF6A71; }
.feature p { font-size: 14px; color: #A4ABB6; line-height: 1.55; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--gray); }

.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.projects-head .section-title { max-width: 26ch; }
.projects-head .btn { margin-bottom: 6px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.projects-grid > * { min-width: 0; }

.project {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(29, 95, 163, .2); }

.project-media {
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  position: relative;
  background: var(--gray-2);
}
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 13, 16, .38), transparent 48%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.project:hover .project-media::after { opacity: 1; }
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.project:hover .project-media img { transform: scale(1.08); }

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
}

.project-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(29, 95, 163, .07);
  border: 1px solid rgba(29, 95, 163, .18);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.project-cat::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: 0 0 6px rgba(29, 95, 163, .65);
  flex-shrink: 0;
}

.project-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #10141A;
  line-height: 1.3;
  transition: color .3s var(--ease);
}
.project:hover .project-title { color: var(--steel); }

.project-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  color: var(--steel);
  background: rgba(29, 95, 163, .08);
  border-radius: 50%;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.project-arrow svg { width: 17px; height: 17px; }
.project:hover .project-arrow {
  background: linear-gradient(135deg, #2C74C4, var(--steel-dark));
  color: var(--white);
  transform: translateX(3px);
  box-shadow: 0 6px 16px var(--steel-glow);
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 140px 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .45;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 50% 125%, rgba(224, 20, 30, .32), transparent 60%),
    linear-gradient(180deg, rgba(11, 13, 16, .93) 0%, rgba(11, 13, 16, .8) 55%, rgba(11, 13, 16, .95) 100%);
}

.cta-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(720px 420px at 50% 50%, rgba(0,0,0,.7), transparent 75%);
  -webkit-mask-image: radial-gradient(720px 420px at 50% 50%, rgba(0,0,0,.7), transparent 75%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #FF5A61;
  margin-bottom: 24px;
}
.cta-eyebrow::before,
.cta-eyebrow::after {
  content: "";
  width: 36px; height: 1.5px;
  background: linear-gradient(90deg, rgba(224, 20, 30, 0), var(--red));
}
.cta-eyebrow::after { background: linear-gradient(90deg, var(--red), rgba(224, 20, 30, 0)); }

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--white);
  max-width: 21ch;
  margin-bottom: 22px;
}

.cta-text { color: #B3BAC4; font-size: 17px; line-height: 1.7; max-width: 60ch; margin-bottom: 44px; }

.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--white); border-top: 1px solid var(--line); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding: 76px 0 60px;
}

.footer-logo { height: 70px; width: auto; margin-bottom: 22px; }

.footer-tagline {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  max-width: 26ch;
  margin-bottom: 28px;
}

.footer-social { display: flex; gap: 12px; }

.social {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gray);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease),
              transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.social svg { width: 18px; height: 18px; }
.social:hover {
  background: linear-gradient(135deg, #F0202A, var(--red-dark));
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px var(--red-glow);
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), #FF5A61);
}

.footer-col ul { display: grid; gap: 13px; }

.footer-col ul a {
  font-size: 14.5px;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer-col ul a:hover { color: var(--red); transform: translateX(3px); }
.footer-col ul a .ico { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; }

.footer-addr {
  font-size: 14.5px;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-addr .ico { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; }

.footer-cta { margin-top: 28px; padding: 13px 26px; font-size: 14px; }

.footer-bottom { border-top: 1px solid var(--line); background: var(--gray); }

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 13.5px;
  color: var(--slate);
}

.footer-motto { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-family: var(--font-head); font-weight: 600; }
.footer-motto i { color: var(--red); font-style: normal; font-size: 9px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal[data-delay="1"] { --d: 1; }
.reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; }
.reveal[data-delay="4"] { --d: 4; }
.reveal[data-delay="5"] { --d: 5; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ----- Laptop: 6-across cards are too squeezed (~170px) -----
   Switch early to 3-across + fix hero squeeze on short screens */
@media (max-width: 1500px) {
  .container { width: min(1200px, 100% - 48px); }
  .section { padding: 88px 0; }
  .services.section { padding-top: 120px; }

  /* Header: prevent nav overflow on 1280-1440px */
  .header-inner { gap: 20px; }
  .main-nav ul { gap: 0; }
  .nav-link { padding: 10px 11px; font-size: 14px; }
  .header-cta { padding: 12px 20px; white-space: nowrap; }
  .brand-logo { height: 52px; }

  /* Hero: content column was only ~400px wide (150px right padding),
     kicker nowrap overflowed, buttons wrapped and overflowed fixed height */
  .hero-split {
    grid-template-columns: minmax(420px, 44%) 1fr;
    height: auto;
    min-height: calc(100vh - var(--header-h));
    max-height: none;
  }
  .hero-dark { padding: 64px 64px 64px 0; }
  .hero-dark-content { padding-left: max(32px, calc((100vw - 1200px) / 2)); }
  .hero-kicker { white-space: normal; font-size: 11.5px; letter-spacing: .18em; }
  .hero-brand { font-size: clamp(32px, 3.4vw, 50px); margin-bottom: 22px; }
  .hero-title { font-size: clamp(19px, 1.7vw, 23px); max-width: 26ch; }
  .hero-text { font-size: 15px; margin-bottom: 32px; }
  .btn-lg { padding: 16px 28px; font-size: 14.5px; }
  .hero-actions { gap: 12px; }
  .hero-visual { min-height: 560px; }
  .hero-panel { left: 5%; width: min(300px, 72%); padding: 8px 24px; }
  .panel-item { padding: 14px 0; font-size: 14px; }

  /* Services: intro full-width on top, cards 3 per row = ~380px each */
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .services-intro { grid-column: 1 / -1; max-width: 720px; margin-bottom: 10px; padding-top: 0; }
  .services-intro .section-text { max-width: 62ch; }
  .services-intro .btn { margin-top: 24px; }
  .card-title { font-size: 17px; }
  .card-text { font-size: 14px; }
}

/* Laptop small / landscape: 2 rows of cards stay roomy, hero stacks gracefully */
@media (max-width: 1400px) {
  .hero-dark { padding-right: 56px; }
}

@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-intro {
    grid-column: 1 / -1;
    max-width: 640px;
    margin-bottom: 16px;
  }
  .hero-panel { left: 4%; }

  .why-features { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .why-content .section-title { margin-bottom: 46px; }

  .header-cta { padding: 12px 20px; font-size: 13.5px; }
  .brand-logo { height: 52px; }
}

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    max-height: none;
    height: auto;
    min-height: 0;
  }
  .hero-dark {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%);
    padding: 84px 0 96px;
  }
  .hero-dark-content {
    padding-left: max(24px, calc((100vw - 1320px) / 2));
    padding-right: 24px;
  }
  .hero-visual { min-height: 520px; }
  .hero-panel { top: auto; bottom: 40px; transform: none; }

  .why-split { grid-template-columns: 1fr; }
  .why-media { min-height: 380px; }
  .why-diag {
    top: auto;
    bottom: -40px;
    right: -6%;
    height: 92px;
    width: 112%;
    transform: skewY(-4deg);
  }
  .why-content { padding: 76px 24px 100px; }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-head { flex-direction: column; align-items: flex-start; }

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

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 18px 24px 26px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .nav-link { padding: 13px 10px; font-size: 16px; }
  .nav-link::after { left: 10px; right: auto; width: 34px; bottom: 6px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 760px) {
  .section { padding: 78px 0; }
  .services.section { padding-top: 100px; }
  .services-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; }
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-brand { font-size: clamp(30px, 9vw, 38px); }
  .hero-kicker { letter-spacing: .18em; font-size: 11px; white-space: normal; }
  .hero-actions .btn { width: 100%; }
  .hero-panel { position: relative; left: 0; bottom: 0; transform: none; width: auto; max-width: none; margin: 330px 24px 36px; }
  .hero-visual { min-height: 460px; }
  .why-features { grid-template-columns: minmax(0, 1fr); }
  .why-content .section-title { margin-bottom: 42px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 42px; padding: 58px 0 46px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .cta { padding: 100px 0; }
  .cta-text { font-size: 15.5px; }
  .brand-logo { height: 46px; }
  .projects-head .btn { margin-bottom: 0; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 36px); }
  .hero-dark-content { padding-left: 18px; padding-right: 18px; }
  .hero-panel { margin-inline: 18px; }
  .hero-brand { font-size: 28px; }
  .btn-lg { padding: 16px 26px; font-size: 14px; }
}
