/* ==========================================================================
   Unusual Technologies
   ========================================================================== */

:root {
  --color-primary: #79c4ad;
  --color-primary-bright: #60DCB7;
  --color-dark: #14261C;
  --color-gray: #4F5655;
  --color-light: #F3F6F3;
  --color-white: #fff;
  --color-black: #000;
  --color-dark-gray: #4B4F58;
  --color-red: #de253a;
  --color-linkedin: #1B64F6;
  --color-youtube: #d77ea6;
  --color-email: #ea4335;

  /* Typography Scale */
  --text-display: 5rem;
  --text-h1: 4rem;
  --text-h2: 1.875rem;
  --text-h3: 1.5rem;
  --text-h4: 1.25rem;
  --text-body-lg: 1.25rem;
  --text-body: 1rem;
  --text-sm: 0.9rem;
  --text-xs: 0.85rem;
  --text-xxs: 0.75rem;
}

/* --- Reset & Base --- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.7em;
  color: var(--color-dark);
  background: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Advent Pro', sans-serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 2px;
}

h1 { font-size: var(--text-h1); line-height: 1.4em; }
h2 { font-size: var(--text-h2); line-height: 1.3em; }
h3 { font-size: var(--text-h3); line-height: 1.3em; }
h4 { font-size: var(--text-h4); line-height: 1.2em; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-primary-bright);
}

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

ul {
  list-style: none;
}

/* --- Utilities --- */

.hidden {
  display: none;
}

/* --- Skip Link --- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5em 1em;
  z-index: 10000;
  font-size: var(--text-xs);
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-black);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
  min-height: 80px;
}

/* --- Logo --- */

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

.site-logo {
  height: 110px;
  width: auto;
}

/* --- Desktop Nav --- */

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu .menu-item {
  position: relative;
}

.nav-menu .menu-link {
  display: block;
  padding: 0 20px;
  font-family: 'Raleway', sans-serif;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 80px;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-menu .menu-link:hover,
.nav-menu .menu-link:focus {
  color: var(--color-primary);
}

.nav-menu .menu-item.current .menu-link {
  color: var(--color-primary);
}

.nav-menu .menu-link:hover {
  transform: scale(1.1);
}

/* --- Mobile Menu Toggle --- */

.menu-toggle {
  display: none;
  background: var(--color-primary-bright);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding-right: 0;
  color: var(--color-dark);
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.menu-toggle svg {
  width: 16px;
  height: 16px;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ==========================================================================
   Hero / Homepage Video
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-black);
}

.hero video {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-black);
  padding: 45px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 35px;
  gap: 0;
}

/* --- Footer Copyright (left column) --- */

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  color: var(--color-primary);
  font-size: var(--text-xs);
  margin: 0;
  line-height: 1.6;
}

.footer-copyright a {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

.footer-copyright p + p {
  margin-top: 0.25em;
}

.footer-copyright p + p a {
  text-decoration: underline;
}

/* --- Footer Social (center column) --- */

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: var(--text-xs);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 0.8;
}

.social-link svg {
  flex-shrink: 0;
}

.social-linkedin,
.social-youtube,
.social-email,
.social-phone {
  color: var(--color-primary);
}

/* --- Footer Nav (right column) --- */

.footer-nav {
  text-align: center;
}

.footer-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.footer-menu li {
  margin: 0;
}

.footer-menu a {
  display: block;
  padding: 0 0.5em;
  color: var(--color-primary);
  font-size: var(--text-body);
  line-height: 2;
  text-decoration: none;
}

.footer-menu a:hover {
  color: var(--color-primary-bright);
}

/* ==========================================================================
   Page Gradient Background (shared by About, Contact, Concept, Projects)
   ========================================================================== */

#shader-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.35;
  will-change: transform;
}

#shader-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.page-gradient {
  background: transparent;
  position: relative;
  padding-top: 80px; /* account for fixed header */
  min-height: 100vh;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 35px;
}

