:root {
  --baseline: 8px;

  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 24px;
  --fs-xl: 32px;
  --fs-2xl: 48px;
  --fs-3xl: 64px;
  
  --h1-size: 42px;
  --h3-size: 25px;
  --h4-size: 18px;
  --h5-size: 14px;
  --h6-size: 12px;
 

  --c-black: #000;
  --c-dark-gray: #0A0A0A;
  --c-smoked-gray: #121214;
  --c-charcoal: #2D3033;
  --c-light-ash: #565A60;
  --c-space-gray: #A4A8B2;
  --c-sky-gray: #B6BAC6; 
  --c-pale-gray: #D6D6DF;
  --c-white: #fff;

  --container-max: 1440px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #888;
  border: 2px solid white;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.5s ease, height 0.5s ease, opacity 0.3s ease, background 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor.visible { opacity: 1;}

.custom-cursor.hovering {
  width: 18px !important;
  height: 18px !important;
  background: rgba(86, 90, 96, 0.7) !important;
}

hr {
  border: none;
  height: 1px;
  border-color: var(--c-sky-gray);
  color: var(--c-sky-gray);
  background-color: var(--c-sky-gray);
}

h1 {font-family: "Playfair", Georgia, 'Times New Roman', Times, serif; font-size: 62px;font-weight:300; color: var(--c-dark-gray);line-height: 60px;padding:0 16px;}
h1 span {color: var(--c-space-gray);}
h3 {font-size: var(--h3-size);font-weight: normal;}
h4 {font-size: var(--h4-size);font-weight: normal;}
h5 {font-size: var(--h5-size);}
h6 {font-size: var(--h6-size);font-weight: normal;}

/* playfair 300, Outfit: 400 - regular  and 700 - bold */

body {
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  font-size: var(--fs-md);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: calc(var(--baseline) * 3);
  color: var(--c-dark-gray);
}

.cspan2 { grid-column: span 2;}
.cspan4 { grid-column: span 4;}
.cspan6 { grid-column: span 6;}
.cspan8 { grid-column: span 8;}
.cspan12 { grid-column: span 12;}
.flexb {display: flex;}

/* 12 Column Grid */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 40px;
}

nav { text-align: right;}

.section { padding: calc(var(--baseline) * 15) 0; }

.container-cover {display: flex;}

a.btn, div.kpi {
  padding: 16px 32px;
  border: 1px solid rgba(10, 10, 10, 1);
  /*border-radius: 999px;*/
  background-color: var(--c-white);
  text-decoration: none;
  color: var(--c-dark-gray);
  font-size: var(--h5-size);
  transition: ease-in-out 0.3s;
}

a.btn:hover {background-color: var(--c-dark-gray);color: var(--c-white);}
div.kpi:hover {filter: brightness(95%);}

div.kpis {
  margin-top:var(--fs-lg);
  display: flex;
  justify-content: left;
  flex-direction: row;
  box-sizing: border-box;
  gap: 32px;
}

div.kpi {
  padding: 32px;
  border-radius: 32px;
  border-color: var(--c-sky-gray);
}
div.kpi h3 {margin-bottom:32px; color: var(--c-light-ash); }
div.kpi h5 {font-weight: normal; color: var(--c-light-ash);text-transform: none; }

/* ─── project thumbnail ───────────────────────────────── */
a.project-thumbnail {
  text-decoration: none;
  color: var(--c-dark-gray);
  margin-bottom: var(--fs-md);
  width: calc(33.333% - 22px);
  box-sizing: border-box;
}
a.project-thumbnail img {
  border-radius: var(--fs-md);
  transition: ease-in-out 0.3s;
  box-sizing: border-box;
  width: 100%;
  min-width: 150px;
}

a.project-thumbnail img:hover {filter: brightness(25%);}

/* ─── overview ───────────────────────────────── */
.section-overview {
  padding-top: 16px;
  display: flex;
  justify-content: center;
  flex-direction: row;
  width:100%;
  gap: auto;
  margin-bottom: var(--fs-3xl);
}

.section-overview ul.meta-list {width: 100%;}

.overview-content {
  width: 100%;
  justify-content: left;
  flex-wrap: wrap;
}

/* ─── center section for everything ───────────────────────────────── */
.section-centered {
display: flex;
gap: 32px;
padding:0 16px;
flex-wrap: wrap;
justify-content: center;
}

/* ─── centered for case study copy ───────────────────────────────── */
.section-centered-copy {
  margin-top: var(--fs-md);
  padding-top: var(--fs-md);
  padding-bottom: var(--fs-2xl);
  border-top:1px solid var(--c-sky-gray);
  display: flex;
  justify-content: center;
  width:100%;
  flex-direction: row;
}

.section-centered-copy .item1 {
  box-sizing: border-box;
  width: 100%;
  max-width: 25%;
}

.section-centered-copy .item2 {
 box-sizing: border-box;
  width: 100%;
  padding-right: 25%;
}

.section-centered-copy h6 { color: var(--c-dark-gray);font-weight: bold;}
.section-centered-copy h4 { color: var(--c-light-ash);}
h4.cs-title {color:var(--c-charcoal);font-weight: 700;letter-spacing: 1px;}
h4.cs-body {margin-top:var(--fs-3xl);color: var(--c-dark-gray);margin-bottom: var(--fs-xl);letter-spacing: 0.5px;}
h4.cs-body span {color: var(--c-space-gray);}
h4.cs-index {color: var(--c-space-gray);white-space: nowrap;}

