/*
Theme Name: TopDraw Engineering V3
Theme URI: https://topdrawengineering.com/
Author: TopDraw Engineering
Description: Professional B2B showcase theme for Advance Steel, metal fabrication drawings and timber structures. Designed for European engineering subcontracting.
Version: 3.5.1
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: topdraw
*/

:root {
  --td-blue: #134263;
  --td-blue-2: #0e3550;
  --td-light: #f8f9f9;
  --td-white: #fff;
  --td-ink: #102333;
  --td-muted: #607180;
  --td-line: #dce4e9;
  --td-accent: #dcebf4;
  --td-shadow: 0 18px 55px rgba(19, 66, 99, .10);
  --td-radius: 18px;
  --td-container: 1180px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--td-light);
  color: var(--td-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
textarea,
select {
  font: inherit
}

.container {
  width: min(calc(100% - 40px), var(--td-container));
  margin-inline: auto
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 249, 249, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19, 66, 99, .09)
}

.admin-bar .site-header {
  top: 32px
}

.topbar {
  background: var(--td-blue);
  color: #fff;
  font-size: 11px;
  line-height: 1
}

.topbar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.topbar-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72)
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 14px
}

.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .92);
  font-weight: 650;
  transition: color .2s ease
}

.topbar-contact a:hover {
  color: #fff
}

.topbar-icon {
  font-size: 12px;
  line-height: 1
}

.topbar-separator {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .25)
}

.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px
}

.brand {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--td-blue);
  justify-self: start;
  min-width: 0
}

.brand-logo .custom-logo {
  max-height: 58px;
  width: auto
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 2px solid var(--td-blue);
  display: grid;
  place-items: center;
  position: relative
}

.brand-mark:before,
.brand-mark:after {
  content: "";
  position: absolute;
  background: var(--td-blue)
}

.brand-mark:before {
  width: 18px;
  height: 2px
}

.brand-mark:after {
  height: 18px;
  width: 2px
}

.brand-name {
  font-size: 18px
}

.primary-nav {
  grid-column: 2;
  justify-self: center;
  min-width: 0
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0
}

.primary-nav a {
  font-size: 14px;
  font-weight: 650;
  color: #314a5c;
  position: relative;
  padding: 28px 0;
  white-space: nowrap
}

.primary-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: var(--td-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease
}

.primary-nav a:hover,
.primary-nav .current-menu-item>a {
  color: var(--td-blue)
}

.primary-nav a:hover:after,
.primary-nav .current-menu-item>a:after {
  transform: scaleX(1)
}

.menu-toggle {
  grid-column: 3;
  display: none;
  border: 0;
  background: none;
  color: var(--td-blue);
  font-size: 25px
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--td-blue) url('assets/images/hero-structure.svg') 72% center/cover no-repeat;
  color: #fff;
  padding: 100px 0 92px
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 22, 36, .94) 0%, rgba(5, 28, 44, .78) 28%, rgba(6, 30, 47, .34) 58%, rgba(6, 30, 47, .16) 100%), linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
  pointer-events: none
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 70px;
  align-items: center
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 20px
}

.eyebrow:before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor
}

.hero h1 {
  font-size: clamp(42px, 5.4vw, 70px);
  line-height: 1.01;
  letter-spacing: -.045em;
  text-transform: uppercase;
  margin: 0 0 24px;
  max-width: 680px;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .16)
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
  max-width: 670px;
  margin: 0 0 32px
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 21px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
  transition: .2s ease
}

.btn-primary {
  background: #fff;
  color: var(--td-blue)
}

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

.btn-outline {
  border-color: rgba(255, 255, 255, .4);
  color: #fff
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .08)
}

.hero-card {
  background: #fff;
  color: var(--td-ink);
  padding: 12px;
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .22)
}

.hero-card-inner {
  border: 1px solid var(--td-line);
  border-radius: 15px;
  padding: 28px
}

.hero-card-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--td-muted);
  font-weight: 800
}

.hero-card h3 {
  font-size: 25px;
  line-height: 1.2;
  margin: 9px 0 20px;
  color: var(--td-blue)
}

.deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.deliverable {
  border: 1px solid var(--td-line);
  padding: 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700
}

.section {
  padding: 92px 0
}

.section.alt {
  background: #fff
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 42px
}

.section-head h2 {
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0;
  color: var(--td-blue)
}

.section-head p {
  max-width: 580px;
  margin: 0;
  color: var(--td-muted)
}

.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--td-line);
  border-top: 1px solid var(--td-line);
  padding: 24px 0
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px
}

.trust-item {
  padding: 8px 16px;
  text-align: center;
  border-right: 1px solid var(--td-line);
  font-size: 12px;
  font-weight: 800;
  color: #526675;
  text-transform: uppercase;
  letter-spacing: .08em
}

.trust-item:last-child {
  border-right: 0
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.service-card {
  background: #fff;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  padding: 28px;
  transition: .25s ease
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--td-shadow);
  border-color: #c4d6e1
}

.service-no {
  font-size: 12px;
  font-weight: 900;
  color: var(--td-blue);
  letter-spacing: .12em
}

.service-card h3 {
  font-size: 21px;
  line-height: 1.25;
  color: var(--td-blue);
  margin: 28px 0 10px
}

.service-card p {
  color: var(--td-muted);
  font-size: 14px;
  margin: 0
}

.service-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--td-blue);
  font-weight: 800;
  font-size: 13px
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.project-card {
  background: #fff;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  overflow: hidden
}

.project-thumb {
  aspect-ratio: 16/10;
  background: #dfe9ee;
  position: relative;
  overflow: hidden
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .45s ease
}

.project-card:hover .project-thumb img {
  transform: scale(1.04)
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--td-blue);
  font-weight: 900;
  font-size: 34px;
  background: linear-gradient(135deg, #e7f0f4, #cbdde7)
}

.project-body {
  padding: 21px
}

.project-body h3 {
  margin: 0 0 6px;
  color: var(--td-blue);
  font-size: 20px
}

.project-body p {
  margin: 0;
  color: var(--td-muted);
  font-size: 13px
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px
}

.filter-btn {
  border: 1px solid var(--td-line);
  background: #fff;
  color: var(--td-blue);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--td-blue);
  color: #fff;
  border-color: var(--td-blue)
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--td-line);
  border: 1px solid var(--td-line)
}

.stat {
  background: #fff;
  padding: 30px
}

.stat strong {
  font-size: 38px;
  line-height: 1;
  color: var(--td-blue);
  display: block
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--td-muted);
  font-size: 13px
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.process-card {
  position: relative;
  padding: 28px;
  background: var(--td-blue);
  color: #fff;
  border-radius: var(--td-radius);
  min-height: 210px
}

.process-card .num {
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 900;
  opacity: .65
}

.process-card h3 {
  font-size: 20px;
  margin: 28px 0 9px
}

.process-card p {
  font-size: 13px;
  opacity: .75;
  margin: 0
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center
}

.feature-list {
  list-style: none;
  margin: 25px 0 0;
  padding: 0;
  display: grid;
  gap: 13px
}

.feature-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: #3d5362;
  font-size: 14px
}

.feature-list li:before {
  content: "✓";
  font-weight: 900;
  color: var(--td-blue)
}

.quote {
  border-left: 3px solid var(--td-blue);
  padding: 5px 0 5px 25px;
  font-size: 23px;
  line-height: 1.45;
  color: var(--td-blue)
}

.quote small {
  display: block;
  font-size: 12px;
  color: var(--td-muted);
  margin-top: 15px;
  font-weight: 700
}

.cta {
  background: var(--td-blue);
  color: #fff;
  padding: 65px 0
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px
}

.cta h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  margin: 0 0 10px;
  letter-spacing: -.04em
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, .75)
}

.site-footer {
  background: #0c2d43;
  color: #dce7ed;
  padding: 55px 0 25px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px
}

.footer-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 850;
  color: #fff;
  margin-bottom: 15px
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  color: #aebfc9
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 38px;
  padding-top: 20px;
  font-size: 12px;
  color: #8fa6b4;
  display: flex;
  justify-content: space-between;
  gap: 20px
}

.page-hero {
  background: var(--td-blue);
  color: #fff;
  padding: 78px 0
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.03;
  margin: 0 0 15px;
  letter-spacing: -.05em
}

.page-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, .76);
  margin: 0
}

.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: start
}

.contact-panel {
  background: var(--td-blue);
  color: #fff;
  border-radius: var(--td-radius);
  padding: 34px
}

.contact-panel h2 {
  margin-top: 0
}

.contact-detail {
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, .15)
}

.contact-detail strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .65
}

.contact-form {
  background: #fff;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  padding: 32px
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px
}

.field.full {
  grid-column: 1/-1
}

.field label {
  font-size: 12px;
  font-weight: 800;
  color: var(--td-blue)
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--td-line);
  border-radius: 9px;
  background: #fff;
  padding: 13px 14px;
  outline: none
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--td-blue);
  box-shadow: 0 0 0 3px rgba(19, 66, 99, .08)
}

.dropzone {
  border: 1.5px dashed #a9bbc6;
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  background: #fbfcfc
}

.dropzone strong {
  display: block;
  color: var(--td-blue)
}

