/* ==========================================================================
   BUILDERS & DEVELOPERS — Design System
   Concept: "We Build What We Draw" — a blueprint / drafting-table vernacular.
   Palette:   Site Paper #F1EFE8 · Concrete Ink #211F1C · Blueprint #1D5C79
              Blueprint Tint #DCE8EA · Survey Flag #E8A33D · Steel #5B6763
   Type:      Archivo (display) · IBM Plex Mono (spec/annotation) · Inter (body)
   Signature: Blueprint grid + drafting crop-marks used at hero & section seams.
   ========================================================================== */

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
}
p {
  line-height: 1.7;
}

/* ---- Tokens ---- */
:root {
  --paper: #f1efe8;
  --paper-alt: #e8e4d8;
  --white: #ffffff;
  --ink: #211f1c;
  --ink-soft: #3a3733;
  --blueprint: #1d5c79;
  --blueprint-dark: #143f52;
  --blueprint-tint: #dce8ea;
  --flag: #e8a33d;
  --flag-dark: #c6832a;
  --steel: #5b6763;
  --steel-light: #d8d6cc;
  --success: #2f7a4d;

  --font-display: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-body: "Inter", sans-serif;

  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --gap: 24px;
  --section-pad: clamp(64px, 9vw, 120px);

  --shadow-sm: 0 2px 10px rgba(33, 31, 28, 0.06);
  --shadow-md: 0 14px 40px rgba(33, 31, 28, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark h2,
.section--dark h3 {
  color: var(--paper);
}
.section--tint {
  background: var(--blueprint-tint);
}
.section--alt {
  background: var(--paper-alt);
}

/* ---- Eyebrow / spec label (mono, annotation-style) ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--flag);
}
.section--dark .eyebrow {
  color: var(--flag);
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head.center {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--steel);
  font-size: 17px;
  max-width: 560px;
}
.section-head.center p {
  margin: 0 auto;
}

/* ---- Blueprint grid decorative layer ---- */
.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 92, 121, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 92, 121, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.section--dark .blueprint-grid {
  background-image:
    linear-gradient(rgba(220, 232, 234, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 232, 234, 0.06) 1px, transparent 1px);
}

/* Drafting crop-marks used to frame key blocks (hero, CTA) */
.crop-marks {
  position: relative;
}
.crop-marks::before,
.crop-marks::after,
.crop-marks .cm-tr,
.crop-marks .cm-bl {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: currentColor;
  border-style: solid;
  border-width: 0;
  opacity: 0.55;
}
.crop-marks::before {
  top: -1px;
  left: -1px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.crop-marks::after {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--flag);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--flag-dark);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
.section--dark .btn-outline {
  color: var(--paper);
}
.section--dark .btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost {
  color: var(--blueprint);
  font-weight: 600;
  padding: 8px 0;
  gap: 8px;
}
.btn-ghost svg {
  width:22px;
  transition: transform 0.25s var(--ease);
}
.btn-ghost:hover svg {
  transform: translateX(4px);
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 22px 0;
  transition:
    padding 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.is-scrolled {
  padding: 13px 0;
  background: rgba(241, 239, 232, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(33, 31, 28, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
}
.logo-mark {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--flag);
  border-style: solid;
}
.logo-mark::before {
  top: -4px;
  left: -4px;
  border-width: 2px 0 0 2px;
}
.logo-mark::after {
  bottom: -4px;
  right: -4px;
  border-width: 0 2px 2px 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.logo-text span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--blueprint);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--flag);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}
.nav-links a.is-active {
  color: var(--blueprint);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
}
.header-phone svg {
  width: 16px;
  height: 16px;
  color: var(--flag);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(33, 31, 28, 0.55) 0%,
    rgba(33, 31, 28, 0.78) 65%,
    rgba(33, 31, 28, 0.94) 100%
  );
}
.hero .blueprint-grid {
  opacity: 0.7;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--paper);
  max-width: 760px;
}
.hero-frame {
  border: 1px solid rgba(241, 239, 232, 0.35);
  padding: 44px clamp(20px, 4vw, 56px);
  color: var(--paper);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flag);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-eyebrow span {
  padding: 3px 10px;
  border: 1px solid rgba(232, 163, 61, 0.5);
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--flag);
}
.hero p.lead {
  font-size: 18px;
  color: var(--steel-light);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(241, 239, 232, 0.2);
  padding-top: 28px;
  max-width: 760px;
  flex-wrap: wrap;
}
.hero-stats .stat {
  flex: 1;
  min-width: 130px;
  padding-right: 24px;
}
.hero-stats .stat .num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.hero-stats .stat .num .suffix {
  color: var(--flag);
  font-size: 22px;
}
.hero-stats .stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-top: 4px;
}