.hero-text {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 40px;
}

.hero-text h1 {
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero-text h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.body-large {
  font-size: var(--text-body-lg);
  color: var(--color-white);
  line-height: 1.7;
}

.subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-white);
  margin-bottom: 24px;
}

.section h1,
.section h2 {
  color: var(--color-white);
  text-align: center;
}

.section p {
  color: var(--color-white);
}

/* --- Default Page/Container --- */

.page {
  padding-top: 100px;
  min-height: 60vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 35px;
  color: var(--color-white);
}

.container h1 {
  color: var(--color-white);
  margin-bottom: 24px;
}

/* ==========================================================================
   About Page
   ========================================================================== */

/* --- Team Cards --- */

.team-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 32px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 250px;
  text-decoration: none;
}

.team-card:hover {
  opacity: 0.85;
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.team-card h3 {
  color: var(--color-white);
  font-family: 'Advent Pro', sans-serif;
  margin-bottom: 4px;
}

.team-card p {
  color: var(--color-primary);
  font-size: var(--text-sm);
}

/* --- Client Logos --- */

.client-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  align-items: center;
  margin: 32px 0;
}

.client-logos img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* --- Testimonials --- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.testimonial-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.testimonial-card:hover {
  transform: scale(1.03);
}

.testimonial-card.is-playing {
  cursor: default;
}

.testimonial-card.is-playing:hover {
  transform: none;
}

.testimonial-card-thumb {
  position: relative;
}

.testimonial-card-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.testimonial-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  pointer-events: none;
  transition: background 0.2s ease;
}

.testimonial-card:hover .testimonial-play-btn {
  background: rgba(0, 0, 0, 0.8);
}

.testimonial-card .video-embed {
  position: relative;
  padding-bottom: 56.25%;
}

.testimonial-card .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.testimonial-caption {
  padding: 12px;
  background: rgba(0,0,0,0.6);
}

.testimonial-caption strong {
  display: block;
  color: var(--color-white);
  font-size: var(--text-sm);
  margin-bottom: 4px;
}

.testimonial-caption span {
  color: var(--color-primary);
  font-size: var(--text-xs);
}

/* --- Awards --- */

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.awards-grid img {
  width: 100%;
  border-radius: 4px;
}

/* --- Values --- */

.values-intro {
  text-align: center;
  max-width: 700px;
  margin: 16px auto 40px;
}

.values-list {
  max-width: 700px;
  margin: 0 auto;
}

.value {
  margin-bottom: 32px;
}

.value h2,
.value h3 {
  text-align: left;
  margin-bottom: 8px;
  color: var(--color-white);
}

.value p {
  text-align: left;
}

/* --- Map + CTA --- */

.map-image {
  display: block;
  margin: 24px auto;
}

/* --- Flip Box --- */

.flip-box {
  display: block;
  width: 100%;
  max-width: 500px;
  height: 120px;
  margin: 0 auto;
  perspective: 1000px;
  text-decoration: none;
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
  transform: rotateX(180deg);
}

.flip-box-front,
.flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.flip-box-front {
  background: var(--color-primary);
  color: var(--color-dark);
}

.flip-box-front svg {
  margin-bottom: 12px;
  color: var(--color-dark);
}

.flip-box-front h2 {
  color: var(--color-dark);
  font-size: 2rem;
}

.flip-box-back {
  background: var(--color-dark);
  color: var(--color-white);
  transform: rotateX(180deg);
  border: 1px solid var(--color-primary);
}

