/** @format */

:root {
  --bb-bg: #f7f9fc;
  --bb-bg-soft: #fbfcfe;
  --bb-white: #ffffff;
  --bb-text: #111827;
  --bb-text-soft: #4b5563;
  --bb-border: #d9e2ec;
  --bb-brand: #12b8c8;
  --bb-brand-dark: #0e8fa0;
  --bb-brand-soft: rgba(18, 184, 200, 0.1);
  --bb-accent: #f0b35f;
  --bb-shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
  --bb-shadow-soft: 0 12px 32px rgba(17, 24, 39, 0.05);
  --bb-radius: 22px;
  --bb-radius-sm: 16px;
  --bb-transition: 0.35s ease;
}

/* =========================
  Base
========================= */

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 84px;
  overflow-x: hidden;
  color: var(--bb-text);
  background: var(--bb-bg);
  font-family: "Saira", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  transition: var(--bb-transition);
}

p {
  color: var(--bb-text-soft);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-text,
.eyebrow,
.section-kicker {
  font-family: "Saira Condensed", Arial, sans-serif;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.85rem;
  color: var(--bb-text);
  line-height: 1.05;
}

section {
  scroll-margin-top: 110px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 2000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--bb-text);
  border-radius: 12px;
}

.skip-link:focus {
  top: 16px;
}

/* =========================
  Sections
========================= */

.section-block {
  padding: 110px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(18, 184, 200, 0.04) 0%, rgba(255, 255, 255, 0.58) 100%);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 24px;
}

.section-heading h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.section-kicker,
.eyebrow,
.small-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--bb-brand-dark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================
  Navbar / Bootstrap overrides
========================= */

.navbar-custom {
  z-index: 1030;
  padding: 14px 0;
  background: rgba(247, 249, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.05);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  transition: var(--bb-transition);
}

.navbar-brand {
  min-height: 42px;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  min-width: 42px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.brand-text {
  color: var(--bb-text);
  font-size: 1.45rem;
  font-weight: 600;
}

.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(17, 24, 39, 0.03);
  border-radius: 14px;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  background: rgba(18, 184, 200, 0.08);
}

.navbar-toggler-icon {
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  background-image: none;
  border-top: 2px solid var(--bb-text);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  border-top: 2px solid var(--bb-text);
}

.navbar-toggler-icon::before {
  top: 0.45rem;
}

.navbar-toggler-icon::after {
  top: 0.9rem;
}

.nav-link {
  position: relative;
  color: var(--bb-text);
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.15rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--bb-brand);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--bb-transition);
}

.nav-link:hover,
.nav-link:focus,
.footer-links a:hover,
.footer-links a:focus {
  color: var(--bb-brand-dark);
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1);
}

/* =========================
  Buttons / Forms
========================= */

