/* =============================================================
   Delta Dot AI — Corporate site
   Hand-written CSS. Design language inspired by techmahindra.com
   (bold red accent, generous whitespace, card grids, dark footer).
   No frameworks, no plugin CSS.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --red: #e4002b;
  --red-dark: #b00021;
  --red-soft: #ffe5ea;
  --ink: #16161d;
  --charcoal: #2b2b38;
  --grey: #5c5c6b;
  --grey-light: #8a8a99;
  --line: #e4e4ec;
  --bg: #ffffff;
  --bg-alt: #f5f5f8;
  --bg-dark: #121218;
  --bg-dark-2: #1c1c25;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(20, 20, 40, .06);
  --shadow: 0 14px 40px rgba(20, 20, 40, .12);
  --shadow-lg: 0 30px 70px rgba(20, 20, 40, .18);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Poppins", var(--font);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { color: var(--grey); }
::selection { background: var(--red); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #b9b9c6; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.1rem; margin-top: 16px; }
.lede { font-size: 1.2rem; color: var(--charcoal); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(228, 0, 43, .32); }
.btn:hover svg { transform: translateX(5px); }
.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { box-shadow: 0 16px 30px rgba(20, 20, 40, .3); }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1.5px solid currentColor;
}
.btn--outline:hover { background: var(--ink); color: #fff; box-shadow: none; }
.section--dark .btn--outline { --btn-fg: #fff; }
.section--dark .btn--outline:hover { background: #fff; color: var(--ink); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--red);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.nav__logo img { height: 34px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-family: var(--display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--charcoal);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__item.is-open .nav__link { color: var(--red); }
.nav__link .chev { width: 12px; height: 12px; transition: transform .3s; }
.nav__item.is-open .chev { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: 14px; }

/* Mega menu */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(620px, 86vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .93rem;
  color: var(--charcoal);
  transition: background .2s, color .2s;
}
.mega a:hover { background: var(--bg-alt); color: var(--red); }
.mega a span { display: block; font-size: .8rem; color: var(--grey-light); font-weight: 400; }
.mega a strong { font-weight: 600; font-family: var(--display); }