.flip-box-back p {
  font-size: var(--text-body);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-details {
  margin: 32px 0;
}

.contact-details h3 {
  text-align: center;
  margin-bottom: 8px;
}

.contact-details h3 a {
  color: var(--color-white);
  text-decoration: underline;
}

.contact-details h3 a:hover {
  color: var(--color-primary);
}

.flip-boxes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

/* ==========================================================================
   Concept & Design Page
   ========================================================================== */

.step {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

.step-right {
  grid-template-columns: 2fr 1fr;
}

.step-text {
  position: relative;
}

.step-number {
  font-family: 'Advent Pro', sans-serif;
  font-size: 350px;
  color: rgba(255,255,255,0.1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.step-title {
  font-family: 'Advent Pro', sans-serif;
  font-size: 2.75rem;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.step-image img {
  width: 100%;
  max-width: 700px;
  border-radius: 4px;
}

.client-logos-bar {
  display: block;
  max-width: 100%;
  margin: 32px auto;
}

.cta-center {
  text-align: center;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-primary);
  color: var(--color-dark);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: var(--text-body);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--color-primary-bright);
  color: var(--color-dark);
}

/* ==========================================================================
   Projects Page
   ========================================================================== */

.projects-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  max-width: 1400px;
}

/* --- Filter Pane --- */

.filter-pane {
  position: sticky;
  top: 100px;
  align-self: start;
}

.filter-toggle {
  display: none;
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
}

.filter-toggle .chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 1.3rem;
}

.filter-toggle.open .chevron {
  transform: rotate(90deg);
}

.filter-heading {
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 8px 0;
}

.tag-list {
  max-height: none;
  overflow: visible;
}

.tag-list.open {
  max-height: none;
}

.tag-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--color-white);
  font-size: var(--text-sm);
  cursor: pointer;
}

.tag-label input[type="checkbox"] {
  accent-color: var(--color-primary);
}

/* --- Project Grid --- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.project-card-container {
  transition: opacity 0.3s ease;
}

.project-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-image {
  position: relative;
  width: 100%;
  padding-bottom: 60%;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(rgba(0,0,0,0.49), rgba(0,0,0,0.92));
}

.project-name {
  color: var(--color-white);
  font-family: 'Advent Pro', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}

.project-tags {
  color: var(--color-primary);
  font-size: var(--text-xxs);
}


.matching-heading {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Responsive — Tablet (max-width: 921px)
   ========================================================================== */

