/* =========================================================
   CAJIS Engineering Services — site stylesheet
   ========================================================= */

:root {
  --ink: #0f1216;
  --ink-2: #181d24;
  --ink-3: #242b34;
  --paper: #faf8f4;
  --surface: #ffffff;
  --line: #e6e1d8;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #1d2228;
  --muted: #5c636c;
  --muted-light: rgba(255, 255, 255, .72);

  --brand: #a3180d;
  --brand-600: #8a1409;
  --brand-800: #580b00;
  --brand-50: #fbeeec;
  --sand: #e8d8a6;
  --teal: #2e6d84;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 18, 22, .06), 0 2px 8px rgba(15, 18, 22, .05);
  --shadow: 0 10px 30px -10px rgba(15, 18, 22, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 18, 22, .35);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--white { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--muted-light); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow, .contact-panel .eyebrow { color: var(--sand); }
.h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; }
.h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: var(--muted-light); }
.text-brand { color: var(--brand); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > div { max-width: 640px; }
.section-head .h2 { margin-bottom: 12px; }
.section-head .lead { margin: 0; }
.center { text-align: center; }
.section-head.center { flex-direction: column; align-items: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 1.1em; transition: transform .25s var(--ease); }
.btn:hover i.bi-arrow-right, .btn:hover i.bi-arrow-up-right { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(163, 24, 13, .7); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  height: 68px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 20px; font-weight: 800; letter-spacing: .06em; }
.brand-text small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin-top: 3px; }
.is-scrolled .brand, .is-open .brand { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: block; padding: 10px 14px;
  font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .88);
  transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }
.is-scrolled .nav-link, .is-open .nav-link { color: var(--muted); }
.is-scrolled .nav-link:hover, .is-scrolled .nav-link.is-active,
.is-open .nav-link:hover, .is-open .nav-link.is-active { color: var(--ink); }
.nav-cta { padding: 12px 22px; }
.is-scrolled .nav-cta.btn--ghost, .is-open .nav-cta.btn--ghost { background: var(--brand); border-color: var(--brand); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  color: #fff; font-size: 28px; align-items: center; justify-content: center; border-radius: 10px;
}
.is-scrolled .nav-toggle, .is-open .nav-toggle { color: var(--ink); }

@media (max-width: 960px) {
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 40px; background: #fff;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    overflow-y: auto;
  }
  .is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link, .is-open .nav-link { color: var(--ink); font-size: 20px; font-family: var(--font-head); font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--brand) !important; }
  .nav-cta { width: 100%; padding: 16px; }
  .nav-cta.btn--ghost { background: var(--brand); border-color: var(--brand); color: #fff; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end;
  color: #fff; background: var(--ink); overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 clamp(48px, 8vw, 96px);
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 15, .55) 0%, rgba(10, 12, 15, .15) 35%, rgba(10, 12, 15, .85) 100%),
    linear-gradient(90deg, rgba(10, 12, 15, .7) 0%, rgba(10, 12, 15, 0) 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 820px; }
.hero .h1 { color: #fff; margin-bottom: 24px; }
.hero .h1 span { color: var(--sand); }
.hero .lead { color: rgba(255, 255, 255, .82); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: clamp(48px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--line-dark);
}
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: clamp(28px, 3vw, 38px); font-weight: 800; color: #fff; line-height: 1; }
.hero-stat span { font-size: 13.5px; color: rgba(255, 255, 255, .68); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 34px; height: 4px; border: 0; padding: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255, 255, 255, .3); transition: background .3s, width .3s;
}
.hero-dots button.is-active { background: #fff; width: 54px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; background: var(--ink) center / cover no-repeat;
  padding: calc(var(--header-h) + clamp(64px, 10vw, 120px)) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 15, .9) 0%, rgba(10, 12, 15, .6) 55%, rgba(10, 12, 15, .35) 100%);
}
.page-hero .container { position: relative; }
.page-hero .h1 { color: #fff; font-size: clamp(38px, 5.5vw, 64px); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255, 255, 255, .8); margin: 0; }
.page-hero .eyebrow { color: var(--sand); }
.breadcrumb { display: flex; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .6); margin-top: 28px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: #fff; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--wide-text { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .split, .split--wide-text { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Media frame ---------- */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.media-frame--wide img, .media-frame--wide video { aspect-ratio: 16 / 10; }
.media-stack { position: relative; padding: 0 0 48px 48px; }
.media-stack .media-frame:first-child img { aspect-ratio: 4 / 4.6; }
.media-stack .media-badge {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--brand); color: #fff; padding: 26px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 220px;
}
.media-badge strong { display: block; font-family: var(--font-head); font-size: 44px; line-height: 1; font-weight: 800; }
.media-badge span { font-size: 14px; opacity: .9; }
@media (max-width: 640px) { .media-stack { padding: 0 0 40px 20px; } .media-badge strong { font-size: 34px; } }