.btn {
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-brand {
  color: #fff;
  background: var(--bb-brand);
  border: 1px solid var(--bb-brand);
  box-shadow: 0 12px 30px rgba(18, 184, 200, 0.22);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  background: var(--bb-brand-dark);
  border-color: var(--bb-brand-dark);
  transform: translateY(-2px);
}

.btn-outline-brand {
  color: var(--bb-text);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  color: var(--bb-brand-dark);
  background: #fff;
  border-color: var(--bb-brand);
}

.form-control {
  min-height: 56px;
  padding: 0.95rem 1rem;
  color: var(--bb-text);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--bb-border);
  border-radius: 16px;
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.form-control:focus {
  border-color: rgba(18, 184, 200, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(18, 184, 200, 0.14);
}

.form-label {
  margin-bottom: 0.45rem;
  color: var(--bb-text);
  font-weight: 600;
}

.form-note {
  color: var(--bb-text-soft);
  text-align: center;
}

/* =========================
  Hero
========================= */

.hero-section {
  position: relative;
  min-height: calc(100vh - 84px);
  padding: 70px 0 90px;
  background: radial-gradient(circle at top left, rgba(18, 184, 200, 0.12), transparent 32%), radial-gradient(circle at 85% 30%, rgba(240, 179, 95, 0.1), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.hero-title {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.hero-text {
  max-width: 60ch;
  margin-bottom: 1.8rem;
  color: #243041;
  font-size: clamp(1.12rem, 1.4vw, 1.32rem);
  font-weight: 500;
  line-height: 1.75;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 0.9rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  color: var(--bb-text);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 999px;
  font-weight: 600;
}

.hero-points i {
  color: var(--bb-brand-dark);
}

.hero-visual {
  position: relative;
  min-height: 540px;
  isolation: isolate;
}

.hero-logo-mark {
  position: absolute;
  top: 87%;
  right: -26%;
  z-index: 0;
  width: clamp(240px, 32vw, 480px);
  height: auto;
  opacity: 0.08;
  transform: translate3d(0, -50%, 0);
  transform-origin: center;
  pointer-events: none;
  filter: drop-shadow(0 22px 50px rgba(17, 24, 39, 0.08));
}

.hero-shape {
  position: absolute;
  border-radius: 30px;
}

.hero-shape-1 {
  inset: 90px 50px 90px 60px;
  z-index: 0;
  background: linear-gradient(135deg, rgba(18, 184, 200, 0.16), rgba(14, 143, 160, 0.06));
  border: 1px solid rgba(18, 184, 200, 0.16);
  transform: skewX(-18deg);
}

.hero-shape-2 {
  bottom: 10px;
  left: 10px;
  z-index: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(240, 179, 95, 0.26), rgba(240, 179, 95, 0));
}

.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--bb-shadow);
}

.hero-card-main {
  top: 56px;
  right: 10px;
  z-index: 2;
  width: min(100%, 470px);
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.12);
}

.hero-card-header {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.hero-card-header span {
  width: 10px;
  height: 10px;
  background: rgba(17, 24, 39, 0.15);
  border-radius: 50%;
}

.hero-card-body {
  padding: 28px;
}

.hero-card-body h3 {
  font-size: 2rem;
}

.hero-card-body p {
  margin-bottom: 1rem;
}

.hero-card-small {
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  padding: 18px 20px;
  border-radius: 20px;
}

.hero-card-small i {
  color: var(--bb-brand-dark);
  font-size: 1.35rem;
}

.hero-card-small strong {
  display: block;
  color: var(--bb-text);
}

.hero-card-small small {
  color: var(--bb-text-soft);
}

.hero-card-small-top {
  top: 0;
  left: 20px;
}

.hero-card-small-bottom {
  right: 70px;
  bottom: 25px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  color: var(--bb-brand-dark);
  background: var(--bb-brand-soft);
  border-radius: 999px;
  font-weight: 700;
}

.mini-lines span {
  display: block;
  height: 10px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(18, 184, 200, 0.25), rgba(17, 24, 39, 0.08));
  border-radius: 999px;
}

.mini-lines span:nth-child(1) {
  width: 92%;
}

.mini-lines span:nth-child(2) {
  width: 70%;
}

.mini-lines span:nth-child(3) {
  width: 82%;
}

.js-parallax {
  will-change: transform;
}

/* =========================
  Shared cards
========================= */

.service-card,
.method-card,
.project-card,
.contact-card,
.contact-info-card,
.contact-mini-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-soft);
}

.service-card,
.method-card,
.contact-info-card,
.contact-mini-panel {
  padding: 28px;
}

.service-card,
.project-card,
.contact-link-card {
  transition: var(--bb-transition);
}

.service-card:hover,
.project-card:hover,
.contact-link-card:hover,
.contact-link-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.08);
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  color: var(--bb-brand-dark);
  background: var(--bb-brand-soft);
  border-radius: 18px;
  font-size: 1.35rem;
}

.service-card h3,
.method-card h3,
.project-content h3,
.contact-mini-panel h3,
.contact-mini-panel-modern h4 {
  font-size: 1.8rem;
}