@media (max-width: 921px) {
  /* Header */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-black);
    z-index: 999;
    align-items: center;
    justify-content: center;
  }

  .main-nav.open {
    display: flex;
  }

  .site-branding {
    z-index: 1001;
  }

  .menu-toggle {
    z-index: 1001;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .nav-menu .menu-link {
    line-height: 1;
    padding: 16px 20px;
    color: var(--color-white);
    font-size: 1.5rem;
  }

  .nav-menu .menu-link:hover {
    transform: none;
  }

  /* Pages */
  .client-logos {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .awards-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .step {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .step-right {
    grid-template-columns: 1fr;
  }

  .step-right .step-text {
    order: -1;
  }

  .step-number {
    font-size: 180px;
  }

  .projects-layout {
    grid-template-columns: 1fr;
  }

  .filter-pane {
    position: static;
  }

  .filter-heading {
    display: none;
  }

  .filter-toggle {
    display: block;
  }

  .tag-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .tag-list.open {
    max-height: 2000px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }
}

/* ==========================================================================
   Responsive — Mobile (max-width: 544px)
   ========================================================================== */

@media (max-width: 544px) {
  :root {
    --text-display: clamp(2rem, 5vw + 1rem, 2.5rem);
    --text-h1: clamp(2rem, 5vw + 1rem, 2.5rem);
    --text-h2: 1.3rem;
    --text-h3: 1.25rem;
    --text-body-lg: 1rem;
  }

  .header-inner {
    padding: 0;
    min-height: 60px;
  }

  .section,
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-text {
    padding-top: 40px;
  }

  .testimonial-caption span {
    font-size: var(--text-xs);
  }

  .project-type-label {
    font-size: var(--text-xs);
  }

  .client-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .step-number {
    font-size: 120px;
  }

  .step-title {
    font-size: 1.8rem;
  }

  .flip-box {
    max-width: 100%;
    height: 110px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Single Project Page
   ========================================================================== */

.project-single {
  max-width: 1140px;
  margin: 0 auto;
}

/* --- Hero Banner --- */

.project-hero {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 20px;
  margin-top: 30px;
}

.project-hero.has-banner {
  padding-top: 20px;
  padding-bottom: 20px;
  background-size: cover;
  background-position: center;
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 35px;
  padding-right: 35px;
  min-height: calc(var(--text-display) + 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero.banner-contain {
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
}

.project-hero h1 {
  color: var(--color-primary);
  font-size: var(--text-display);
  font-weight: 500;
  margin-bottom: 0;
  text-shadow: rgb(0, 0, 0) 1.5px 1.5px 0px;
}

.project-hero h1.long-title {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.back-link {
  display: inline-block;
  color: var(--color-white);
  font-size: var(--text-body-lg);
  margin-bottom: 8px;
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.back-link:visited {
  color: var(--color-white);
}

.back-link:hover {
  color: var(--color-primary);
}

.project-type-label {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* --- Overview Section (2-column) --- */

.project-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 0;
}

.project-overview.no-image {
  grid-template-columns: 1fr;
}

.project-overview .overview-heading,
.project-overview .tech-heading,
.project-overview .client-heading {
  color: var(--color-primary);
  font-size: var(--text-h2);
  font-weight: 500;
  letter-spacing: 1px;
  text-align: left;
  margin-bottom: 12px;
}

.project-overview-desc {
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 24px;
  font-size: var(--text-body-lg);
  letter-spacing: 0.5px;
  text-align: left;
}

.project-try-it {
  margin-top: 32px;
  margin-bottom: 24px;
}

.project-try-it h3 {
  color: var(--color-primary);
  font-size: var(--text-h2);
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: left;
}

.project-try-it p {
  color: rgba(255,255,255,0.7);
  font-family: 'Advent Pro', sans-serif;
  font-style: italic;
}

.project-try-it-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.try-it-link {
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--text-body-lg);
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 1px;
  transition: color 0.2s ease;
  display: inline-block;
  align-self: flex-start;
}

.try-it-link:visited {
  color: var(--color-white);
}

.try-it-link:hover {
  color: var(--color-primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: var(--text-xs);
}

/* --- Client Info --- */

.project-client-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 24px;
  margin-bottom: 24px;
}

.client-heading {
  margin: 0;
}

.project-client-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-client-name {
  color: var(--color-white);
  font-size: var(--text-body-lg);
}

.project-client-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.project-client-link {
  color: var(--color-white);
  font-size: var(--text-sm);
  text-decoration: none;
}

.project-client-link .client-link-text {
  color: var(--color-primary);
}

.project-client-link:hover {
  color: var(--color-primary-bright);
}

/* --- Overview Media (video in overview) --- */

.project-overview-media {
  display: flex;
  align-items: center;
  width: 100%;
}

.project-overview-media .video-embed {
  width: 100%;
}

/* --- Tech Badges --- */

.project-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.project-tag {
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-black);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px 12px;
  border-radius: 20px;
}

/* --- Figure / Image with Caption --- */

.project-figure {
  margin: 24px 0;
}

.project-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.project-figure figcaption {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-body);
  text-align: center;
  margin-top: 8px;
}

/* --- Overview Image --- */

.project-overview-image {
  display: flex;
  align-items: center;
}

.project-overview-image .project-figure {
  margin-top: 0;
}

/* --- Case Study Content --- */

.project-content {
  padding-top: 0;
}

.project-content h2 {
  text-align: left;
  color: var(--color-primary);
  margin-top: 80px;
  margin-bottom: 16px;
  font-size: var(--text-h2);
  font-weight: 500;
  letter-spacing: 1px;
}

.project-content h2.case-study-heading {
  font-size: var(--text-display);
  font-weight: 400;
  margin-bottom: 32px;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: normal;
}

.project-content h3 {
  text-align: left;
  color: var(--color-white);
  margin-top: 24px;
  margin-bottom: 12px;
}

.project-content p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-body-lg);
  line-height: 1.8;
  margin-bottom: 24px;
  text-align: left;
}

.project-content img {
  display: block;
  max-width: 768px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px auto;
}

.project-content video {
  display: block;
  max-width: 768px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px auto;
}

.project-content audio {
  display: block;
  max-width: 768px;
  width: 100%;
  margin: 16px auto;
}

.project-content .gallery {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  align-items: center;
}

.project-content .gallery-2col {
  grid-template-columns: 1fr 1fr;
}



.project-content .gallery p {
  display: contents;
}

.project-content .gallery .project-figure {
  margin: 0;
}

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

@media (max-width: 544px) {
  .project-content .gallery-2col {
    grid-template-columns: 1fr;
  }
}

/* Carousel */

.carousel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.carousel {
  position: relative;
  overflow: hidden;
  margin: 24px 0;
}

.carousel-track {
  display: flex;
  gap: 8px;
  transition: transform 0.3s ease;
}

.project-content .carousel .project-figure {
  margin: 0;
  flex-shrink: 0;
}

.project-content .carousel .project-figure img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  margin: 0;
  border-radius: 8px;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  line-height: 1;
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-title {
  color: var(--color-white);
  text-align: center;
  font-size: var(--text-body-lg);
  margin-top: 12px;
}

@media (max-width: 768px) {
  .carousel-grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.active {
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.carousel .project-figure img {
  cursor: zoom-in;
}

/* Three column layout (image / text / images) */

.project-content .three-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
  align-items: center;
}

.project-content .three-col-layout p {
  text-align: left;
  margin-bottom: 16px;
}

.project-content .three-col-layout .project-figure {
  margin: 0;
}

.project-content .three-col-layout .project-figure img {
  width: 100%;
  height: auto;
  margin: 0;
  max-width: none;
}

.project-content .three-col-right .project-figure + .project-figure,
.project-content .three-col-right p + p {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .project-content .three-col-layout {
    grid-template-columns: 1fr;
  }
}

/* Bento grid layouts */
/* Bento split: two-column layout (large + small grid) */
.project-content .bento-split {
  display: flex;
  gap: 8px;
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
}

.project-content .bento-split.reverse {
  flex-direction: row-reverse;
}

.project-content .bento-split .bento-col-large {
  flex: 1.2;
  min-width: 0;
}

.project-content .bento-split .bento-col-small {
  flex: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.project-content .bento-split .bento-col-small.grid-2x2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.project-content .bento-split .bento-col-small.grid-1x3 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}

.project-content .bento-split img,
.project-content .bento-split video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 6px;
}

.project-content .bento-split .bento-col-large img,
.project-content .bento-split .bento-col-large video {
  height: 100%;
}

.project-content .bento-split p,
.project-content .bento-split .project-figure {
  display: contents;
}

.project-content .bento-split figcaption {
  display: none;
}

@media (max-width: 640px) {
  .project-content .bento-split,
  .project-content .bento-split.reverse {
    flex-direction: column;
  }

  .project-content .bento-split .bento-col-large img,
  .project-content .bento-split .bento-col-large video {
    height: auto;
  }
}

.project-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.project-content a:hover {
  color: var(--color-primary-bright);
}

.project-content ul,
.project-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.project-content ul {
  list-style: disc;
}

.project-content ol {
  list-style: decimal;
}

.project-content li {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-body-lg);
  margin-bottom: 8px;
  line-height: 24px;
}

.project-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(121, 196, 173, 0.05);
  border-radius: 0 8px 8px 0;
}

.project-content blockquote p {
  font-style: italic;
  color: rgba(255,255,255,0.9);
}

/* --- Testimonial Block --- */

.project-testimonial {
  padding-top: 40px;
}

.project-testimonial h2 {
  text-align: center;
  color: var(--color-primary);
  font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
  margin-bottom: 24px;
}

.testimonial-pull-quote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 24px;
  margin-bottom: 24px;
  background: rgba(121, 196, 173, 0.08);
  border-radius: 0 8px 8px 0;
}