/* ---------- Check list ---------- */
.check-list { display: grid; gap: 14px; margin: 28px 0 36px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check-list i {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); font-size: 14px; margin-top: 1px;
}
.check-list.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr; } }
.section--dark .check-list li { color: #fff; }
.section--dark .check-list i { background: rgba(255, 255, 255, .1); color: var(--sand); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 36px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(36px, 4vw, 52px); font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.stat strong em { font-style: normal; color: var(--brand); }
.stat > span { color: var(--muted); font-size: 15px; }
.section--dark .stats, .section--dark .stat { border-color: var(--line-dark); }
.section--dark .stat strong { color: #fff; }
.section--dark .stat > span { color: var(--muted-light); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section--dark .stat:nth-child(-n+2) { border-bottom-color: var(--line-dark); }
}

.stats--2x2 { grid-template-columns: 1fr 1fr; }
.stats--2x2 .stat:nth-child(2n) { border-right: 0; }
.stats--2x2 .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.section--dark .stats--2x2 .stat:nth-child(-n+2) { border-bottom-color: var(--line-dark); }

/* ---------- Service cards ---------- */
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-icon {
  position: absolute; left: 24px; top: -26px; z-index: 2;
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 22px; box-shadow: 0 10px 20px -8px rgba(163, 24, 13, .7);
}
.service-card-body { position: relative; padding: 40px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card-num { position: absolute; top: 16px; right: 18px; z-index: 2; font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .1em; color: #fff; background: rgba(15, 18, 22, .55); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; flex: 1; }
.service-card .link-arrow { margin-top: 8px; font-size: 15px; }

/* Compact icon cards */
.icon-card {
  padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  height: 100%;
}
.icon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); font-size: 24px; margin-bottom: 22px;
}
.icon-card h3 { font-size: 20px; margin-bottom: 10px; }
.icon-card p { color: var(--muted); margin: 0; font-size: 15.5px; overflow-wrap: anywhere; }
.icon-card ul { display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; }
.icon-card ul li { display: flex; gap: 10px; }
.icon-card ul li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 10px; }
.section--dark .icon-card { background: var(--ink-2); border-color: var(--line-dark); }
.section--dark .icon-card p { color: var(--muted-light); }
.section--dark .icon-card .icon { background: rgba(163, 24, 13, .18); color: #ff8a7a; }

/* ---------- Values grid ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 1100px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.value { background: var(--ink); padding: 30px 28px; transition: background .3s; }
.value:hover { background: var(--ink-2); }
.value-num { font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--sand); letter-spacing: .1em; }
.value h3 { font-size: 18px; margin: 14px 0 10px; }
.value p { font-size: 14.5px; margin: 0; color: var(--muted-light); }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.filter-btn span { font-size: 12px; background: var(--paper); color: var(--muted); border-radius: 999px; padding: 2px 8px; }
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-btn.is-active span { background: rgba(255, 255, 255, .15); color: #fff; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(240px, 24vw, 340px); gap: 20px; grid-auto-flow: dense; }
.project-grid--home { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; }
@media (max-width: 1024px) { .project-grid, .project-grid--home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .project-grid, .project-grid--home { grid-template-columns: 1fr; grid-auto-rows: auto; } }

.project-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
  cursor: pointer; isolation: isolate; aspect-ratio: 4 / 5;
  border: 0; padding: 0; text-align: left; color: #fff; width: 100%; display: block;
}
.project-grid:not(.project-grid--home) .project-card { aspect-ratio: auto; height: 100%; }
.project-card.is-wide { grid-column: span 2; }
.project-card.is-tall { grid-row: span 2; }
@media (max-width: 560px) {
  .project-grid:not(.project-grid--home) .project-card { aspect-ratio: 4 / 5; height: auto; }
  .project-card.is-wide, .project-card.is-tall { grid-column: auto; grid-row: auto; }
}
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); z-index: -2; }
.project-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0) 40%, rgba(10, 12, 15, .88) 100%);
  transition: opacity .4s;
}
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.06); }
.project-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.project-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); margin-bottom: 12px;
}
.project-tag.tag-completed { background: rgba(46, 140, 87, .9); }
.project-tag.tag-ongoing { background: rgba(214, 139, 16, .92); }
.project-tag.tag-design { background: rgba(46, 109, 132, .92); }
.project-card-title { display: block; font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; color: #fff; font-size: 19px; line-height: 1.25; margin: 0 0 4px; }
.project-card-text { display: block; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.project-card-play {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--brand); font-size: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease);
}
.project-card-play i { margin-left: 4px; }
.project-card:hover .project-card-play { transform: translate(-50%, -50%) scale(1.1); }
.project-card-zoom {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink);
  opacity: 0; transform: scale(.8); transition: all .3s var(--ease);
}
.project-card:hover .project-card-zoom, .project-card:focus-visible .project-card-zoom { opacity: 1; transform: none; }
.project-card[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(8, 10, 12, .94);
  display: none; align-items: center; justify-content: center; padding: 64px 72px;
}
.lightbox.is-open { display: flex; animation: fadeIn .25s ease; }
.lightbox-stage { max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lightbox-stage img, .lightbox-stage video { max-height: calc(100vh - 180px); max-width: 100%; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); background: #000; }
.lightbox-caption { color: #fff; text-align: center; }
.lightbox-caption strong { display: block; font-family: var(--font-head); font-size: 18px; }
.lightbox-caption span { color: rgba(255, 255, 255, .65); font-size: 14px; }
.lightbox-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; display: grid; place-items: center; transition: background .2s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; top: 30px; left: 24px; color: rgba(255, 255, 255, .6); font-size: 14px; font-weight: 600; letter-spacing: .08em; }
@media (max-width: 640px) {
  .lightbox { padding: 72px 12px 90px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Video feature ---------- */
.video-feature { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-feature video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 28px; height: 100%;
}
.quote-card .bi-quote { font-size: 48px; line-height: 1; color: var(--brand); }
.quote-card blockquote { margin: 0; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink); line-height: 1.6; flex: 1; }
.quote-author { display: flex; align-items: center; gap: 14px; }
.quote-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote-author strong { display: block; font-family: var(--font-head); color: var(--ink); }
.quote-author span { color: var(--muted); font-size: 14px; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px); }
.partners img { height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: all .3s; mix-blend-mode: multiply; }
.partners img:hover { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-800) 0%, var(--brand) 100%);
  color: #fff; padding: clamp(40px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  background: url(../images/cajis-mark-white.png) center / contain no-repeat; opacity: .08;
}
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: 10px; font-size: clamp(26px, 3.2vw, 38px); }
.cta p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 17px; }
.cta .btn--light { background: #fff; color: var(--brand-800); }
.cta .btn--light:hover { background: var(--sand); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(163, 24, 13, .12); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.form-panel { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #e8f5ed; color: #1b6b3d; }
.alert-error { background: var(--brand-50); color: var(--brand-800); }

.contact-list { display: grid; gap: 22px; margin-top: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: var(--sand); font-size: 20px;
}
.contact-item small { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 2px; }
.contact-item a, .contact-item p { color: #fff; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--sand); }
.contact-panel { background: var(--ink); color: var(--muted-light); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); height: 100%; }
.contact-panel h2, .contact-panel h3 { color: #fff; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 440px; border: 0; display: block; filter: grayscale(.3); }

/* ---------- Service detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.prose { font-size: 17px; color: var(--muted); }
.prose p { margin-bottom: 1.3em; }
.prose b, .prose strong { color: var(--ink); }
.prose .media-frame { margin-bottom: 40px; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 24px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.side-card h3 { font-size: 18px; margin-bottom: 14px; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--muted); transition: color .2s, padding .2s; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--brand); padding-left: 4px; }
.side-links a.is-active { color: var(--brand); font-weight: 700; }
.side-card--dark { background: var(--ink); border-color: var(--ink); color: var(--muted-light); }
.side-card--dark h3 { color: #fff; }
.side-card--dark .btn { width: 100%; margin-top: 8px; }
.gallery-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-3 figure { margin: 0; }
.gallery-3 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery-3 figcaption { font-weight: 600; color: var(--ink); margin-top: 10px; font-size: 15px; }
@media (max-width: 640px) { .gallery-3 { grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line-dark); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--sand); letter-spacing: .1em;
}
.step h3 { font-size: 20px; margin: 14px 0 10px; }
.step p { font-size: 15px; margin: 0; }

/* ---------- Big quote ---------- */
.statement { font-family: var(--font-head); font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.35; color: #fff; letter-spacing: -.015em; max-width: 30ch; margin: 0 0 28px; }
.statement-author { color: var(--sand); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .66); padding-top: clamp(64px, 8vw, 96px); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 48px; padding-bottom: 56px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.site-footer .brand { margin-bottom: 20px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; overflow-wrap: anywhere; }
.footer-contact i { color: var(--sand); margin-top: 2px; }
.footer-contact a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); color: #fff; transition: all .25s; }
.socials a:hover { background: var(--brand); border-color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.footer-bottom a:hover { color: #fff; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--brand); color: #fff; font-size: 20px; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
  display: grid; place-items: center;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: opacity .6s ease; transform: none !important; }
}