.dropzone span {
  font-size: 12px;
  color: var(--td-muted)
}

.form-note {
  font-size: 11px;
  color: var(--td-muted)
}

.privacy-info {
  gap: 4px;
  margin-top: 2px;
  margin-bottom: 2px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 55, 90, .10);
  border-radius: 10px;
  background: rgba(20, 55, 90, .035);
}

.privacy-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--td-muted)
}

.privacy-info a,
.consent-label a {
  color: var(--td-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600
}

.privacy-info a:hover,
.consent-label a:hover {
  text-decoration-thickness: 2px
}

.consent-field {
  gap: 6px;
  margin-top: 2px
}

.consent-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 7px 9px;
  border: 1px solid rgba(20, 55, 90, .10);
  border-radius: 7px;
  background: #fff;
  line-height: 1.4;
  white-space: normal;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease
}

.consent-label:hover {
  border-color: rgba(20, 55, 90, .20);
  background: rgba(20, 55, 90, .015)
}

.consent-label:focus-within {
  border-color: var(--td-blue);
  box-shadow: 0 0 0 2px rgba(20, 55, 90, .07)
}

.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  flex: 0 0 12px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(20, 55, 90, .45);
  border-radius: 3px;
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
  box-shadow: none;
}

.consent-label input[type="checkbox"]::before {
  content: "";
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease
}

.consent-label input[type="checkbox"]:checked {
  border-color: var(--td-blue);
  background: var(--td-blue);
}

.consent-label input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1)
}

.consent-label input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(20, 55, 90, .22);
  outline-offset: 2px
}

.consent-label > span {
  display: inline-block;
  font-size: 12px;
  color: var(--td-text, #263746)
}

.consent-required {
  color: var(--td-blue);
  font-weight: 700
}

.privacy-content {
  max-width: 920px
}

.privacy-content h2 {
  margin: 42px 0 12px;
  color: var(--td-blue);
  line-height: 1.2;
}

.privacy-content h2:first-of-type {
  margin-top: 0
}

.privacy-content p,
.privacy-content li {
  color: #405563;
}

.privacy-content ul {
  padding-left: 22px;
  margin: 10px 0 20px;
}

.privacy-content a {
  color: var(--td-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  align-items: center
}

.footer-privacy-link {
  color: #aebfc9;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px
}

.footer-privacy-link:hover {
  color: #fff
}

.notice {
  padding: 14px 16px;
  border-radius: 10px;
  background: #edf5f8;
  color: var(--td-blue);
  font-size: 13px;
  margin-bottom: 18px
}

.single-content {
  max-width: 900px;
  margin: auto
}

.single-content h2,
.single-content h3 {
  color: var(--td-blue)
}

.wp-block-button__link {
  background: var(--td-blue)
}

@media(max-width:900px) {
  .topbar-label {
    display: none
  }

  .topbar-inner {
    justify-content: center
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 72px
  }

  .brand {
    grid-column: 1
  }

  .primary-nav {
    display: none;
    grid-column: auto
  }

  .menu-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
    order: 3
  }

  .primary-nav.is-open {
    display: block;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 108px;
    background: #fff;
    border: 1px solid var(--td-line);
    padding: 18px;
    border-radius: 14px;
    box-shadow: var(--td-shadow)
  }

  .primary-nav.is-open ul {
    display: grid;
    gap: 13px
  }

  .primary-nav.is-open a {
    display: block;
    padding: 8px 0
  }

  .primary-nav.is-open a:after {
    display: none
  }

  .hero-grid,
  .split,
  .contact-layout {
    grid-template-columns: 1fr
  }

  .services-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr
  }

  .process {
    grid-template-columns: 1fr 1fr
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr
  }

  .trust-item {
    border-bottom: 1px solid var(--td-line)
  }

  .stats {
    grid-template-columns: 1fr 1fr
  }

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

  .cta-inner {
    align-items: flex-start;
    flex-direction: column
  }
}

@media(max-width:620px) {
  .container {
    width: min(calc(100% - 28px), var(--td-container))
  }

  .topbar-inner {
    min-height: 34px
  }

  .topbar-contact {
    gap: 9px;
    font-size: 10px;
    max-width: 100%;
    overflow: hidden
  }

  .topbar-contact a {
    min-width: 0
  }

  .topbar-contact a span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  .topbar-separator {
    height: 12px
  }

  .header-inner {
    min-height: 70px;
    gap: 10px
  }

  .brand-name {
    font-size: 16px
  }

  .brand-logo .custom-logo {
    max-height: 48px
  }

  .hero {
    padding: 70px 0
  }

  .section {
    padding: 65px 0
  }

  .services-grid,
  .project-grid,
  .process,
  .form-grid {
    grid-template-columns: 1fr
  }

  .field.full {
    grid-column: auto
  }

  .stats {
    grid-template-columns: 1fr
  }

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

  .footer-bottom {
    display: grid
  }

  .deliverables {
    grid-template-columns: 1fr
  }
}

/* V3.3.10 — Hero background positioning and header contact cleanup */
.hero-modern .eyebrow {
  color: rgba(255, 255, 255, .92);
  margin-bottom: 22px
}

.hero-modern .hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, .80)
}

.hero-modern .actions {
  position: relative;
  z-index: 2
}

.hero-modern .hero-proof {
  max-width: 650px
}

.hero-modern .hero-visual {
  isolation: isolate
}

.hero-modern .hero-floating-card {
  right: 0;
  bottom: 20px
}

@media(max-width:900px) {
  .hero-copy:before {
    left: -16px;
    top: -22px;
    bottom: -22px
  }

  .hero-modern .hero-floating-card {
    right: 10px
  }
}

@media(max-width:620px) {
  .hero-modern {
    min-height: auto;
    padding: 64px 0 58px
  }

  .hero h1 {
    font-size: clamp(35px, 10.5vw, 52px);
    line-height: 1.02;
    letter-spacing: -.04em;
    max-width: 100%
  }

  .hero-copy:before {
    display: none
  }

  .hero-modern .hero-copy p {
    font-size: 16px;
    line-height: 1.6
  }
}

/* V3 interaction layer */
.btn-dark {
  background: var(--td-blue);
  color: #fff
}

.hero-modern {
  min-height: 690px;
  padding: 88px 0 78px
}

.hero-modern:after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 35%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 65%);
  pointer-events: none
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px
}

.hero-copy:before {
  content: "";
  position: absolute;
  left: -28px;
  top: -34px;
  bottom: -34px;
  width: 3px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .85), rgba(255, 255, 255, .08));
  border-radius: 3px;
  opacity: .7;
  pointer-events: none
}

.hero-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .64)
}

.hero-proof span {
  color: #fff
}

.hero-visual {
  position: relative;
  min-height: 490px
}

.hero-blueprint {
  display: none
}

.hero-visual:hover .hero-blueprint {
  transform: none
}

.bp-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 90%)
}

.bp-building {
  position: absolute;
  left: 16%;
  right: 10%;
  top: 23%;
  bottom: 18%;
  transform: skewY(-4deg);
  border-bottom: 2px solid rgba(255, 255, 255, .55);
  border-top: 2px solid rgba(255, 255, 255, .28)
}

.bp-building i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, .45)
}

.bp-building i:nth-child(1) {
  left: 5%
}

.bp-building i:nth-child(2) {
  left: 36%
}

.bp-building i:nth-child(3) {
  left: 68%
}

.bp-building i:nth-child(4) {
  right: 4%
}

.bp-building b {
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, .38)
}

.bp-building b:nth-of-type(1) {
  top: 28%
}

.bp-building b:nth-of-type(2) {
  top: 58%
}

.bp-building b:nth-of-type(3) {
  top: 82%
}

.bp-tag {
  position: absolute;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(7, 25, 39, .45);
  backdrop-filter: blur(8px);
  border-radius: 7px;
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 800
}

.bp-tag-a {
  left: 7%;
  top: 10%
}

.bp-tag-b {
  right: 7%;
  top: 32%
}

.bp-tag-c {
  left: 11%;
  bottom: 10%
}

.hero-floating-card {
  position: absolute;
  right: -25px;
  bottom: 24px;
  width: 285px;
  background: #fff;
  color: var(--td-ink);
  border-radius: 17px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
  z-index: 3
}

.hero-floating-card small {
  display: block;
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 900;
  color: var(--td-muted)
}

.hero-floating-card strong {
  display: block;
  color: var(--td-blue);
  font-size: 18px;
  line-height: 1.25;
  margin: 7px 0 13px
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px
}

.hero-mini-grid span {
  padding: 8px;
  border: 1px solid var(--td-line);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800
}

.hero-photo {
  display: none
}

.hero-photo+.hero-blueprint {
  display: none
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  pointer-events: none
}

.hero-orbit-a {
  width: 650px;
  height: 650px;
  right: -250px;
  top: -230px
}

.hero-orbit-b {
  width: 380px;
  height: 380px;
  right: 70px;
  bottom: -270px
}

.reveal-up,
.reveal-right,
.service-card,
.project-card,
.process-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal-right {
  transform: translateX(28px)
}

.in-view {
  opacity: 1 !important;
  transform: none !important
}

.project-card.is-hidden {
  display: none
}

.project-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  cursor: pointer
}