.testimonial-pull-quote p {
  color: var(--color-white);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  margin: 0;
}

.testimonial-body {
  color: var(--color-white);
}

.testimonial-text {
  margin-bottom: 24px;
}

.testimonial-text p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-body-lg);
  line-height: 1.8;
  margin-bottom: 16px;
}

.testimonial-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid rgba(121, 196, 173, 0.2);
}

.testimonial-attribution strong {
  color: var(--color-white);
  font-size: var(--text-body);
}

.testimonial-attribution span {
  color: var(--color-primary);
  font-size: var(--text-sm);
}

.testimonial-attribution span::before {
  content: "\2022 ";
  margin-right: 0;
}

/* --- Testimonial Video / Thumbnail --- */

.testimonial-video {
  max-width: 768px;
  margin: 0 auto 24px;
}

.project-content .video-embed {
  max-width: 768px;
  margin: 24px auto;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.testimonial-thumbnail {
  margin-bottom: 24px;
}

.testimonial-thumbnail img {
  width: 100%;
  border-radius: 8px;
}

/* --- Project Footer Nav --- */

.project-footer-nav {
  text-align: left;
  padding-bottom: 60px;
}

/* --- Project Page Responsive --- */

@media (max-width: 544px) {
  .project-hero h1.long-title {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2rem);
  }
}