/* Hamburger */
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 8px; position: relative; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle span { top: 20px; }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(600px, 92vh, 940px); display: flex; align-items: center; color: #fff; overflow: hidden; background: #0a0a12; }
.hero__slides { position: absolute; inset: 0; background: #0a0a12; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity .9s var(--ease);
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 8, 16, .93) 0%, rgba(8, 8, 16, .78) 44%, rgba(8, 8, 16, .48) 100%),
    linear-gradient(0deg, rgba(8, 8, 16, .5), rgba(8, 8, 16, 0) 42%);
}
.hero__slide img,
.hero__slide video { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active video { animation: heroKen 18s linear forwards; }
@keyframes heroKen { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero__inner { position: relative; z-index: 2; max-width: 780px; padding-block: 140px 90px; min-height: 420px; }
.hero__copy { display: none; }
.hero__copy.is-active { display: block; animation: heroCopyIn .8s var(--ease) both; }
@keyframes heroCopyIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__eyebrow {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .8rem;
  color: #fff;
  opacity: .85;
  margin-bottom: 22px;
  display: block;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero__text { font-size: 1.2rem; color: #e9e9f2; max-width: 620px; margin-bottom: 34px; }
.hero .btn--outline { --btn-fg: #fff; }
.hero .btn--outline:hover { background: #fff; color: var(--ink); }
.hero__dots { position: absolute; left: var(--gutter); bottom: 46px; z-index: 3; display: flex; gap: 12px; }
.hero__dot { width: 34px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: background .3s; }
.hero__dot.is-active { background: var(--red); }
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 3;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after { content: ""; width: 1px; height: 40px; background: rgba(255, 255, 255, .5); animation: scrollLine 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0%, 100% { transform: scaleY(.3); opacity: .3; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; color: #fff; padding-block: 170px 80px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, #1a1a28 0%, #2a1420 55%, var(--red-dark) 130%); }
.page-hero__bg { position: absolute; inset: 0; opacity: .28; object-fit: cover; width: 100%; height: 100%; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero p { color: #e6e6f0; font-size: 1.2rem; max-width: 640px; margin-top: 20px; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 26px; font-family: var(--display); }
.crumbs a:hover { color: #fff; }

/* ---------- Promise band ---------- */
.promise { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.promise__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.promise__media img { width: 100%; height: 100%; object-fit: cover; }
.promise h2 span { color: var(--red); }
.promise ul { margin-top: 24px; display: grid; gap: 14px; }
.promise li { display: flex; gap: 12px; color: var(--charcoal); font-weight: 500; }
.promise li svg { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 2px; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; padding: 20px; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--red); line-height: 1; }
.stat__label { margin-top: 10px; font-size: .98rem; color: var(--grey); }
.section--dark .stat__num { color: #fff; }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--red-soft);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; color: var(--red); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }
.card .link-arrow { margin-top: 18px; }

/* Media card (image top) */
.mcard {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mcard__media { aspect-ratio: 16 / 10; overflow: hidden; }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mcard:hover .mcard__media img { transform: scale(1.06); }
.mcard__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start;
  font-family: var(--display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.mcard__body h3 { font-size: 1.2rem; margin-bottom: 12px; }
.mcard__body p { font-size: .95rem; }
.mcard__body .link-arrow { margin-top: auto; padding-top: 18px; }

/* ---------- Industry tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  isolation: isolate;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,15,25,.1), rgba(15,15,25,.85)); transition: background .3s; }
.tile:hover img { transform: scale(1.08); }
.tile:hover::after { background: linear-gradient(180deg, rgba(228,0,43,.25), rgba(15,15,25,.9)); }
.tile span { font-family: var(--display); font-weight: 600; font-size: 1rem; position: relative; z-index: 1; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 76px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: clamp(44px, 7vw, 84px);
  color: #fff;
  isolation: isolate;
}
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(176,0,33,.92), rgba(20,20,32,.78)); }
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: #ffdfe6; max-width: 560px; margin-top: 16px; }
.cta-band .btn { margin-top: 30px; }
.cta-band .btn { --btn-bg:#fff; --btn-fg: var(--red); }

/* Full-width dark CTA (pre-footer) */
.endcta { text-align: center; }
.endcta h2 { max-width: 720px; margin: 0 auto 18px; }
.endcta p { max-width: 560px; margin: 0 auto 32px; }
.endcta__row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Accordion / tabs ---------- */
.tabs__nav { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tabs__btn {
  padding: 14px 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--grey);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.tabs__btn.is-active { color: var(--red); border-color: var(--red); }
.tabs__panel { display: none; animation: fade .4s var(--ease); }
.tabs__panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
}
.accordion__head .pm { flex: none; width: 24px; height: 24px; position: relative; }
.accordion__head .pm::before, .accordion__head .pm::after { content: ""; position: absolute; background: var(--red); border-radius: 2px; transition: transform .3s; }
.accordion__head .pm::before { top: 11px; left: 2px; width: 20px; height: 2px; }
.accordion__head .pm::after { top: 2px; left: 11px; width: 2px; height: 20px; }
.accordion__item.is-open .pm::after { transform: scaleY(0); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.accordion__body p { padding: 0 4px 24px; }

/* ---------- Case study carousel ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 10px; -ms-overflow-style: none; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 clamp(280px, 32%, 400px); }
.carousel__nav { display: flex; gap: 12px; margin-top: 28px; }
.carousel__btn {
  width: 50px; height: 50px; border-radius: 999px;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
.carousel__btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.carousel__btn svg { width: 18px; height: 18px; }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-family: var(--display);
  font-weight: 500;
  font-size: .88rem;
  color: var(--grey);
  transition: all .2s;
}
.chip.is-active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Case study article ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article h2 { margin: 48px 0 16px; }
.article h3 { margin: 32px 0 12px; color: var(--red); }
.article p { margin-bottom: 18px; color: var(--charcoal); }
.article ul.bullets { margin: 0 0 22px; display: grid; gap: 10px; }
.article ul.bullets li { position: relative; padding-left: 26px; color: var(--charcoal); }
.article ul.bullets li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 3px; background: var(--red); }
.article__lead { font-size: 1.25rem; color: var(--ink); border-left: 4px solid var(--red); padding-left: 22px; margin-bottom: 36px; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin: 28px 0; }
.impact { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 24px; }
.impact b { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--red); }
.impact span { font-size: .9rem; color: var(--grey); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-weight: 500; font-size: .88rem; color: var(--charcoal); }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: .98rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}
.field.error input, .field.error select, .field.error textarea { border-color: var(--red); }
.field .msg { font-size: .78rem; color: var(--red); display: none; }
.field.error .msg { display: block; }
.form__note { font-size: .82rem; color: var(--grey-light); }
.form-success {
  display: none;
  padding: 16px 20px;
  background: #e8f7ec;
  border: 1px solid #b6e3c1;
  border-radius: var(--radius-sm);
  color: #1c7a37;
  font-size: .95rem;
}
.form-success.show { display: block; }

/* ---------- Careers list ---------- */
.job {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
}
.job h3 { font-size: 1.2rem; }
.job dl { font-size: .9rem; }
.job dt { color: var(--grey-light); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.job dd { color: var(--charcoal); font-weight: 500; }

/* ---------- Contact info ---------- */
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.info-card h4 { font-family: var(--display); margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.info-card h4 svg { width: 20px; height: 20px; flex: none; color: var(--red); }
.info-card p, .info-card a { font-size: .95rem; color: var(--grey); }
.info-card a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #b9b9c6; padding-block: 72px 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 44px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand img { height: 34px; margin-bottom: 20px; }
.footer__brand p { font-size: .93rem; max-width: 320px; }
.footer__social { display: flex; gap: 12px; margin-top: 22px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, transform .2s;
}
.footer__social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; color: #fff; }
.footer__col h5 { font-family: var(--display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__col a { display: block; padding: 7px 0; font-size: .92rem; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; flex-wrap: wrap; font-size: .84rem; }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a:hover { color: #fff; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 10, 20, .6); backdrop-filter: blur(3px); }
.modal__box {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: pop .35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 999px; background: var(--bg-alt); display: grid; place-items: center; font-size: 1.1rem; }
.modal__close:hover { background: var(--red); color: #fff; }
.modal h3 { margin-bottom: 6px; }
.modal > .modal__box > p { margin-bottom: 24px; font-size: .95rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Fail-safe: if JS is off (no .js on <html>), never hide content */
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav__menu, .nav__actions .btn { display: none; }
  .nav__toggle { display: block; }
  .nav {
    /* mobile drawer */
  }
  .nav__menu {
    position: fixed;
    inset: 78px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px var(--gutter) 60px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  body.nav-open .nav__menu { display: flex; transform: none; }
  body.nav-open { overflow: hidden; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { padding: 18px 4px; font-size: 1.05rem; justify-content: space-between; }
  .mega {
    position: static;
    transform: none;
    width: auto;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 14px;
    display: none;
    grid-template-columns: 1fr;
  }
  .nav__item.is-open .mega { display: grid; transform: none; }
  .hero { min-height: 88vh; }
  .hero__inner { max-width: 100%; padding-block: 120px 96px; }
  .hero__text { font-size: 1.02rem; max-width: 100%; overflow-wrap: break-word; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .promise, .split, .split--flip .split__media { grid-template-columns: 1fr; order: 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .form--2 { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 10px; }
  .info-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .tiles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