.project-open:focus-visible {
  outline: 3px solid rgba(19, 66, 99, .35);
  outline-offset: -3px
}

.project-view {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--td-blue);
  font-size: 11px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(6px);
  transition: .25s ease
}

.project-card:hover .project-view {
  opacity: 1;
  transform: none
}

.project-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  color: #78909f;
  margin-bottom: 8px
}

.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000
}

.project-modal.is-open {
  display: block
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 33, .78);
  backdrop-filter: blur(8px)
}

.modal-dialog {
  position: relative;
  width: min(1100px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .35);
  padding: 42px
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 15px;
  border: 0;
  background: #eef3f6;
  color: var(--td-blue);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 25px;
  cursor: pointer
}

.modal-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--td-blue);
  padding-right: 45px
}

.modal-excerpt {
  font-size: 17px;
  color: var(--td-muted);
  margin: 12px 0 20px
}

.modal-content {
  color: #3e5362;
  line-height: 1.75
}

.modal-meta {
  padding: 16px;
  margin: 24px 0;
  border: 1px solid var(--td-line);
  border-radius: 10px;
  color: #516673;
  font-size: 13px
}

.modal-meta span {
  margin: 0 8px;
  color: #a3b2ba
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px
}

.modal-gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 12px
}

.modal-gallery img:first-child {
  grid-column: 1/-1;
  aspect-ratio: 21/9
}

.modal-open {
  overflow: hidden
}

.single-gallery {
  margin-top: 50px
}

.single-gallery h2 {
  font-size: 30px
}

.single-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px
}

.single-gallery-grid a {
  overflow: hidden;
  border-radius: 14px
}

.single-gallery-grid img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: .35s ease
}

.single-gallery-grid a:hover img {
  transform: scale(1.03)
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(4, 16, 25, .94);
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  transition: .25s
}

.image-lightbox.is-open {
  opacity: 1
}

.image-lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  object-fit: contain
}

.image-lightbox button {
  position: fixed;
  right: 25px;
  top: 20px;
  border: 0;
  background: #fff;
  color: var(--td-blue);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 27px
}

.notice.success {
  background: #eaf7f0;
  color: #17683e
}

.notice.error {
  background: #fff0ef;
  color: #a33d34
}

@media(max-width:900px) {
  .hero-modern {
    padding-top: 65px
  }

  .hero-visual {
    min-height: 360px
  }

  .hero-floating-card {
    right: 10px
  }

  .modal-dialog {
    padding: 30px 20px
  }

  .modal-gallery {
    grid-template-columns: 1fr
  }

  .modal-gallery img:first-child {
    grid-column: auto
  }

  .single-gallery-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:620px) {
  .hero-visual {
    min-height: 300px
  }

  .hero-floating-card {
    width: 235px;
    padding: 15px;
    bottom: 12px
  }

  .hero-floating-card strong {
    font-size: 15px
  }

  .hero-proof {
    font-size: 10px
  }

  .project-view {
    opacity: 1;
    transform: none
  }

  .modal-title {
    font-size: 31px
  }
}

@media(max-width:620px) {
  .privacy-info {
    padding: 12px 13px;
    border-radius: 9px
  }

  .privacy-info p {
    font-size: 11.5px
  }

  .consent-label {
    align-items: flex-start;
    gap: 8px;
    padding: 7px 8px
  }

  .consent-label input[type="checkbox"] {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    flex-basis: 12px;
    margin-top: 2px !important
  }

  .consent-label > span {
    font-size: 11.5px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .reveal-up,
  .reveal-right,
  .service-card,
  .project-card,
  .process-card,
  .hero-blueprint,
  .project-view {
    transition: none
  }

  .hero-blueprint {
    transform: none !important
  }
}

/* V3.1 — portfolio / project detail */
.archive-hero p {
  max-width: 820px
}

.portfolio-intro {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 34px
}

.portfolio-intro h2 {
  margin: 0;
  color: var(--td-blue);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.045em
}

.portfolio-intro p {
  margin: 0;
  color: var(--td-muted);
  line-height: 1.75
}

.portfolio-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 28px
}

.project-link {
  display: block;
  color: inherit;
  text-decoration: none
}

.project-link:hover {
  color: inherit
}

.project-gallery-count {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(6, 22, 33, .75);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px)
}

.project-read {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 900;
  color: var(--td-blue)
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(10, 35, 50, .11)
}

.empty-projects {
  padding: 60px;
  border: 1px dashed var(--td-line);
  border-radius: 20px;
  text-align: center
}

.portfolio-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #fff;
  border: 1px solid var(--td-line);
  border-radius: 24px;
  padding: 38px
}

.portfolio-cta h2 {
  margin: 0 0 10px;
  color: var(--td-blue);
  font-size: clamp(28px, 4vw, 44px)
}

.portfolio-cta p {
  margin: 0;
  color: var(--td-muted)
}

.project-detail-hero {
  background: var(--td-blue);
  color: #fff;
  padding: 70px 0 0;
  overflow: hidden
}

.project-detail-hero-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 55px;
  align-items: end
}

.project-detail-intro {
  padding-bottom: 70px
}

.project-detail-intro h1 {
  font-size: clamp(42px, 5.7vw, 76px);
  line-height: 1.01;
  letter-spacing: -.055em;
  margin: 12px 0 22px
}

.project-lead {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .78)
}

.project-detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px
}

.project-detail-tags span {
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, .05)
}

.project-detail-hero-image {
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  min-height: 420px;
  background: #dce7ec;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, .14)
}

.project-detail-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover
}

.project-detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 65px;
  align-items: start
}

.project-facts {
  position: sticky;
  top: 100px
}

.project-facts-card {
  border: 1px solid var(--td-line);
  border-radius: 20px;
  padding: 25px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(10, 35, 50, .07)
}

.project-facts-card h2 {
  font-size: 25px;
  color: var(--td-blue);
  margin: 7px 0 20px
}

.project-fact {
  padding: 13px 0;
  border-top: 1px solid var(--td-line)
}

.project-fact span {
  display: block;
  color: var(--td-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  margin-bottom: 5px
}

.project-fact strong {
  display: block;
  color: var(--td-ink);
  font-size: 13px;
  line-height: 1.45
}

.project-facts-cta {
  display: block;
  text-align: center;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box
}

.project-detail-content {
  min-width: 0
}

.project-story {
  font-size: 17px;
  line-height: 1.8;
  color: #425967
}

.project-story .eyebrow {
  font-size: 13px
}

.project-story h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  color: var(--td-blue);
  letter-spacing: -.035em;
  margin-top: 38px
}

.project-story h3 {
  color: var(--td-blue);
  margin-top: 32px
}

.project-gallery-section {
  margin-top: 65px
}

.section-head.compact {
  margin-bottom: 24px
}

.project-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px
}

.project-gallery-item {
  position: relative;
  display: block;
  min-height: 250px;
  border-radius: 16px;
  overflow: hidden;
  background: #e8eef1
}

.project-gallery-item.is-large {
  grid-column: 1/-1;
  min-height: 480px
}

.project-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease
}

.project-gallery-item:hover img {
  transform: scale(1.025)
}

.project-gallery-item span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(6, 22, 33, .78);
  color: #fff;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: .25s ease
}

.project-gallery-item:hover span {
  opacity: 1;
  transform: none
}

.project-detail-cta {
  margin-top: 65px;
  padding: 38px;
  border-radius: 22px;
  background: var(--td-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px
}

.project-detail-cta h2 {
  margin: 4px 0 10px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.035em
}

.project-detail-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  max-width: 650px;
  line-height: 1.6
}

.project-detail-cta .eyebrow {
  color: rgba(255, 255, 255, .62)
}

.project-detail-cta .btn-primary {
  background: #fff;
  color: var(--td-blue)
}

@media(max-width:900px) {

  .portfolio-intro,
  .project-detail-hero-grid,
  .project-detail-layout {
    grid-template-columns: 1fr
  }

  .project-detail-intro {
    padding-bottom: 45px
  }

  .project-detail-hero-image,
  .project-detail-hero-image img {
    min-height: 340px
  }

  .project-facts {
    position: static
  }

  .portfolio-cta,
  .project-detail-cta {
    flex-direction: column;
    align-items: flex-start
  }

  .project-detail-gallery {
    grid-template-columns: 1fr
  }

  .project-gallery-item.is-large {
    min-height: 340px
  }

  .project-gallery-item {
    min-height: 260px
  }
}


/* V3.2 — brand, services and responsive refinements */
.brand-logo {
  display: flex;
  align-items: center
}

.brand-logo .custom-logo-link {
  display: flex;
  align-items: center
}

.brand-logo .custom-logo {
  width: auto;
  max-width: 220px;
  height: 52px;
  max-height: 52px;
  object-fit: contain
}

.brand-name {
  white-space: nowrap
}

.section-lead {
  max-width: 580px
}

.section-lead p {
  margin: 0;
  color: var(--td-muted)
}

.text-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 15px;
  color: var(--td-blue);
  font-size: 13px;
  font-weight: 850;
  transition: transform 0.25s ease;
}
.text-link:hover {
  transform: translateY(-4px);
  background: #0c2d43;
}
.home-services .service-link {
  transition: transform .2s ease
}