/* ---- Page header (interior pages) ---- */
.page-header {
  position: relative;
  padding: 168px 0 72px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flag);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a {
  color: var(--steel-light);
}
.breadcrumb a:hover {
  color: var(--paper);
}
.page-header h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  color: var(--paper);
  letter-spacing: -0.01em;
  max-width: 700px;
}
.page-header p {
  color: var(--steel-light);
  max-width: 560px;
  margin-top: 16px;
  font-size: 17px;
}

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---- Grid helpers ---- */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---- About preview (home) ---- */
.about-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-preview-media {
  position: relative;
}
.about-preview-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.about-preview-media .crop-marks {
  color: var(--flag);
}
.about-preview-badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--ink);
  color: var(--paper);
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
}
.about-preview-badge .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--flag);
}
.about-preview-badge .txt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-top: 2px;
}
.about-preview-body p {
  color: var(--steel);
  margin-bottom: 18px;
  font-size: 16px;
}
.about-preview-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 32px;
}
.about-preview-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}
.about-preview-list svg {
  width: 20px;
  height: 20px;
  color: var(--blueprint);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Services ---- */
.services-grid {
  grid-template-columns: repeat(3, 1fr);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blueprint);
}
.service-icon {
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.service-card:hover .service-icon {
  background: var(--blueprint);
  border-color: var(--blueprint);
}
.service-card:hover .service-icon svg {
  color: var(--white);
}
.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--steel);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.service-card .btn-ghost {
  display: flex;
  flex-direction: row;
  font-size: 14px;
}

/* Services page — detailed alternating rows */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--steel-light);
}
.service-detail:last-of-type {
  border-bottom: none;
}
.service-detail.is-reverse .service-detail-media {
  order: 2;
}
.service-detail-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.service-detail-body .eyebrow {
  margin-bottom: 12px;
}
.service-detail-body h3 {
  font-size: 28px;
  margin-bottom: 14px;
}
.service-detail-body p {
  color: var(--steel);
  margin-bottom: 22px;
}
.service-detail-list {
  display: grid;
  gap: 12px;
}
.service-detail-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}
.service-detail-list svg {
  width: 18px;
  height: 18px;
  color: var(--flag-dark);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---- Why choose us ---- */
.features-grid {
  grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  text-align: left;
}
.feature-item .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--flag);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.feature-item svg {
  width: 32px;
  height: 32px;
  color: var(--blueprint);
  margin-bottom: 16px;
}
.feature-item h4 {
  font-size: 17px;
  margin-bottom: 8px;
}
.feature-item p {
  color: var(--steel);
  font-size: 14.5px;
}

/* ---- Stats band ---- */
.stats-band {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  position: relative;
  z-index: 2;
}
.stat-block .num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 54px);
  font-weight: 800;
  color: var(--paper);
}
.stat-block .num .suffix {
  color: var(--flag);
}
.stat-block .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-top: 8px;
}

/* ---- Process / timeline (a genuine ordered sequence — numbering justified) ---- */
.process-grid {
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.process-step {
  position: relative;
  padding-top: 8px;
}
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blueprint);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  display: block;
}
.process-step h4 {
  font-size: 18px;
  margin-bottom: 10px;
}
.process-step p {
  color: var(--steel);
  font-size: 14.5px;
}
.process-line {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--steel-light);
  z-index: 0;
}