@media (max-width: 921px) {
  .project-overview {
    grid-template-columns: 1fr;
  }
}

/* --- Team Profile Page --- */

.team-profile {
  max-width: 800px;
  margin: 0 auto;
}

.team-profile-header {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 32px 0 40px;
}

.team-profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.team-profile-role {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.team-profile-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.team-profile-bio {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

.team-profile-bio p {
  margin-bottom: 16px;
}

.team-profile-expertise,
.team-profile-games {
  margin-bottom: 40px;
}

.team-profile-expertise h2,
.team-profile-games h2 {
  margin-bottom: 16px;
}

.team-expertise-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.team-expertise-list li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: var(--text-sm);
  color: var(--color-white);
}

/* --- Careers Page --- */

.careers-positions {
  text-align: center;
}

.careers-job-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.careers-job-link {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-black);
  font-family: 'Advent Pro', sans-serif;
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.careers-job-link:hover {
  opacity: 0.85;
}

.careers-internships {
  text-align: center;
}

.careers-internships h2 {
  margin-bottom: 16px;
}

.careers-internship-body {
  max-width: 640px;
  margin: 0 auto;
}

.careers-internship-body p {
  margin-bottom: 16px;
}

.careers-fields-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.careers-fields-list li {
  color: var(--color-white);
  font-size: var(--text-body);
  line-height: 2;
}

.careers-fields-list li::before {
  content: "— ";
  color: var(--color-primary);
}

.careers-apply-btn {
  margin-top: 8px;
}

.careers-testimonials {
  text-align: center;
}

.careers-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.careers-video-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.careers-video-label {
  color: var(--color-primary);
  font-family: 'Advent Pro', sans-serif;
  font-size: var(--text-body);
  text-align: center;
}

/* --- Careers Job Listing Page --- */

.careers-job-single {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-white);
}

.careers-job-content h2 {
  margin-top: 40px;
  margin-bottom: 12px;
}

.careers-job-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.careers-job-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.careers-job-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .careers-video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .team-profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* --- Project Page Responsive --- */

@media (max-width: 921px) {
  .project-overview {
    grid-template-columns: 1fr;
  }

  .project-hero.has-banner {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 544px) {
  .project-hero.has-banner {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .project-try-it-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-client-info {
    flex-direction: column;
    align-items: flex-start;
  }
}