.method-number {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--bb-brand-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* =========================
  Projects
========================= */

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.05);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--bb-brand) 0%, rgba(240, 179, 95, 0.7) 100%);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}

.project-card-trigger {
  cursor: pointer;
}

.project-card-trigger:focus-visible {
  outline: 3px solid rgba(18, 184, 200, 0.25);
  outline-offset: 4px;
}

.project-thumb {
  position: relative;
  overflow: hidden;
  height: 220px;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(17, 24, 39, 0.05);
  transition: transform 0.5s ease;
  isolation: isolate;
}

.project-thumb::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  z-index: 2;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.8s ease;
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(18, 184, 200, 0.18), rgba(17, 24, 39, 0.08));
  transition: opacity 0.35s ease;
}

.project-card:hover .project-thumb,
.project-card:focus-visible .project-thumb {
  transform: scale(1.04);
}

.project-card:hover .project-thumb::before,
.project-card:focus-visible .project-thumb::before {
  left: 140%;
}

.project-card:hover .project-thumb::after,
.project-card:focus-visible .project-thumb::after {
  opacity: 0.78;
}

.project-thumb-hover {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.project-thumb-hover span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-weight: 600;
}

.project-card:hover .project-thumb-hover,
.project-card:focus-visible .project-thumb-hover {
  opacity: 1;
  transform: translateY(0);
}

.project-thumb-refonte,
.project-thumb-stock,
.project-thumb-sitemater {
  background-size: cover;
  background-position: center;
}

.project-thumb-refonte {
  background-image: linear-gradient(135deg, rgba(18, 184, 200, 0.08), rgba(17, 24, 39, 0.04)), url("../img/projets/refonte-cover.webp");
}

.project-thumb-stock {
  background-image: linear-gradient(135deg, rgba(18, 184, 200, 0.12), rgba(17, 24, 39, 0.05)), url("../img/projets/stock-dashboard.webp");
}

.project-thumb-sitemater {
  background-image: linear-gradient(135deg, rgba(18, 184, 200, 0.08), rgba(17, 24, 39, 0.05)), url("../img/projets/sitemater-cover.webp");
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
  min-height: 42px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.42rem 0.8rem;
  color: var(--bb-text);
  background: rgba(17, 24, 39, 0.05);
  border: 1px solid rgba(17, 24, 39, 0.04);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-content h3 {
  margin-bottom: 0.9rem;
  font-size: 1.95rem;
  line-height: 1.05;
}

.project-content p {
  flex-grow: 1;
  margin-bottom: 0;
  color: #435063;
  line-height: 1.75;
}

/* =========================
  About
========================= */

.about-text {
  font-size: 1.12rem;
  line-height: 1.85;
}

/* =========================
  Contact
========================= */

.contact-card {
  padding: 34px;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-panel {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 253, 0.92) 100%);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--bb-radius);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.06);
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--bb-brand) 0%, rgba(240, 179, 95, 0.7) 100%);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}

.contact-panel h3 {
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

.contact-panel-text {
  margin-bottom: 1.5rem;
  color: #3f4b5d;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: var(--bb-text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.04);
}

.contact-link-card:hover,
.contact-link-card:focus {
  color: var(--bb-text);
  border-color: rgba(18, 184, 200, 0.28);
}

.contact-link-mail,
.social-links-row {
  margin-bottom: 14px;
}

.contact-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  color: var(--bb-brand-dark);
  background: linear-gradient(135deg, rgba(18, 184, 200, 0.16), rgba(18, 184, 200, 0.06));
  border-radius: 16px;
  font-size: 1.25rem;
}