/* ---- Projects grid ---- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1.5px solid var(--steel-light);
  border-radius: 999px;
  color: var(--steel);
  transition: all 0.25s var(--ease);
}
.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.projects-grid {
  grid-template-columns: repeat(3, 1fr);
}
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
}
.project-card.is-hidden {
  display: none;
}
.project-card-media {
  position: relative;
  height: 340px;
  overflow: hidden;
}
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-card-media img {
  transform: scale(1.08);
}
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(33, 31, 28, 0) 40%,
    rgba(33, 31, 28, 0.9) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: var(--paper);
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flag);
  margin-bottom: 8px;
  display: inline-block;
  width: fit-content;
  border: 1px solid rgba(232, 163, 61, 0.5);
  padding: 3px 9px;
}
.project-card-overlay h3 {
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 4px;
}
.project-card-overlay .loc {
  font-size: 13.5px;
  color: var(--steel-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-card-overlay .loc svg {
  width: 14px;
  height: 14px;
  color: var(--flag);
}
.project-view-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(241, 239, 232, 0.15);
  border: 1px solid rgba(241, 239, 232, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s var(--ease);
}
.project-card:hover .project-view-btn {
  opacity: 1;
  transform: translateY(0);
}
.project-view-btn svg {
  width: 18px;
  height: 18px;
  color: var(--paper);
}

/* ---- Lightbox modal ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(33, 31, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-inner {
  background: var(--paper);
  max-width: 920px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  transform: translateY(20px);
  transition: transform 0.35s var(--ease);
}
.lightbox.is-open .lightbox-inner {
  transform: translateY(0);
}
.lightbox-media {
  height: 100%;
  min-height: 320px;
}
.lightbox-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lightbox-body {
  padding: 40px;
  position: relative;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close svg {
  width: 18px;
  height: 18px;
}
.lightbox-body .project-tag {
  position: static;
  margin-bottom: 16px;
  color: var(--blueprint);
  border-color: var(--blueprint);
}
.lightbox-body h3 {
  font-size: 26px;
  margin-bottom: 14px;
}
.lightbox-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
  padding: 20px 0;
  border-top: 1px solid var(--steel-light);
  border-bottom: 1px solid var(--steel-light);
}
.lightbox-meta div span {
  display: block;
}
.lightbox-meta .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}
.lightbox-meta .v {
  font-weight: 600;
  font-size: 14.5px;
}
.lightbox-body p.desc {
  color: var(--steel);
  margin-bottom: 24px;
}

/* ---- Team ---- */
.team-grid {
  grid-template-columns: repeat(4, 1fr);
}
.team-card {
  text-align: left;
}
.team-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.team-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.team-card:hover .team-photo img {
  transform: scale(1.06);
}
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--flag);
  margin: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.team-card:hover .team-photo::after {
  opacity: 1;
}
.team-card h4 {
  font-size: 17px;
  margin-bottom: 4px;
}
.team-card .role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blueprint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Values ---- */
.values-grid {
  grid-template-columns: repeat(4, 1fr);
}
.value-card {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.value-card svg {
  width: 30px;
  height: 30px;
  color: var(--flag-dark);
  margin-bottom: 18px;
}
.value-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}
.value-card p {
  color: var(--steel);
  font-size: 14.5px;
}

/* ---- Testimonials ---- */
.testimonial-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.testimonial-track {
  overflow: hidden;
}
.testimonial-slides {
  display: flex;
  transition: transform 0.5s var(--ease);
}
.testimonial-slide {
  flex: 0 0 100%;
  text-align: center;
  padding: 0 8px;
}
.testimonial-quote-icon {
  color: var(--flag);
  width: 40px;
  height: 40px;
  margin: 0 auto 24px;
}
.testimonial-slide p.quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 28px;
}
.section--dark .testimonial-slide p.quote {
  color: var(--paper);
}
.testimonial-person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testimonial-person img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-person .name {
  font-weight: 700;
  font-size: 15px;
}
.testimonial-person .role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section--dark .testimonial-person .role {
  color: var(--steel-light);
}
.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel-light);
  transition: all 0.25s var(--ease);
}
.testimonial-dot.is-active {
  background: var(--flag);
  width: 24px;
  border-radius: 4px;
}
.section--dark .testimonial-dot {
  background: rgba(241, 239, 232, 0.25);
}