.home-services .service-link:hover {
  transform: translateX(3px)
}

.services-hero p {
  max-width: 820px
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr .78fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 50px
}

.services-intro h2 {
  margin: 0;
  color: var(--td-blue);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.045em
}

.services-intro>p {
  margin: 0;
  color: var(--td-muted);
  line-height: 1.8;
  font-size: 16px
}

.services-list {
  display: grid;
  gap: 14px
}

.service-feature {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--td-line);
  transition: transform .3s ease
}

.service-feature:hover {
  transform: translateX(7px)
}

.service-index {
  font-size: 13px;
  font-weight: 900;
  color: var(--td-blue);
  letter-spacing: .1em
}

.service-kicker {
  font-size: 10px;
  letter-spacing: .14em;
  font-weight: 900;
  color: #7a8d99
}

.service-feature h2 {
  margin: 8px 0 12px;
  color: var(--td-blue);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.035em
}

.service-feature p {
  max-width: 780px;
  margin: 0;
  color: var(--td-muted);
  line-height: 1.75
}

.service-feature ul {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 20px 0 0
}

.service-feature li {
  padding: 8px 11px;
  border: 1px solid var(--td-line);
  border-radius: 999px;
  background: #fff;
  color: #48606e;
  font-size: 12px;
  font-weight: 750
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.deliverable-grid div {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--td-line);
  border-radius: 14px;
  color: var(--td-blue);
  font-size: 14px;
  font-weight: 850
}

.service-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 42px;
  border-radius: 24px;
  background: var(--td-blue);
  color: #fff
}

.service-bottom-cta h2 {
  margin: 5px 0 10px;
  font-size: clamp(29px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.04em
}

.service-bottom-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .75);
  max-width: 680px
}

.service-bottom-cta .eyebrow {
  color: rgba(255, 255, 255, .65)
}

@media(max-width:900px) {
  .brand-logo .custom-logo {
    max-width: 190px;
    max-height: 52px;
    gap: 18px
  }

  .service-feature {
    grid-template-columns: 55px 1fr;
    gap: 18px
  }

  .deliverable-grid {
    grid-template-columns: 1fr 1fr
  }

  .service-bottom-cta {
    flex-direction: column;
    align-items: flex-start
  }

  .expertise-head {
    align-items: flex-start
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px
  }
}

@media(max-width:620px) {
  .admin-bar .site-header {
    top: 46px
  }

  .header-inner {
    min-height: 70px
  }

  .brand-logo .custom-logo {
    max-width: 165px;
    max-height: 52px;
    height: 34px
  }

  .brand-name {
    font-size: 16px
  }

  .services-intro {
    margin-bottom: 30px
  }

  .service-feature {
    grid-template-columns: 1fr;
    padding: 28px 0
  }

  .service-index {
    font-size: 12px
  }

  .service-feature h2 {
    font-size: 27px
  }

  .service-feature p {
    font-size: 14px
  }

  .service-feature li {
    font-size: 11px
  }

  .deliverable-grid {
    grid-template-columns: 1fr
  }

  .service-bottom-cta {
    padding: 28px
  }

  .section-head h2 {
    max-width: 100%
  }

  .section-lead {
    max-width: none
  }

  .expertise-head {
    gap: 12px
  }
}


/* =========================================================
   V3.3.1 — Customizable header logo size
   The width is controlled from Appearance > Customize >
   TopDraw Engineering > Largeur du logo (px).
   ========================================================= */
.header-inner .brand-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-inner .brand-logo .custom-logo-link {
  display: flex;
  align-items: center;
  width: auto;
  max-width: none;
}

.header-inner .brand-logo .custom-logo {
  display: block;
  width: var(--td-logo-width, 180px) !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
}

@media(max-width:900px) {
  .header-inner .brand-logo .custom-logo {
    width: min(var(--td-logo-width, 180px), 190px) !important;
  }
}

@media(max-width:620px) {
  .header-inner .brand-logo .custom-logo {
    width: min(var(--td-logo-width, 180px), 165px) !important;
    height: auto !important;
    max-height: none !important;
  }
}


/* Services page — tablet */
@media(max-width:900px) {
  .services-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 38px;
  }

  .services-intro h2 {
    max-width: 850px
  }

  .services-intro>p {
    max-width: 760px
  }

  .service-feature {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 20px;
    padding: 30px 0;
  }

  .service-feature h2 {
    font-size: clamp(26px, 4vw, 34px);
    overflow-wrap: anywhere;
  }

  .service-feature p {
    max-width: none
  }

  .service-feature ul {
    margin-top: 16px
  }

  .service-bottom-cta {
    gap: 24px
  }
}

/* Services page — phones */
@media(max-width:620px) {
  .services-hero {
    padding: 58px 0 52px;
  }

  .services-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.04;
  }

  .services-hero p {
    font-size: 15px;
    line-height: 1.7;
  }

  .services-intro {
    gap: 18px;
    margin-bottom: 26px;
  }

  .services-intro h2 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.08;
  }

  .services-intro>p {
    font-size: 14px;
    line-height: 1.7
  }

  .services-list {
    gap: 0
  }

  .service-feature {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 26px 0;
  }

  .service-feature:hover {
    transform: none
  }

  .service-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 28px;
    margin-bottom: 14px;
    border: 1px solid var(--td-line);
    border-radius: 999px;
    background: #fff;
  }

  .service-kicker {
    display: block;
    font-size: 9px;
    line-height: 1.4;
    margin-bottom: 5px;
  }

  .service-feature h2 {
    font-size: clamp(25px, 8vw, 31px);
    line-height: 1.08;
    margin: 7px 0 12px;
    overflow-wrap: anywhere;
  }

  .service-feature p {
    font-size: 14px;
    line-height: 1.7;
  }

  .service-feature ul {
    gap: 7px;
    margin-top: 16px;
  }

  .service-feature li {
    padding: 7px 9px;
    font-size: 10px;
    line-height: 1.35;
  }

  .deliverable-grid {
    gap: 10px
  }

  .deliverable-grid div {
    padding: 17px;
    font-size: 13px;
  }

  .service-bottom-cta {
    padding: 26px 22px;
    border-radius: 18px;
    gap: 22px;
  }

  .service-bottom-cta h2 {
    font-size: clamp(28px, 8vw, 38px)
  }

  .service-bottom-cta p {
    font-size: 14px;
    line-height: 1.65
  }

  .service-bottom-cta .btn {
    width: 100%;
    min-height: 48px;
  }
}


/* v3.3.4 — mobile navigation + page loading */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--td-blue);
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity .35s ease, visibility .35s ease
}

.page-transition.is-loaded {
  opacity: 0;
  visibility: hidden
}

.page-transition:after {
  content: "";
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: td-spin .8s linear infinite
}

@keyframes td-spin {
  to {
    transform: rotate(360deg)
  }
}

body.is-menu-open {
  overflow: hidden
}

@media(max-width:900px) {
  .header-inner {
    position: relative;
    z-index: 20
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--td-line);
    border-radius: 12px;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 0;
    box-shadow: 0 5px 16px rgba(19, 66, 99, .08);
    transition: background .2s ease, border-color .2s ease, transform .2s ease
  }

  .menu-toggle:before {
    content: "☰";
    font-size: 23px;
    line-height: 1
  }

  .menu-toggle[aria-expanded="true"]:before {
    content: "×";
    font-size: 28px
  }

  .menu-toggle[aria-expanded="true"] {
    background: #eef4f7;
    border-color: #c9d8e0
  }

  .primary-nav.is-open {
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    max-height: calc(100vh - 105px);
    overflow: auto;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 50px rgba(12, 45, 67, .18);
    border: 1px solid rgba(19, 66, 99, .12);
    animation: td-menu-in .2s ease both
  }

  .primary-nav.is-open ul {
    display: grid;
    gap: 4px
  }

  .primary-nav.is-open li {
    margin: 0
  }

  .primary-nav.is-open a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 750;
    color: var(--td-blue);
    white-space: normal;
    transition: background .18s ease, color .18s ease, transform .18s ease
  }

  .primary-nav.is-open a:hover,
  .primary-nav.is-open .current-menu-item>a {
    background: #eef4f7;
    color: var(--td-blue);
    transform: none
  }

  .primary-nav.is-open .current-menu-item>a:before {
    content: "";
    width: 3px;
    height: 18px;
    border-radius: 3px;
    background: var(--td-blue);
    margin-right: 8px;
    order: -1
  }

  .primary-nav.is-open a:after {
    display: none
  }
}

@keyframes td-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(max-width:620px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 68px
  }

  .brand {
    max-width: calc(100vw - 125px);
    overflow: hidden
  }

  .menu-toggle {
    width: 44px;
    height: 44px
  }

  .primary-nav.is-open {
    left: 0;
    right: 0;
    top: calc(100% + 7px);
    max-height: calc(100vh - 96px);
    padding: 8px;
    border-radius: 14px
  }

  .primary-nav.is-open a {
    min-height: 52px;
    padding: 14px 13px;
    font-size: 16px
  }

  .primary-nav.is-open ul {
    gap: 3px
  }
}

@media(prefers-reduced-motion:reduce) {
  .page-transition {
    transition: none
  }

  .page-transition:after {
    animation: none
  }

  .primary-nav.is-open {
    animation: none
  }
}


