/* --- Font Faces --- */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111111;
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

/* --- Global Heading Typography --- */
h1 {
  font-size: 48px;
  font-weight: 700;
  color: #111111;
  line-height: 1.15;
}

h2 {
  font-size: 38px;
  font-weight: 600;
  color: #111111;
  line-height: 1.2;
}

/* --- Layout Container (Consistent 160px Left/Right Margins) --- */
.container {
  width: 100%;
  margin: 0 auto;
  padding-left: 160px;
  padding-right: 160px;
}

/* --- Header / Navigation --- */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background-color: #ffffff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #111111;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* --- Hero Section --- */
.hero {
  background-color: #F6B800;
  background-image: url('images/yellow_bg.jpeg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 876px;
  display: flex;
  align-items: center;
  text-align: left;
}

.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  max-width: 930px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: 64px;
  line-height: 70px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: left;
}

.hero p {
  font-size: 38px;
  line-height: 46px;
  color: #222222;
  font-weight: 400;
  text-align: left;
  max-width: 930px;
}

/* --- Section Titles (H1 48px) --- */
.section-title {
  font-size: 48px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 32px;
}

/* --- Selected Work Section --- */
.selected-work {
  padding: 80px 0 60px;
}

.work-content {
  max-width: 930px;
  margin: 0 auto;
  width: 100%;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-card {
  display: block;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  border: none;
  transition: transform 0.2s ease;
  margin-top: 80px;
}

.work-card:first-child {
  margin-top: 0;
}

.work-card:hover {
  transform: translateY(-2px);
}

.work-card h2 {
  font-size: 38px;
  font-weight: 600;
  padding: 0 0 16px 0;
  color: #111111;
  background: transparent;
  border: none;
}

.image-wrapper {
  width: 930px;
  max-width: 100%;
  height: 574px;
  background: #EFEFEF;
  border-radius: 8px;
  border: none;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Brands / Sectors Section --- */
.brands-section {
  padding: 60px 0 160px;
  border-top: none;
}

.brands-container {
  max-width: 930px;
  margin: 0 auto;
  width: 100%;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 200px 32px;
  align-items: center;
  justify-items: center;
  width: 100%;
}

.brand-logo {
  max-width: 100%;
  width: auto;
  max-height: 180px;
  object-fit: contain;
  opacity: 1;
}

/* --- Bio Summary Section --- */
.bio-section {
  padding: 80px 0;
  background-color: #F7F7F7;
  border-top: none;
  border-bottom: none;
}

.bio-content {
  max-width: 930px;
  margin: 0 auto;
  width: 100%;
}

.bio-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bio-content p {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 16px;
  max-width: 700px;
}

.resume-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111111;
  text-decoration: underline;
}

/* --- Contact Section --- */
.contact-section {
  background-image: url('images/grey_bg.jpeg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 100px 0;
}

.contact-content {
  max-width: 930px;
  margin: 0 auto;
  width: 100%;
}

.contact-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111111;
}

.contact-details {
  font-size: 1rem;
  line-height: 1.6;
  color: #222222;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* --- Full-width Copyright Footer Bar --- */
.footer-bar {
  background-color: #ffffff;
  border-top: none;
  padding: 24px 0;
  font-size: 0.8125rem;
  color: #555555;
}

.footer-content {
  max-width: 930px;
  margin: 0 auto;
  width: 100%;
  text-align: left;
}

/* --- Case Study Pages Styles --- */
.case-hero {
  background-color: #58217B;
  background-image: url('images/hero_2.1 purple.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 140px 0 60px;
  color: #ffffff;
}

/* --- Dedicated BMW Hero Background Override --- */
.case-hero.bmw-hero {
  background-color: #1a3b6c;
  background-image: url('images/hero_2.1 blue.jpg');
}

/* --- Dedicated Webgains Hero Background Override --- */
.case-hero.webgains-hero {
  background-color: #8B0000;
  background-image: url('images/hero_2.1 red.jpg');
}

.case-hero-content {
  max-width: 930px;
  margin: 0 auto;
  width: 100%;
}

.case-hero h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 56px;
  color: #ffffff;
  margin-bottom: 8px;
}

.case-hero p {
  font-size: 30px;
  line-height: 38px;
  font-weight: 600;
  color: #ffffff;
}

.case-study-body {
  padding: 80px 0;
}

.case-content {
  max-width: 930px;
  margin: 0 auto;
  width: 100%;
}

.case-section {
  margin-bottom: 80px;
}

.case-section:last-child {
  margin-bottom: 0;
}

.case-section h2 {
  font-size: 28px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 20px;
}

.case-section p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 16px;
}

.case-list {
  list-style-type: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.case-list li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 8px;
}

.case-image-wrapper {
  width: 100%;
  max-width: 930px;
  aspect-ratio: 930 / 600;
  background-color: #EFEFEF;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 32px;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
}

.case-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-image-wrapper-contain {
  width: 100%;
  max-width: 930px;
  background-color: #EFEFEF;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 32px;
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-image-wrapper-contain img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- Large Image Wrapper (1120px width) --- */
.case-image-wrapper-large {
  width: 100%;
  max-width: 1120px;
  background-color: #EFEFEF;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 32px;
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-image-wrapper-large img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- 3-Column Triple Grid (Max 360px per image) --- */
.case-triple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  gap: 20px;
  max-width: 1120px;
  margin: 32px auto 12px auto;
  justify-content: center;
}

.case-triple-item {
  width: 100%;
  max-width: 360px;
  background-color: #EFEFEF;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.case-triple-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- 4-Column Quad Grid (Max 550px per image) --- */
.case-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 550px));
  gap: 20px;
  max-width: 1120px;
  margin: 32px auto 12px auto;
  justify-content: center;
}