.section-centered-copy .cs-index {padding-left:16px;}

/* HEADER */
.logo-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  border-bottom: 1px solid var(--c-space-gray);
}

header.hidden {transform: translateY(-100%);}

header .logo-icon svg path {fill: var(--c-black);}

header .logo {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 40px;
  color: var(--c-black);
}

header nav {text-align: right;}

header nav a {
  margin-left: calc(var(--baseline) * 5);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: ease-in-out 0.3s;
  font-weight: bold;
  color: var(--c-black);
}

header nav a:hover {text-decoration: line-through;}

nav {text-align: right;}

header div nav a {
  margin-left: calc(var(--baseline) * 5);
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--c-black);
  transition: ease-in-out 0.3s;
  font-weight: bold;
}

header div nav a:hover {text-decoration: line-through;}

/* HERO */
.hero-title {
  font-size: var(--fs-3xl);
  line-height: calc(var(--baseline) * 9);
}



.hero-title h3 {color:var(--c-light-ash);}

/* hero section */

img.cover-image {
 width:100%;
 height:100%;
 transition: ease-in-out 0.3s;
 cursor: url("data:image/svg+xml,%3Csvg height='32' width='32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle r='16' cx='16' cy='16' fill='red' opacity='0.5' /%3E%3C/svg%3E");
}
img.cover-image:hover {filter: brightness(80%);}

ul.meta-list li.meta-label {
  color: var(--c-space-gray);
  text-transform: uppercase;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

ul.meta-list {
  list-style: none;
  padding: 0;
  text-transform: uppercase;
  margin-bottom: var(--fs-2xl);
  flex: 1;
}

ul.meta-list li {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* TEXT SECTION */
.section-title {font-size: var(--fs-xl);}
.section-text {font-size: var(--fs-lg);flex: 1;}

/* GALLERY */
.gallery-wrapper {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.gallery-container {
  position: relative;
  aspect-ratio: 16/9;
  background: #d8dadd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}

.image-stage {
  position: relative;
  width: 80%;
  height: 80%;
}

.gallery-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.gallery-img.active {opacity: 1;}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  cursor: pointer;
  padding: 16px;
}

.nav-prev { left: 20px; }
.nav-next { right: 20px; }

.thumbnail-strip {
  grid-column: 4 / span 6;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.thumbnail-container {
  width: 60px;
  height: 40px;
  background: var(--c-pale-gray);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.4;
  cursor: pointer;
  transition: ease-in-out 0.3s;
}

.thumbnail-container.active {
  opacity: 1;
  transform: scale(1.1);
}

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

/* ─── FOOTER ─────────────────────────────────────────────── */
    footer {
      width: 100%;
      background: var(--c-dark-gray);
      color: var(--c-white);
      padding: 150px 32px 32px;
    }

    /* Top row: brand + tagline */
    .footer-top {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
    }

    .footer-icon {
      display: flex;
      align-items: center;
    }

    .footer-brand {
      font-size: var(--h4-size);
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      white-space: nowrap;
      line-height: 1;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }

    .footer-spacer {flex: 1;}

    /* Tagline below brand row */
    .footer-tagline {
      font-size: var(--h1-size);
      font-weight: 300;
      font-weight:lighter;
      letter-spacing: 0.02em;
      color: var(--c-white);
      line-height: 1.5;
      border-top: 1px solid var(--c-light-ash);
      margin-bottom: 8px;
      padding: 8px 0px ;
    }

    .footer-services {
      font-size: var(--h6-size);
      font-weight: 400;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--space-gray);
      line-height: 1.8;
      border-top: 1px solid var(--c-light-ash);
      border-bottom: 1px solid var(--c-light-ash);
      padding: 10px 0;
      margin-bottom: 14px;
      word-spacing: 0.05em;
    }

    .footer-services .sep {margin: 0 6px; opacity: 0.5;}

    .footer-copyright {
      font-size: var(--h6-size);
      font-weight: 400;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--c-light-ash);
      line-height: 1.4;
    }

    .footer-social a {
      color:var(--c-white);
      text-decoration: none;
      transition: ease-in-out 0.3s;
      margin-left: 16px;
    }
    .footer-social a:hover { opacity: 70%;}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--c-dark-gray);
  color: var(--c-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {opacity: 1; visibility: visible;}
.scroll-to-top:hover {transform: scale(1.1);background: var(--c-charcoal);}
.scroll-to-top svg { width: 24px; height: 24px;}

/* Fade-in images */

.fade-in.fade-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.fade-visible {opacity: 1; transform: translateY(0);}

/* RESPONSIVE */
@media (max-width: 1199px) {
  .hero-title,
  .section-title,
  .section-text,
  .thumbnail-strip {grid-column: span 12;}
  .section-centered-copy .item2 {padding-right: 128px;}
}

@media (max-width: 768px) {
  a.project-thumbnail {width: calc(50% - 16px);}
  .section-overview {flex-direction: column;gap: 24px;}
}

@media (max-width: 575px) {
  .hero-title {font-size: var(--fs-xl);}
  nav { display: none; }
  a.project-thumbnail {width: 100%;}
  .section-centered-copy .item1 {width:0;}
  .section-centered-copy .item2 {max-width: 100%;padding:0 16px;}
}