/* V3.3.12 — Header: logo → links → contact CTA + hero technical drawing repositioned */
.primary-nav {
  display: block
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--td-blue);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid var(--td-blue);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease
}

.header-contact-btn:hover {
  background: var(--td-blue-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(19, 66, 99, .18)
}

.hero-modern .hero-proof {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(3, 18, 30, .58);
  color: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  max-width: 100%
}

.hero-modern .hero-proof span {
  color: #fff;
  font-weight: 900
}

@media(max-width:900px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px
  }

  .primary-nav {
    display: none
  }

  .header-contact-btn {
    display: none
  }

  .mobile-contact-btn {
    display: none
  }

  .primary-nav.is-open {
    display: block;
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    z-index: 30
  }

  .primary-nav.is-open .mobile-contact-btn {
    display: flex;
    margin: 8px 0 2px;
    min-height: 48px;
    padding: 12px 13px;
    border-radius: 10px;
    font-size: 15px
  }

  .primary-nav.is-open .mobile-contact-btn:after {
    display: none
  }

  .menu-toggle {
    grid-column: 2
  }

  .hero-modern .hero-proof {
    white-space: normal;
    display: flex;
    line-height: 1.45;
    border-radius: 12px;
    padding: 10px 12px
  }
}

@media(max-width:620px) {
  .hero-modern .hero-proof {
    font-size: 10px;
    gap: 7px;
    margin-top: 18px
  }

  .header-contact-btn {
    font-size: 14px
  }
}

/* V3.3.14 — Header: logo → centered links → Contact CTA + mobile production card contrast */
.header-contact-btn {
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--td-blue);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid var(--td-blue);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  justify-self: end
}

.header-contact-btn:hover {
  background: var(--td-blue-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(19, 66, 99, .18)
}

@media(max-width:900px) {
  .header-contact-btn {
    display: none
  }
}

@media(max-width:620px) {
  .hero-modern .hero-floating-card {
    background: rgba(5, 24, 38, .94);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px)
  }

  .hero-modern .hero-floating-card small {
    color: rgba(255, 255, 255, .68)
  }

  .hero-modern .hero-floating-card strong {
    color: #fff
  }

  .hero-modern .hero-mini-grid span {
    border-color: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .05)
  }
}


/* V3.3.17 — Mobile & tablet header: Contact CTA always visible beside hamburger */
@media (max-width:900px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    min-height: 72px;
  }

  .site-header .header-contact-btn {
    grid-column: 2;
    display: inline-flex !important;
    align-self: center;
    justify-self: end;
    padding: 10px 13px;
    min-height: 44px;
    border-radius: 9px;
    font-size: 11px;
    letter-spacing: .01em;
    gap: 6px;
    box-shadow: 0 5px 16px rgba(19, 66, 99, .12);
  }

  .site-header .menu-toggle {
    grid-column: 3;
    justify-self: end;
    width: 46px;
    height: 46px;
  }

  .site-header .brand {
    min-width: 0;
  }
}

@media (max-width:620px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    min-height: 68px;
  }

  .site-header .brand {
    max-width: calc(100vw - 145px);
    overflow: hidden;
  }

  .site-header .header-contact-btn {
    padding: 9px 10px;
    min-height: 42px;
    border-radius: 8px;
    font-size: 10px;
    gap: 4px;
  }

  .site-header .header-contact-btn span {
    font-size: 13px;
  }

  .site-header .menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
}

@media (max-width:390px) {
  .site-header .header-inner {
    gap: 5px;
  }

  .site-header .brand {
    max-width: calc(100vw - 132px);
  }

  .site-header .header-contact-btn {
    padding: 8px 8px;
    font-size: 9px;
  }

  .site-header .header-contact-btn span {
    display: none;
  }

  .site-header .menu-toggle {
    width: 40px;
    height: 40px;
  }
}


/* V3.3.17 — Sitewide Contact CTA */
.site-header .header-inner>.header-contact-btn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width:900px) {
  .site-header .header-inner>.header-contact-btn {
    grid-column: 2 !important;
    display: inline-flex !important;
  }

  .site-header .header-inner>.menu-toggle {
    grid-column: 3 !important;
  }
}

@media (max-width:620px) {
  .site-header .header-inner>.header-contact-btn {
    display: inline-flex !important;
    padding: 9px 10px;
    min-height: 42px;
    font-size: 10px;
  }
}


/* V3.3.19 — Global typography balance + persistent header CTA */
.eyebrow {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: .13em;
}

.page-hero .eyebrow,
.portfolio-intro .eyebrow,
.services-intro .eyebrow,
.section-head .eyebrow,
.portfolio-cta .eyebrow,
.service-bottom-cta .eyebrow {
  font-size: 26px;
}

.portfolio-intro p,
.services-intro p,
.section-head p {
  font-size: 16px;
  line-height: 1.75;
}

/* Keep the CTA visible in the global header on every template. */
.site-header .header-inner>.header-contact-btn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width:900px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 10px;
  }

  .site-header .header-inner>.header-contact-btn {
    grid-column: 2 !important;
    display: inline-flex !important;
    justify-self: end;
    align-self: center;
  }

  .site-header .header-inner>.menu-toggle {
    grid-column: 3 !important;
    justify-self: end;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: .12em
  }

  .portfolio-intro p,
  .services-intro p,
  .section-head p {
    font-size: 15px;
    line-height: 1.7
  }
}

@media (max-width:620px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 7px;
    min-height: 68px;
  }

  .site-header .brand {
    max-width: calc(100vw - 145px);
    overflow: hidden
  }

  .site-header .header-inner>.header-contact-btn {
    grid-column: 2 !important;
    display: inline-flex !important;
    padding: 9px 10px;
    min-height: 42px;
    border-radius: 8px;
    font-size: 10px;
    gap: 4px;
  }

  .site-header .header-inner>.menu-toggle {
    grid-column: 3 !important;
    width: 42px;
    height: 42px;
  }

  .eyebrow {
    font-size: 11.5px;
    letter-spacing: .11em
  }
}

@media (max-width:390px) {
  .site-header .header-inner {
    gap: 5px
  }

  .site-header .brand {
    max-width: calc(100vw - 132px)
  }

  .site-header .header-inner>.header-contact-btn {
    padding: 8px;
    font-size: 9px
  }

  .site-header .header-inner>.header-contact-btn span {
    display: none
  }

  .site-header .header-inner>.menu-toggle {
    width: 40px;
    height: 40px
  }
}


/* V3.3.19 — Typography scale + responsive sitewide header refinement */
/* Slightly larger supporting text across all templates, while keeping headings controlled. */
.eyebrow {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: .12em;
}

.section-head h2,
.portfolio-intro h2,
.services-intro h2 {
  font-size: clamp(34px, 4.15vw, 54px);
}

.section-head p,
.portfolio-intro p,
.services-intro>p,
.archive-hero p,
.services-hero p,
.service-feature p,
.portfolio-cta p,
.service-bottom-cta p {
  font-size: 17px;
  line-height: 1.72;
}

.service-card p,
.project-body p,
.process-card p {
  font-size: 15px;
  line-height: 1.65;
}

.service-kicker,
.project-type {
  font-size: 11px;
}

.service-feature h2 {
  font-size: clamp(27px, 3vw, 40px);
}

/* Contact CTA remains visible beside the hamburger on tablet and mobile. */
@media (max-width:900px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 10px;
  }

  .site-header .header-contact-btn {
    display: inline-flex !important;
    grid-column: 2 !important;
    justify-self: end;
    align-self: center;
    padding: 10px 13px;
    min-height: 44px;
    font-size: 11px;
  }

  .site-header .menu-toggle {
    display: block !important;
    grid-column: 3 !important;
    justify-self: end;
    width: 46px;
    height: 46px;
  }

  .site-header .brand {
    min-width: 0;
  }

  .eyebrow {
    font-size: 13px;
    letter-spacing: .115em;
  }

  .section-head h2,
  .portfolio-intro h2,
  .services-intro h2 {
    font-size: clamp(33px, 5.2vw, 48px);
  }

  .section-head p,
  .portfolio-intro p,
  .services-intro>p,
  .archive-hero p,
  .services-hero p,
  .service-feature p,
  .portfolio-cta p,
  .service-bottom-cta p {
    font-size: 16px;
    line-height: 1.7;
  }
}

@media (max-width:620px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 7px;
    min-height: 68px;
  }

  .site-header .brand {
    max-width: calc(100vw - 150px);
    overflow: hidden;
  }

  .site-header .header-contact-btn {
    display: inline-flex !important;
    grid-column: 2 !important;
    padding: 9px 10px;
    min-height: 42px;
    border-radius: 8px;
    font-size: 10px;
    gap: 4px;
  }

  .site-header .header-contact-btn span {
    font-size: 12px;
  }

  .site-header .menu-toggle {
    grid-column: 3 !important;
    width: 42px;
    height: 42px;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: .105em;
  }

  .section-head h2,
  .portfolio-intro h2,
  .services-intro h2 {
    font-size: clamp(31px, 8.7vw, 42px);
    line-height: 1.08;
  }

  .section-head p,
  .portfolio-intro p,
  .services-intro>p,
  .archive-hero p,
  .services-hero p,
  .service-feature p,
  .portfolio-cta p,
  .service-bottom-cta p {
    font-size: 15.5px;
    line-height: 1.68;
  }

  .service-card p,
  .project-body p,
  .process-card p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .service-feature h2 {
    font-size: clamp(27px, 7.8vw, 34px);
  }
}