.contact-link-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-link-content small {
  margin-bottom: 0.2rem;
  color: var(--bb-brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-link-content strong {
  color: var(--bb-text);
  font-size: 1.08rem;
  line-height: 1.25;
  word-break: break-word;
}

.contact-link-arrow {
  margin-left: auto;
  color: var(--bb-brand-dark);
  font-size: 1.05rem;
}

.contact-mini-panel-modern {
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(18, 184, 200, 0.03) 0%, rgba(255, 255, 255, 0.82) 100%);
  border: 1px solid rgba(18, 184, 200, 0.1);
  box-shadow: none;
}

.contact-mini-panel-modern ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: #435063;
}

.contact-mini-panel-modern ul li:last-child {
  margin-bottom: 0;
}

.contact-mini-panel-modern i {
  margin-top: 0.18rem;
  color: var(--bb-brand-dark);
  font-size: 1rem;
}

/* =========================
  Footer
========================= */

.site-footer {
  padding: 28px 0 40px;
  background: #fff;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.site-footer p,
.site-footer a {
  color: var(--bb-text-soft);
}

/* =========================
  Animations / Utilities
========================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--bb-brand);
  border: none;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(18, 184, 200, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--bb-transition);
  font-size: 1.2rem;
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--bb-brand-dark);
  transform: translateY(-2px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================
  Modales projet
========================= */

.project-modal .modal-dialog {
  max-width: min(1120px, calc(100% - 1.5rem));
}

.project-modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

.project-modal .modal-header {
  position: relative;
  justify-content: center;
  padding: 28px 80px 20px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  text-align: center;
}

.project-modal-header-content {
  width: 100%;
}

.project-modal-header-content .small-label {
  margin-bottom: 0.7rem;
}

.project-modal .modal-title {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1;
}

.project-modal .btn-close {
  position: absolute;
  top: 22px;
  right: 22px;
  margin: 0;
  opacity: 0.65;
}

.project-modal .btn-close:hover,
.project-modal .btn-close:focus {
  opacity: 1;
}

.project-modal .modal-body {
  padding: 26px 30px 30px;
}

/* =========================
  Galerie projet
========================= */

.project-modal-gallery {
  margin: 0 0 28px;
}

.project-shot {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  cursor: zoom-in;
  transition: transform var(--bb-transition), box-shadow var(--bb-transition);
  text-align: left;
  appearance: none;
  font: inherit;
}

.project-shot:hover,
.project-shot:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}

.project-shot:focus-visible {
  outline: 3px solid rgba(18, 184, 200, 0.22);
  outline-offset: 4px;
}

.project-shot img {
  width: 100%;
  height: auto;
  transition: transform 0.45s ease;
}

.project-shot:hover img,
.project-shot:focus-visible img {
  transform: scale(1.02);
}

.project-shot-main img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.project-shot-secondary img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.project-shot-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.project-shot:hover .project-shot-zoom,
.project-shot:focus-visible .project-shot-zoom {
  opacity: 1;
  transform: scale(1);
}

.project-modal-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-copy-card {
  padding: 22px 22px 20px;
  background: rgba(247, 249, 252, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 22px;
}

.project-copy-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.5rem;
}

.project-copy-card p {
  margin-bottom: 0;
  color: #435063;
  line-height: 1.75;
}

.project-copy-card p + p {
  margin-top: 0.85rem;
}

/* =========================
  Lightbox
========================= */

.lightbox-modal .modal-dialog {
  width: calc(100% - 1rem);
  max-width: min(1320px, calc(100% - 1rem));
  transition: width 0.25s ease, max-width 0.25s ease;
}

.lightbox-modal .modal-dialog.is-fullsize-dialog {
  width: calc(100vw - 1rem);
  max-width: calc(100vw - 1rem);
}

.lightbox-modal .modal-content {
  position: relative;
  border: none;
  border-radius: 24px;
  background: rgba(12, 18, 28, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.85;
}

.lightbox-body {
  overflow: auto;
  max-height: 86vh;
  padding: 28px 28px 22px;
}

.lightbox-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.lightbox-toggle-size {
  position: relative;
  z-index: 2;
}

.lightbox-body img {
  width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 16px;
  transition: none;
}

.lightbox-body.is-fullsize {
  text-align: left;
}

.lightbox-body.is-fullsize img {
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0;
}

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 0.98rem;
}

