@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;700&display=swap');

:root {
  --yellow: #FFB400;
  --dark: #1A1200;
  --offwhite: #fafaea;
  --gray: #e9e9d7;
  --font-main: 'ClashGrotesk-Variable', 'ClashGrotesk-Regular', 'ClashGrotesk-Medium', 'ClashGrotesk-Bold', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--offwhite);
  color: var(--dark);
}
img {
  border-radius: 16px;
}
.display-none {
  display: none;
}

.decoration-none {
  text-decoration: none;
}

header {
  backdrop-filter: blur(5px);
  background: #fafaea2b;
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.navbar {
  max-width: 64rem;
  margin: auto;
}
.navbar ul {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 2rem;
}
.navbar ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.hover:hover {
  cursor: pointer;
}

.hero {
  background: 
    linear-gradient(322deg, rgba(255, 208, 0, 0) 0%, rgba(255, 208, 0, 0.5) 100%),
    var(--yellow);
  border-radius: 1rem;
  margin: 1.5rem;
  max-width: 98vw;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: relative;
  min-height: 44rem;
}
.project-hero {
  min-height: 20rem;
  max-width: 64rem;
  margin:10rem auto 0rem auto;
}
.project-hero-desc {
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-family: var(--font-mono);
  font-weight: 400;
  max-width: 37.5rem;
}
.hero-content {
  padding: 3rem 2rem 2rem 3rem;
  position: absolute;
  top: 8rem;
  left: calc((100vw - 1184px) / 2);
  width: 100%;
  max-width: 1024px;
}
h1 {
  font-size: 2.5rem;
  line-height: 3rem;
  font-family: var(--font-main);
  font-weight: 700;
  margin-bottom: 1.5rem;
  max-width: 47rem;
}
.hero-desc {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  line-height: 1.375rem;
  color: var(--dark);
  margin-top: 0.5rem;
  max-width: 32.5rem;
}

.featured-work {
  margin-top: 6rem;
  /* max-width: 128rem; */
  width: 100%;
}
.featured-work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 64rem;
  margin: 0 auto 2.5rem auto;
  width: 100%;
}
.featured-work h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
}
.carousel-controls button {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.carousel-container {
  overflow-x: auto;
  scrollbar-width: none;
}
.work-cards {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
  max-width: 1024px;
  margin: 0 auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.work-card, .vertical-item {
  border-radius: 12px;
  min-width: 326px;
  max-width: 326px;
  flex: 0 0 326px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  scroll-snap-align: start;
}
.work-card:last-child {
  min-width: 6rem;
  max-width: 6rem;
}
.work-card img, .vertical-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.work-card h3, .vertical-item h3 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 2rem;
  margin: 0.5rem 0 0.3rem 0;
}
p {
  font-size: 1rem;
  line-height: 1.5rem;
  font-family: var(--font-mono);
}
.work-card p , .vertical-item p {
  text-align: left;
}
.work-card:hover a img{
  scale: 1.03;
  transition: ease-in-out 0.3s;
}
/* Hide scrollbar for webkit browsers */
.work-cards::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for Firefox */
.work-cards {
  scrollbar-width: none;
}


.work-card-big {
  contain-intrinsic-block-size: auto 100px;
    border-radius: 12px;
    min-width: 1024px;
    max-width: 1024px;
    flex: 0 0 1024px;
    display: grid;
    flex-direction: row;
    scroll-snap-align: start;
    background: rgba(26, 18, 0, 0.05);
    max-height: 700px;
    padding: 56px;
    align-items: start;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}
.work-card-big:last-child {
  min-width: 6rem;
  max-width: 6rem;
  background: transparent;
}
.counter  {
  font-family: var(--font-main);
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: 300;
  color: var(--dark);
  opacity: 0.6;
}
.counter span {
  font-family: var(--font-main);
  font-size: 4rem;
  line-height: 5rem;
  font-weight: 300;
}

.type-section {
  background: var(--dark);
  color: #fff;
  margin: 3rem 0 2rem 0;
  padding: 6rem 2rem;
}
.type-section-content {
  max-width: 64rem;
  margin: 0 auto;
}
h2 {
  font-size: 2rem;
  line-height: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.type-section h2 {
  color: #fff;
}
.type-section p {
  color: #fff;
  margin-bottom: 2rem;
  max-width: 32.5rem;
}
.type-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.type-card {
  color: #222;
  border-radius: 10px;
  min-width: 140px;
  flex: 1 0 140px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.type-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}
.type-card h3 {
  font-size: 1.25rem;
  font-family: var(--font-mono);
  line-height: 1.5rem;
  color: #fff;
  margin: 0.3rem 0 0.2rem 0;
}
.type-card p {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: #fff;
  line-height: 1.25rem;
}
.meta-item h3 {
  color: var(--dark);
  opacity: 0.6;
  font-weight: 900;
  margin-bottom: 0.25rem;
}
.meta-item p {
  margin-top: 0;
}
.meta-item h3, .meta-item p {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.cols2-text {
  margin-right: 5rem;
}
.product-section {
  margin: 8rem auto 6rem auto;
  max-width: 64rem;
}
.product-section h2 {
  color: var(--dark);
}
.product-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.product-desc {
  flex: 1 1 220px;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.product-desc p {
  margin-bottom: 4rem;
  font-family: var(--font-mono);
}
.btn {
  /*display: flex;*/
  align-items: center;
  /*gap: 0.5rem;*/
  background: #1a12000e;
  color: var(--dark);
  border: none;
  border-radius: 999px;
  padding: 1.5rem 2rem;
  font-size: 1.25rem;
  font-family: var(--font-main);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
  outline: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: #fff;
  transition: fill 0.2s;
}
.case-study-btn:hover {
  background: var(--yellow);
  color: var(--dark);
}
.case-study-btn:hover svg {
  fill: var(--dark);
}
.product-images {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
}
/*.product-images img {
}*/

footer {
  margin-top: 10rem;
  padding: 2rem 0 1rem 2rem;
  font-size: 0.95rem;
  background:var(--gray);
}
.footer-content {
  max-width: 64rem;
  margin: 3rem auto;
}
.footer-content h2 {
  font-size: 2rem;
  line-height: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.footer-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-content ul li {
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

/* Grid utility classes for flexible layouts */
.cols-3,
.cols-2,
.cols-2-1,
.cols-1-2,
.cols-1 {
  max-width: 64rem;
  margin: 1rem auto;
}
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.cols-1 {
  display: block;
}
.cols-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
.cols-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}
.with-h2 {
  margin-top: 4rem;
}
.big-quote {
  font-size: 2rem;
  line-height: 2.5rem;
  font-family: var(--font-main);
  font-weight: 300;
  margin-bottom: 1rem;
}
.quote-source {
  font-size: 1rem;
  line-height: 1.5rem;
  font-family: var(--font-mono);
  font-weight: 900;
  color: var(--dark);
  opacity: 0.6;
}
.section {
  margin:10rem auto;
}
.research-image {
  width: 100%;margin: 2rem auto;
}
.solution-list {
  padding: 0;
  margin: 0 0 0 2rem ;
  font-family: var(--font-main);
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: 300;
  list-style: inside;
}
.solution-list li {
  margin-bottom: 0.5rem;
}

.work-card {
  position: relative;
  overflow: hidden;
}

.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  color:var(--yellow);
  font-size: 2rem;
  font-weight: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2;
}

.coming-soon:hover+img, .coming-soon:hover ~ h3, .coming-soon:hover ~ p {
  filter:blur(10px);
}

.work-card:hover .coming-soon {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1280px) {
  .hero-content {
    left: unset;
  }
  .featured-work-header {
    max-width: 52rem; 
  }
  .work-cards {
    max-width: 52rem
  }
  .product-content, .footer-content {
    max-width: 52rem;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .hero {
    margin: 1rem;
    min-height: 38rem;
  }
  .hero-content {
    left: 1rem;
    width: auto;
  }
  .hero-content h1 {
    font-size: 2rem;
    line-height: 2.5rem;
    max-width: 32.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .type-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
  }
  .type-card {
    width: calc(50% - 0.6rem);
    min-width: 0;
    max-width: 100%;
    flex: 0 0 calc(50% - 0.6rem);
  }
  .product-content {
    flex-direction: column;
    gap: 1.2rem;
  }
  .featured-work-header h2, .product-desc h2, .product-desc p {
    padding:0  1rem;
  }
  .case-study-btn {
    margin: 1rem ;
  }
  .work-cards {
    flex-direction: row;
    gap: 1.2rem;
    overflow-x: auto;
    max-width: 100vw;
  }
  .work-card:first-child {
    padding-left: 1rem;
  }
  .work-card {
    min-width: 70vw;
    max-width: 85vw;
    flex: 0 0 auto;
  }
  .work-card:last-child {
    min-width: 2rem;
    max-width: 2rem;
  }
  .product-images {
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    width: auto;
    margin: 0 auto;
  }
  .cols-1,
  .cols-2,
  .cols-2-1,
  .cols-1-2,
  .cols-3 {
    grid-template-columns: 1fr;
    max-width: 100vw;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 2rem 2rem 2rem 1rem;
  }
  .navbar nav ul {
    gap: 1rem;
    padding-right: 1rem;
  }
  /*main {
    padding: 0 0.2rem;
  }*/
  .product-images {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .product-images img {
    width: 100%;
    max-width: 100vw;
  }
  .work-cards {
    max-width: 100vw;
    gap: 1rem;
  }
  .featured-work-header h2 {
    padding-left: 1rem;
  }
  .case-study-btn {
    margin: 1rem ;
  }
  .work-card:first-child {
    padding-left: 1rem;
  }
  .work-card {
    min-width: 70vw;
    max-width: 85vw;
  }
  .work-card:last-child {
    min-width: 2rem;
    max-width: 2rem;
  }
}

/* Make all text use --dark by default */
* {
  color: var(--dark);
} 