@media (max-width:390px) {
  .site-header .header-inner {
    gap: 5px;
  }

  .site-header .brand {
    max-width: calc(100vw - 138px);
  }

  .site-header .header-contact-btn {
    padding: 8px;
    font-size: 9px;
  }

  .site-header .header-contact-btn span {
    display: none;
  }

  .site-header .menu-toggle {
    width: 40px;
    height: 40px;
  }
}

/* v3.3.21 — filtres projets supplémentaires et cartes sans description vide */
.portfolio-filters,
.home-filters {
  align-items: center;
}

@media (max-width: 900px) {
  .portfolio-filters,
  .home-filters {
    gap: 8px;
  }

  .portfolio-filters .filter-btn,
  .home-filters .filter-btn {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 13px;
  }
}

@media (max-width: 620px) {
  .portfolio-filters,
  .home-filters {
    gap: 7px;
  }

  .portfolio-filters .filter-btn,
  .home-filters .filter-btn {
    padding: 9px 12px;
    font-size: 12.5px;
  }
}

/* v3.3.21 — filtres réalisations : 4 catégories */
.portfolio-filters {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.portfolio-filters .filter-btn {
  white-space:nowrap;
}
@media (max-width:620px) {
  .portfolio-filters {
    gap:8px;
  }
  .portfolio-filters .filter-btn {
    flex:1 1 auto;
    min-width:calc(50% - 8px);
  }
}


/* =========================================================
   V3.3.24 — Professional responsive typography
   Mobile + tablet: fluid type scale, comfortable reading,
   stronger hierarchy and consistent UI sizing.
   ========================================================= */
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Tablet: 621–900px */
@media (min-width:621px) and (max-width:900px) {
  body {
    font-size: 16px;
    line-height: 1.65;
  }

  .container {
    width: min(calc(100% - 44px), var(--td-container));
  }

  .eyebrow,
  .page-hero .eyebrow,
  .portfolio-intro .eyebrow,
  .services-intro .eyebrow,
  .section-head .eyebrow,
  .portfolio-cta .eyebrow,
  .service-bottom-cta .eyebrow {
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: .13em;
    margin-bottom: 16px;
  }

  .hero-modern {
    padding: 76px 0 70px;
  }

  .hero h1 {
    font-size: clamp(42px, 6vw, 56px);
    line-height: 1.02;
    letter-spacing: -.045em;
    margin-bottom: 20px;
  }

  .hero p,
  .page-hero p,
  .services-hero p {
    font-size: 16px;
    line-height: 1.7;
  }

  .section {
    padding: 76px 0;
  }

  .section-head,
  .portfolio-intro,
  .services-intro {
    gap: 24px;
    margin-bottom: 36px;
  }

  .section-head h2,
  .portfolio-intro h2,
  .services-intro h2 {
    font-size: clamp(34px, 5vw, 46px);
    line-height: 1.07;
    letter-spacing: -.04em;
  }

  .section-head p,
  .portfolio-intro p,
  .services-intro > p,
  .section-lead p {
    font-size: 16px;
    line-height: 1.72;
  }

  .service-card h3,
  .project-body h3,
  .process-card h3 {
    font-size: 20px;
    line-height: 1.2;
  }

  .service-card p,
  .project-body p,
  .process-card p,
  .service-feature p,
  .portfolio-cta p,
  .service-bottom-cta p {
    font-size: 15px;
    line-height: 1.68;
  }

  .service-feature h2 {
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.08;
  }

  .service-kicker,
  .project-type {
    font-size: 11px;
    letter-spacing: .11em;
  }

  .filter-btn {
    font-size: 13px;
    min-height: 42px;
  }

  .btn,
  .text-link,
  .project-read {
    font-size: 14px;
  }

  .trust-item {
    font-size: 12px;
  }
}

/* Phones: up to 620px */
@media (max-width:620px) {
  body {
    font-size: 15.5px;
    line-height: 1.65;
  }

  .container {
    width: min(calc(100% - 28px), var(--td-container));
  }

  .section {
    padding: 62px 0;
  }

  .eyebrow,
  .page-hero .eyebrow,
  .portfolio-intro .eyebrow,
  .services-intro .eyebrow,
  .section-head .eyebrow,
  .portfolio-cta .eyebrow,
  .service-bottom-cta .eyebrow {
    font-size: 11.5px;
    line-height: 1.35;
    letter-spacing: .105em;
    gap: 8px;
    margin-bottom: 14px;
  }

  .eyebrow:before {
    width: 24px;
  }

  .hero-modern {
    padding: 58px 0 54px;
  }

  .hero h1 {
    font-size: clamp(36px, 10.2vw, 45px);
    line-height: 1.045;
    letter-spacing: -.045em;
    margin-bottom: 18px;
  }

  .hero p,
  .page-hero p,
  .services-hero p {
    font-size: 15.5px;
    line-height: 1.68;
  }

  .actions {
    gap: 9px;
  }

  .btn {
    min-height: 44px;
    padding: 11px 15px;
    font-size: 13.5px;
    line-height: 1.2;
  }

  .section-head,
  .portfolio-intro,
  .services-intro {
    gap: 18px;
    margin-bottom: 28px;
  }

  .section-head h2,
  .portfolio-intro h2,
  .services-intro h2 {
    font-size: clamp(30px, 8.4vw, 40px);
    line-height: 1.08;
    letter-spacing: -.04em;
  }

  .section-head p,
  .portfolio-intro p,
  .services-intro > p,
  .section-lead p {
    font-size: 15px;
    line-height: 1.7;
  }

  .service-card h3,
  .project-body h3,
  .process-card h3 {
    font-size: 19px;
    line-height: 1.22;
  }

  .service-card p,
  .project-body p,
  .process-card p,
  .service-feature p,
  .portfolio-cta p,
  .service-bottom-cta p {
    font-size: 14.5px;
    line-height: 1.68;
  }

  .service-feature h2 {
    font-size: clamp(26px, 7.8vw, 33px);
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .service-kicker,
  .project-type {
    font-size: 10.5px;
    line-height: 1.35;
    letter-spacing: .105em;
  }

  .service-feature li,
  .deliverable-grid div {
    font-size: 13px;
    line-height: 1.4;
  }

  .filter-btn,
  .portfolio-filters .filter-btn,
  .home-filters .filter-btn {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 12.5px;
    line-height: 1.25;
  }

  .text-link,
  .project-read {
    font-size: 13px;
  }

  .trust-item {
    font-size: 11px;
    line-height: 1.35;
  }

  .page-hero {
    padding: 58px 0;
  }

  .page-hero h1 {
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.04;
    letter-spacing: -.045em;
  }

  .portfolio-intro h2,
  .services-intro h2 {
    max-width: 100%;
  }

  .portfolio-cta,
  .service-bottom-cta {
    padding: 25px 21px;
    border-radius: 18px;
  }
}

@media (max-width:390px) {
  .hero h1,
  .page-hero h1 {
    font-size: clamp(34px, 9.7vw, 40px);
  }

  .section-head h2,
  .portfolio-intro h2,
  .services-intro h2 {
    font-size: clamp(28px, 8.2vw, 36px);
  }

  .section-head p,
  .portfolio-intro p,
  .services-intro > p,
  .section-lead p,
  .service-feature p,
  .service-card p,
  .project-body p,
  .process-card p {
    font-size: 14.5px;
  }

  .filter-btn,
  .portfolio-filters .filter-btn,
  .home-filters .filter-btn {
    font-size: 12px;
  }
}


/* V3.3.24 — fixed project image proportions + homepage project display */
.project-thumb {
  aspect-ratio: 16 / 10;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery-item,
.project-gallery-item.is-large {
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 10;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-hero-image {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.project-detail-hero-image img {
  min-height: 0;
  height: 100%;
  object-fit: cover;
}

.home-project-extra.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .project-detail-hero-image,
  .project-detail-hero-image img {
    min-height: 0;
  }

  .project-gallery-item,
  .project-gallery-item.is-large {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 620px) {
  .project-thumb {
    aspect-ratio: 4 / 3;
  }

  .project-detail-hero-image,
  .project-detail-hero-image img,
  .project-gallery-item,
  .project-gallery-item.is-large {
    aspect-ratio: 4 / 3;
  }
}

/* =========================================================
   V3.3.24 — Project CTA responsive polish
   Keep CTA labels and arrows aligned and prevent awkward
   line breaks on project pages.
   ========================================================= */
.project-facts-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 46px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.15;
}

.project-detail-cta > div:first-child {
  min-width: 0;
}

.project-detail-cta > .btn {
  flex: 0 0 auto;
  min-width: 168px;
  min-height: 48px;
  white-space: nowrap;
  text-align: center;
  padding: 12px 16px;
}

@media (max-width: 900px) {
  .project-detail-cta {
    gap: 22px;
  }

  .project-detail-cta > .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .project-facts-cta {
    width: 100%;
    min-height: 44px;
    padding: 10px 10px;
    font-size: 12px;
    letter-spacing: -.01em;
  }

  .project-detail-cta {
    padding: 24px 20px;
    gap: 20px;
  }

  .project-detail-cta h2 {
    font-size: clamp(25px, 7.6vw, 34px);
    line-height: 1.08;
    margin-bottom: 10px;
  }

  .project-detail-cta p {
    font-size: 14.5px;
    line-height: 1.62;
  }

  .project-detail-cta > .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 13.5px;
  }
}

@media (max-width: 390px) {
  .project-facts-cta {
    font-size: 11.5px;
    padding-inline: 8px;
  }

  .project-detail-cta {
    padding: 22px 17px;
  }

  .project-detail-cta > .btn {
    font-size: 13px;
  }
}


/* V3.5.0 — Réalisations: canonical taxonomy filters + professional gallery lightbox */
.project-card.is-hidden {
  display: none !important;
}

.image-lightbox-stage {
  position: relative;
  width: min(1400px, 94vw);
  height: min(88vh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-lightbox-image {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto;
  height: auto;
  transform-origin: center center;
  transition: transform .15s ease;
  user-select: none;
  will-change: transform;
}

.image-lightbox-controls {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  background: rgba(4,16,25,.82);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  z-index: 3;
}

.image-lightbox-controls button,
.image-lightbox-zoom-value {
  position: static !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  display: inline-grid;
  place-items: center;
  font: inherit;
  cursor: pointer;
}

.image-lightbox-controls button:hover {
  background: rgba(255,255,255,.22) !important;
}

.image-lightbox-zoom-value {
  width: auto !important;
  min-width: 58px;
  background: transparent !important;
  font-size: 12px;
}

.image-lightbox-controls .image-lightbox-zoom-reset {
  width: auto !important;
  min-width: 92px;
  padding: 0 13px;
  border-radius: 20px !important;
  font-size: 11px;
}

@media (max-width: 620px) {
  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox-stage {
    width: 96vw;
    height: 88vh;
  }

  .image-lightbox-controls {
    bottom: 10px;
  }
}

/* Professional gallery close button */
.image-lightbox .image-lightbox-close {
  position: fixed !important;
  top: 22px !important;
  right: 22px !important;
  z-index: 20;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.96) !important;
  color: var(--td-blue) !important;
  font-family: Arial, sans-serif;
  font-size: 30px !important;
  font-weight: 300;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.image-lightbox .image-lightbox-close:hover {
  transform: scale(1.06);
  background: #fff !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.30);
}

.image-lightbox .image-lightbox-close:focus-visible {
  outline: 3px solid rgba(255,255,255,.55);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .image-lightbox .image-lightbox-close {
    top: 12px !important;
    right: 12px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    font-size: 27px !important;
  }
}


/* V3.5.0 — Mobile project detail + touch gallery polish */
@media (max-width: 620px) {
  /* Reduce the large vertical gaps on project detail pages. */
  .project-detail-hero {
    padding: 34px 0 0;
  }

  .project-detail-hero-grid {
    gap: 22px;
  }

  .project-detail-intro {
    padding-bottom: 8px;
  }

  .project-detail-intro h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.02;
    margin: 8px 0 14px;
  }

  .project-lead {
    font-size: 15px;
    line-height: 1.58;
  }

  .project-detail-tags {
    margin-top: 16px;
  }

  .project-detail-hero-image,
  .project-detail-hero-image img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .project-detail-page.section {
    padding: 34px 0 52px;
  }

  .project-detail-layout {
    gap: 28px;
  }

  .project-facts-card {
    padding: 18px;
    border-radius: 16px;
  }

  .project-facts-card h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .project-fact {
    padding: 10px 0;
  }

  .project-fact span {
    font-size: 9.5px;
    margin-bottom: 3px;
  }

  .project-fact strong {
    font-size: 12.5px;
  }

  .project-facts-cta {
    margin-top: 14px;
  }

  .project-story {
    font-size: 15.5px;
    line-height: 1.7;
  }

  .project-story h2 {
    margin-top: 24px;
    font-size: clamp(27px, 8vw, 36px);
  }

  .project-story h3 {
    margin-top: 24px;
  }

  .project-gallery-section {
    margin-top: 34px;
  }

  .section-head.compact {
    margin-bottom: 16px;
  }

  .project-detail-gallery {
    gap: 10px;
  }

  .project-gallery-item,
  .project-gallery-item.is-large {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: 13px;
  }

  .project-gallery-item span {
    opacity: 1;
    transform: none;
    right: 9px;
    bottom: 9px;
    padding: 7px 9px;
    font-size: 9px;
  }

  .project-detail-cta {
    margin-top: 34px;
  }
}

/* Gallery controls have dedicated positions so Close and Next never overlap. */
.image-lightbox .image-lightbox-prev,
.image-lightbox .image-lightbox-next {
  position: fixed !important;
  top: 50% !important;
  right: auto !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.94) !important;
  color: var(--td-blue) !important;
  font-size: 34px !important;
  line-height: 1 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.image-lightbox .image-lightbox-prev { left: 22px !important; }
.image-lightbox .image-lightbox-next { right: 22px !important; }
.image-lightbox .image-lightbox-prev:hover,
.image-lightbox .image-lightbox-next:hover {
  transform: translateY(-50%) scale(1.06) !important;
}

.image-lightbox .image-lightbox-prev:disabled,
.image-lightbox .image-lightbox-next:disabled {
  opacity: .35;
  cursor: default;
}

.image-lightbox-stage {
  touch-action: none;
}

.image-lightbox-image {
  touch-action: none;
  -webkit-user-drag: none;
}

@media (max-width: 620px) {
  .image-lightbox {
    padding: 8px !important;
  }

  .image-lightbox-stage {
    width: 100vw;
    height: 84vh;
  }

  .image-lightbox .image-lightbox-close {
    top: 12px !important;
    right: 12px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    font-size: 27px !important;
  }

  .image-lightbox .image-lightbox-prev,
  .image-lightbox .image-lightbox-next {
    top: auto !important;
    bottom: 82px !important;
    transform: none !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    font-size: 29px !important;
  }

  .image-lightbox .image-lightbox-prev { left: 12px !important; }
  .image-lightbox .image-lightbox-next { right: 12px !important; }

  .image-lightbox .image-lightbox-prev:hover,
  .image-lightbox .image-lightbox-next:hover {
    transform: scale(1.04) !important;
  }

  .image-lightbox-controls {
    bottom: 12px !important;
    max-width: calc(100vw - 104px);
    padding: 6px;
    gap: 4px;
  }

  .image-lightbox-controls button,
  .image-lightbox-zoom-value {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
  }

  .image-lightbox-controls .image-lightbox-zoom-reset {
    min-width: 82px;
    padding: 0 9px;
    font-size: 10px;
  }
}


/* V3.5.0 — Gallery controls aligned to the actual image stage + smoother next image */
.image-lightbox-stage { position: relative; }
.image-lightbox-image.is-switching { opacity: .82; }
.image-lightbox-image { transition: transform .15s ease, opacity .12s ease; }

.image-lightbox .image-lightbox-prev,
.image-lightbox .image-lightbox-next {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 12 !important;
}
.image-lightbox .image-lightbox-prev { left: 14px !important; }
.image-lightbox .image-lightbox-next { right: 14px !important; }
.image-lightbox .image-lightbox-prev:hover,
.image-lightbox .image-lightbox-next:hover { transform: translateY(-50%) scale(1.06) !important; }

@media (max-width: 620px) {
  .image-lightbox-stage {
    width: 100vw !important;
    height: 84vh !important;
  }
  .image-lightbox .image-lightbox-prev,
  .image-lightbox .image-lightbox-next {
    top: 50% !important;
    bottom: auto !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
  .image-lightbox .image-lightbox-prev { left: 10px !important; }
  .image-lightbox .image-lightbox-next { right: 10px !important; }
  .image-lightbox .image-lightbox-prev:hover,
  .image-lightbox .image-lightbox-next:hover { transform: translateY(-50%) scale(1.04) !important; }
  .image-lightbox-controls {
    bottom: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 13 !important;
  }
}


/* =========================================================
   V3.5 — Professional image preview / no-crop system
   Images must remain fully visible on desktop and mobile.
   ========================================================= */

/* Project cards: preserve the complete source image instead of
   cropping drawings, plans and technical renders. */
.project-thumb {
  position: relative;
  aspect-ratio: auto !important;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(19,66,99,.055), rgba(19,66,99,.015)),
    #eef3f6;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: auto !important;
  max-height: 430px;
  object-fit: contain !important;
  object-position: center;
  margin: 0 auto;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.025);
  filter: saturate(1.03);
}

/* A subtle frame makes white technical drawings look intentional. */
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(19,66,99,.08);
  border-radius: inherit;
  pointer-events: none;
}

/* Project detail hero: never cut the supplied image. */
.project-detail-hero-image {
  aspect-ratio: auto !important;
  min-height: 0 !important;
  max-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(19,66,99,.07), rgba(19,66,99,.015)),
    #eef3f6;
  box-shadow: 0 24px 70px rgba(16,35,51,.14);
}

.project-detail-hero-image img {
  width: 100%;
  height: auto !important;
  max-height: 720px;
  object-fit: contain !important;
  object-position: center;
}

/* Gallery: show complete drawings/photos while keeping a clean grid. */
.project-gallery-item,
.project-gallery-item.is-large {
  aspect-ratio: auto !important;
  min-height: 0 !important;
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(19,66,99,.055), rgba(19,66,99,.012)),
    #eef3f6;
}