/* =========================
  Responsive
========================= */

@media (max-width: 991.98px) {
  body {
    padding-top: 78px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 50px;
  }

  .hero-title {
    max-width: none;
  }

  .hero-visual {
    min-height: 460px;
  }

  .hero-logo-mark {
    top: 76%;
    right: 0;
    width: clamp(220px, 52vw, 320px);
    opacity: 0.1;
  }

  .hero-card-main {
    right: 0;
  }

  .hero-card-small-top {
    left: 0;
  }

  .hero-card-small-bottom {
    right: 20px;
  }

  .navbar-custom {
    padding: 12px 0;
  }

  .navbar-brand {
    gap: 0.7rem !important;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .navbar-collapse {
    max-height: calc(100vh - 110px);
    margin-top: 1rem;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  }

  .navbar-nav {
    gap: 0.35rem !important;
    align-items: stretch !important;
  }

  .navbar-nav .nav-link {
    display: block;
    padding: 0.95rem 1rem;
    background: rgba(17, 24, 39, 0.03);
    border-radius: 16px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    color: var(--bb-brand-dark);
    background: rgba(18, 184, 200, 0.08);
  }

  .nav-item-cta {
    margin-top: 0.35rem;
  }

  .nav-item-cta .btn {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    justify-content: center;
  }

  .mobile-intro-card {
    padding: 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow-soft);
  }

  .mobile-intro-card .section-kicker {
    display: inline-block;
    width: 100%;
    text-align: center;
  }

  .mobile-intro-card h2,
  .mobile-intro-card p,
  .mobile-intro-card .about-text {
    text-align: center;
  }

  .mobile-intro-card .btn {
    width: 100%;
    max-width: 320px;
  }

  .project-modal .modal-dialog {
    max-width: calc(100% - 1rem);
  }

  .project-modal-copy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .section-block {
    padding: 82px 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-points li {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-logo-mark {
    top: 42%;
    right: 50%;
    width: 240px;
    opacity: 0.09;
    transform: translateX(50%);
  }

  .hero-card-main {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 60px;
  }

  .hero-card-small {
    position: relative;
    inset: auto;
    min-width: 100%;
    margin-top: 16px;
  }

  .hero-shape-1 {
    inset: 40px 0 120px;
    transform: skewX(-12deg);
  }

  .contact-card,
  .contact-panel {
    padding: 24px;
  }

  .contact-panel h3 {
    font-size: 1.7rem;
  }

  .contact-link-card {
    padding: 16px;
  }

  .contact-link-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
  }

  .contact-link-content strong {
    font-size: 1rem;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .brand-text {
    font-size: 1.25rem;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .mobile-intro-card {
    padding: 22px;
  }

  .mobile-intro-card h2 {
    font-size: clamp(2rem, 7vw, 2.4rem);
  }

  .mobile-intro-card p,
  .mobile-intro-card .about-text {
    font-size: 1rem;
  }

  .project-content h3 {
    min-height: auto;
  }

  .project-modal .modal-header {
    padding: 24px 58px 16px;
  }

  .project-modal .modal-body {
    padding: 20px 20px 22px;
  }

  .project-modal .modal-title {
    font-size: clamp(1.9rem, 8vw, 2.35rem);
  }

  .project-modal-gallery {
    margin-bottom: 22px;
  }

  .project-copy-card {
    padding: 18px;
    border-radius: 18px;
  }

  .project-copy-card h3 {
    font-size: 1.3rem;
  }

  .lightbox-body {
    padding: 18px 18px 16px;
  }

  .lightbox-toolbar {
    margin-bottom: 12px;
  }

  .lightbox-toggle-size {
    width: 100%;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .js-parallax,
  .hero-logo-mark {
    transform: none !important;
  }
}