.case-quad-item {
  width: 100%;
  max-width: 550px;
  background-color: #EFEFEF;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.case-quad-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- Holoride Wireframe 2-Column Grid --- */
.holoride-wireframe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 550px));
  gap: 20px;
  max-width: 1120px;
  margin: 32px auto 12px auto;
  justify-content: center;
}

.holoride-wireframe-item {
  width: 100%;
  max-width: 550px;
  background-color: #EFEFEF;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.holoride-wireframe-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- Asymmetric Styleguide Montage Grid (Uncropped / Contain) --- */
.case-styleguide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 550px));
  gap: 20px;
  max-width: 1120px;
  margin: 32px auto 12px auto;
  justify-content: center;
}

.case-styleguide-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.case-styleguide-right {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.case-styleguide-item {
  background-color: #EFEFEF;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.case-styleguide-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- 2x2 Grid for VR UI --- */
.vr-ui-grid {
  display: grid;
  grid-template-columns: repeat(2, calc(50% - 10px));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto 12px auto;
  justify-content: center;
}

.vr-ui-item {
  width: 100%;
  background-color: #EFEFEF;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vr-ui-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- Prototype Montage Grid --- */
.case-montage-grid {
  display: grid;
  grid-template-columns: repeat(2, calc(50% - 10px));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto 12px auto;
  justify-content: center;
}

.case-montage-item {
  width: 100%;
  max-width: 550px;
  background-color: #EFEFEF;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.case-montage-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.case-image-caption {
  font-size: 16px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

/* --- Full-width White Section --- */
.case-section-white {
  background-color: #ffffff;
  padding: 80px 160px;
  width: 100%;
}

.case-section-white h2 {
  font-size: 28px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 20px;
}

.case-section-white p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 16px;
}

.case-section-white p:last-child {
  margin-bottom: 0;
}

/* --- Full-width Grey Section --- */
.case-section-grey {
  background-color: #F7F7F7;
  padding: 80px 160px;
  width: 100%;
}

.case-section-grey h2 {
  font-size: 28px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 20px;
}

.case-section-grey p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 16px;
}

.case-section-grey p:last-child {
  margin-bottom: 0;
}

.case-nav {
  border-top: 1px solid #E5E5E5;
  padding: 40px 160px;
}

.case-nav-content {
  max-width: 930px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9375rem;
}

.case-nav a:hover {
  opacity: 0.7;
}

/* --- Responsive adjustments --- */
@media (max-width: 1250px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
  .case-section-white, .case-section-grey, .case-nav {
    padding-left: 40px;
    padding-right: 40px;
  }
  .image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 930 / 574;
  }
  .case-triple-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .case-quad-grid, .vr-ui-grid, .case-montage-grid, .case-styleguide-grid, .holoride-wireframe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .case-section-white, .case-section-grey, .case-nav {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero {
    height: auto;
    padding: 140px 0 80px;
  }
  .hero h1 {
    font-size: 40px;
    line-height: 46px;
  }
  .hero p {
    font-size: 24px;
    line-height: 32px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
  }
  .section-title {
    font-size: 36px;
  }
  .case-hero h1 {
    font-size: 36px;
    line-height: 44px;
  }
  .case-hero p {
    font-size: 24px;
    line-height: 32px;
  }
  .nav-links {
    gap: 16px;
    font-size: 0.875rem;
  }
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 24px;
  }
  .case-triple-grid {
    grid-template-columns: 1fr;
  }
  .case-quad-grid, .vr-ui-grid, .case-montage-grid, .case-styleguide-grid, .holoride-wireframe-grid {
    grid-template-columns: 1fr;
  }
}