.project-gallery-item img {
  width: 100%;
  height: auto !important;
  max-height: 620px;
  object-fit: contain !important;
  object-position: center;
}

.project-gallery-item.is-large img {
  max-height: 760px;
}

/* Keep the information overlay readable without hiding the image. */
.project-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(19,66,99,.08);
  pointer-events: none;
}

/* Better project-card proportions on desktop. */
.project-card {
  overflow: hidden;
}

.project-body {
  padding: 24px 24px 26px;
}

.project-body h3 {
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.18;
  margin: 8px 0 10px;
}

.project-body p {
  max-width: 58ch;
}

/* Lightbox image: use the whole viewport instead of cropping. */
.image-lightbox img,
.image-lightbox .lightbox-image,
.image-lightbox figure img {
  max-width: min(92vw, 1500px) !important;
  max-height: 88vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Desktop polish */
@media (min-width: 901px) {
  .project-thumb {
    min-height: 320px;
  }

  .project-detail-hero-grid {
    align-items: center;
  }

  .project-detail-hero-image {
    max-height: 680px;
  }

  .project-detail-hero-image img {
    max-height: 680px;
  }

  .project-detail-gallery {
    gap: 18px;
  }

  .project-gallery-item {
    border-radius: 18px;
  }

  .project-gallery-item.is-large {
    min-height: 0 !important;
  }
}

/* Tablet/mobile: maintain full image visibility without giant empty areas. */
@media (max-width: 900px) {
  .project-thumb {
    min-height: 240px;
  }

  .project-thumb img {
    max-height: 380px;
  }

  .project-detail-hero-image,
  .project-detail-hero-image img {
    max-height: 520px;
  }

  .project-gallery-item img,
  .project-gallery-item.is-large img {
    max-height: 520px;
  }
}

@media (max-width: 620px) {
  .project-thumb {
    min-height: 210px;
  }

  .project-thumb img {
    max-height: 330px;
  }

  .project-detail-hero-image {
    border-radius: 16px;
  }

  .project-detail-hero-image img {
    max-height: 430px;
  }

  .project-gallery-item,
  .project-gallery-item.is-large {
    border-radius: 14px;
  }

  .project-gallery-item img,
  .project-gallery-item.is-large img {
    max-height: 430px;
  }
}

/* Accessibility: respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  .project-thumb img,
  .project-gallery-item img {
    transition: none;
  }
}


/* =========================================================
   V3.5 — Professional project image preview
   Clean hierarchy, stable controls and fast image switching.
   ========================================================= */
.image-lightbox {
  padding: 0 !important;
  background: rgba(5, 18, 28, .97) !important;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}

.image-lightbox-topbar {
  flex: 0 0 72px;
  min-height: 72px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 28px;
  box-sizing: border-box;
  z-index: 30;
  background: rgba(5,18,28,.72);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(14px);
}

.image-lightbox-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .01em;
}
.image-lightbox-title span { opacity: .72; }
.image-lightbox-title strong { font-size: 12px; font-weight: 600; opacity: .95; }