/* ---- CTA banner ---- */
.cta-banner {
  padding:15px;
  position: relative;
  overflow: hidden;
  background: var(--blueprint-dark);
  color: var(--paper);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.cta-banner .container {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-banner h2 {
  color: var(--paper);
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner p {
  color: var(--blueprint-tint);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 34px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-banner .btn-outline {
  border-color: rgba(241, 239, 232, 0.5);
  color: var(--paper);
}
.cta-banner .btn-outline:hover {
  background: var(--paper);
  color: var(--blueprint-dark);
}

/* ---- FAQ accordion ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--steel-light);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}
.faq-question .icon {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.faq-question .icon::before,
.faq-question .icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.faq-question .icon::before {
  width: 10px;
  height: 1.5px;
}
.faq-question .icon::after {
  width: 1.5px;
  height: 10px;
}
.faq-item.is-open .faq-question .icon::after {
  transform: rotate(90deg) scaleY(0);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-answer p {
  padding: 0 4px 26px;
  color: var(--steel);
  max-width: 680px;
}
.faq-item.is-open .faq-answer {
  max-height: 240px;
}

/* ---- Contact page ---- */
.contact-grid {
  grid-template-columns: 1fr 0.85fr;
  gap: 64px;
  align-items: start;
}
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius-md);
  padding: 44px;
  position: relative;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--steel-light);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 15px;
  transition: border-color 0.25s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blueprint);
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #c0453a;
}
.form-error {
  font-size: 12.5px;
  color: #c0453a;
  display: none;
}
.form-group.has-error .form-error {
  display: block;
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.form-note {
  font-size: 12.5px;
  color: var(--steel);
  margin-top: 16px;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form-success.is-visible {
  display: block;
}
.contact-form.is-hidden {
  display: none;
}
.form-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blueprint-tint);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.form-success-icon svg {
  width: 28px;
  height: 28px;
}
.form-success h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.form-success p {
  color: var(--steel);
  margin-bottom: 26px;
}

.contact-info-list {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius-md);
  padding: 22px;
}
.contact-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--blueprint);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}
.contact-info-item .v {
  font-weight: 600;
  font-size: 15px;
}
.contact-info-item .v a:hover {
  color: var(--blueprint);
}
.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}
.whatsapp-cta svg {
  width: 36px;
  height: 36px;
  color: #3fc352;
  flex-shrink: 0;
}
.whatsapp-cta h4 {
  color: var(--paper);
  font-size: 16px;
  margin-bottom: 4px;
}
.whatsapp-cta p {
  color: var(--steel-light);
  font-size: 13.5px;
  margin-bottom: 12px;
}
.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--steel-light);
  height: 260px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--steel-light);
  padding: 80px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(241, 239, 232, 0.12);
}
.footer-brand .logo-text strong,
.footer-brand .logo-mark {
  color: var(--paper);
  border-color: var(--paper);
}
.footer-brand p {
  margin: 20px 0 24px;
  font-size: 14.5px;
  max-width: 300px;
  color: var(--steel-light);
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(241, 239, 232, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}
.footer-social a:hover {
  background: var(--flag);
  border-color: var(--flag);
}
.footer-social svg {
  width: 16px;
  height: 16px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 22px;
}
.footer-col ul {
  display: grid;
  gap: 13px;
}
.footer-col a,
.footer-col li {
  font-size: 14.5px;
  color: var(--steel-light);
}
.footer-col a:hover {
  color: var(--flag);
}
.footer-col .contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-col .contact-line svg {
  width: 16px;
  height: 16px;
  color: var(--flag);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a {
  color: var(--flag);
}

/* ---- Floating action buttons ---- */
.fab-group {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease);
}
.fab:hover {
  transform: scale(1.08);
}
.fab-whatsapp {
  background: #25d366;
  color: #fff;
}
.fab-whatsapp svg {
  width: 28px;
  height: 28px;
}
.fab-top {
  background: var(--white);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  width: 44px;
  height: 44px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.fab-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fab-top svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid,
  .team-grid,
  .values-grid,
  .process-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
  .about-preview,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-preview-media img {
    height: 380px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 84vw);
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 110px 32px 40px;
    gap: 36px;
    transition: right 0.35s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
  }
  .main-nav.is-open {
    right: 0;
  }
  .nav-links {
    flex-direction: column;
    gap: 24px;
  }
  .nav-links a {
    font-size: 17px;
  }
  .header-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-stats .stat {
    flex: 0 0 50%;
    margin-bottom: 20px;
  }
  .service-detail,
  .service-detail.is-reverse {
    grid-template-columns: 1fr;
  }
  .service-detail-media {
    order: -1 !important;
  }
  .lightbox-inner {
    grid-template-columns: 1fr;
  }
  .lightbox-media {
    height: 240px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 64px;
  }
  .services-grid,
  .team-grid,
  .values-grid,
  .process-grid,
  .features-grid,
  .projects-grid,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-line {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .hero {
    min-height: auto;
    padding-bottom: 80px;
  }
  .hero-frame {
    padding: 30px 22px;
  }
  .lightbox {
    padding: 0;
  }
  .lightbox-inner {
    max-height: 100vh;
    border-radius: 0;
  }
}