.image-lightbox-stage {
  position: relative !important;
  flex: 1 1 auto;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px 96px 24px;
  box-sizing: border-box;
  touch-action: none;
}

.image-lightbox-image {
  display: block;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 2px;
  box-shadow: 0 18px 70px rgba(0,0,0,.28);
  transition: opacity .14s ease, transform .18s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.image-lightbox-image.is-loading { opacity: 0; }
.image-lightbox-image.is-switching { opacity: .55; }

.image-lightbox-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  display: none;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(5,18,28,.78);
  border: 1px solid rgba(255,255,255,.12);
  z-index: 8;
}
.image-lightbox-loader.is-visible { display: flex; }
.image-lightbox-loader span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  animation: tdLightboxDot 1s infinite ease-in-out;
}
.image-lightbox-loader span:nth-child(2) { animation-delay: .12s; }
.image-lightbox-loader span:nth-child(3) { animation-delay: .24s; }
@keyframes tdLightboxDot {
  0%, 70%, 100% { transform: translateY(0); opacity: .35; }
  35% { transform: translateY(-4px); opacity: 1; }
}

.image-lightbox .image-lightbox-close {
  position: static !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  flex: 0 0 44px;
  border-radius: 12px !important;
  background: rgba(255,255,255,.96) !important;
  color: var(--td-blue) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  box-shadow: none;
  font-size: 29px !important;
  cursor: pointer;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
}
.image-lightbox .image-lightbox-close:hover { transform: none; background: #fff !important; }

.image-lightbox .image-lightbox-prev,
.image-lightbox .image-lightbox-next {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  border-radius: 14px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255,255,255,.95) !important;
  color: var(--td-blue) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
  font-size: 34px !important;
  line-height: 1 !important;
  z-index: 12 !important;
}
.image-lightbox .image-lightbox-prev { left: 28px !important; }
.image-lightbox .image-lightbox-next { right: 28px !important; }
.image-lightbox .image-lightbox-prev:hover,
.image-lightbox .image-lightbox-next:hover { transform: translateY(-50%) scale(1.04) !important; }

.image-lightbox-controls {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 7px;
  background: rgba(5,18,28,.88);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  z-index: 20;
}
.image-lightbox-controls button,
.image-lightbox-zoom-value {
  position: static !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.10) !important;
  color: #fff !important;
  display: inline-grid !important;
  place-items: center !important;
  font: inherit;
  cursor: pointer;
}
.image-lightbox-controls button:hover { background: rgba(255,255,255,.18) !important; }
.image-lightbox-zoom-value { min-width: 54px !important; background: transparent !important; font-size: 12px; }
.image-lightbox-controls .image-lightbox-zoom-reset {
  width: auto !important;
  min-width: 94px !important;
  padding: 0 12px;
  font-size: 11px;
}

@media (max-width: 620px) {
  .image-lightbox-topbar {
    flex-basis: 58px;
    min-height: 58px;
    padding: 0 12px 0 16px;
  }
  .image-lightbox-title { font-size: 12px; gap: 8px; }
  .image-lightbox-title strong { font-size: 11px; }
  .image-lightbox .image-lightbox-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-basis: 40px;
    border-radius: 11px !important;
    font-size: 26px !important;
  }
  .image-lightbox-stage {
    padding: 10px 58px 14px;
  }
  .image-lightbox .image-lightbox-prev,
  .image-lightbox .image-lightbox-next {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 11px !important;
    font-size: 28px !important;
  }
  .image-lightbox .image-lightbox-prev { left: 10px !important; }
  .image-lightbox .image-lightbox-next { right: 10px !important; }
  .image-lightbox-controls {
    margin-bottom: max(10px, env(safe-area-inset-bottom));
    padding: 6px;
    gap: 4px;
    border-radius: 13px;
    max-width: calc(100vw - 20px);
  }
  .image-lightbox-controls button,
  .image-lightbox-zoom-value {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 9px !important;
  }
  .image-lightbox-zoom-value { min-width: 50px !important; }
  .image-lightbox-controls .image-lightbox-zoom-reset {
    min-width: 78px !important;
    padding: 0 8px;
    font-size: 10px;
  }
}

@media (max-width: 390px) {
  .image-lightbox-stage { padding-left: 50px; padding-right: 50px; }
  .image-lightbox .image-lightbox-prev { left: 7px !important; }
  .image-lightbox .image-lightbox-next { right: 7px !important; }
  .image-lightbox-controls .image-lightbox-zoom-reset { min-width: 70px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox-image,
  .image-lightbox-loader span { transition: none; animation: none; }
}

/* =========================================================
   V3.5.1 — Full image visibility in project lightbox
   The image must ALWAYS fit completely inside the viewport at 100%.
   ========================================================= */
.image-lightbox-stage {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 16px 92px 18px !important;
}

.image-lightbox .image-lightbox-image {
  /* Never crop the source image while it is at 100%. */
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 184px) !important;
  max-height: calc(100dvh - 148px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  flex: 0 1 auto !important;
  margin: auto !important;
}

@media (max-width: 620px) {
  .image-lightbox-stage {
    padding: 10px 56px 12px !important;
  }

  .image-lightbox .image-lightbox-image {
    max-width: calc(100vw - 112px) !important;
    max-height: calc(100dvh - 122px) !important;
  }
}

@media (max-width: 390px) {
  .image-lightbox-stage {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }

  .image-lightbox .image-lightbox-image {
    max-width: calc(100vw - 96px) !important;
    max-height: calc(100dvh - 122px) !important;
  }
}

/* Older browsers without dynamic viewport units. */
@supports not (height: 100dvh) {
  .image-lightbox .image-lightbox-image {
    max-height: calc(100vh - 148px) !important;
  }
  @media (max-width: 620px) {
    .image-lightbox .image-lightbox-image {
      max-height: calc(100vh - 122px) !important;
    }
  }
}
