/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');


/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  font-family: 'Figtree', sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

.nav-inner {
  width: 100%;
  max-width: 1890px;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  padding-top: 12px;
  padding-right: 20px;
  border-bottom: 1px solid #000;
}

.logo {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.2px;
  color: #000;
  line-height: 1;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #000;
  padding-bottom: 10px;
  padding-top: 12px;
  padding-left: 20px;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.2px;
  color: #000;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.5;
}

@media (prefers-color-scheme: dark) {
  .nav-link:hover {
    opacity: 1;
    color: #767676;
  }
}

.nav-link.active {
  color: #767676;
}

/* ===== HERO ===== */
.hero {
  padding: 40px 15px 0;
}

.hero-inner {
  max-width: 1890px;
  margin: 0 auto;
  padding: 9.195px 0 150px;
}

.hero-text {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -2.048px;
  color: #000;
  max-width: 820px;
}

.text-green {
  color: #219653;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: 0 15px;
}

.projects-header {
  max-width: 1890px;
  margin: 0 auto;
  padding: 20px 0 66px;
}

.our-work {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.3vw, 48px);
  letter-spacing: -1.2px;
  line-height: 1;
  color: #000;
}

/* ===== MARQUEE ===== */
.project-row {
  max-width: 1920px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.marquee-wrapper {
  height: 280px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 900px) {
  .marquee-wrapper {
    height: 446px;
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: marquee-ltr 50s linear infinite;
}

.marquee-reverse .marquee-track {
  animation: marquee-rtl 18s linear infinite;
}

@keyframes marquee-ltr {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-rtl {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-item {
  display: flex;
  gap: 20px;
  height: 100%;
  padding-right: 20px;
}

.marquee-img-wrap {
  width: 300px;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

@media (min-width: 900px) {
  .marquee-img-wrap {
    width: 461.25px;
  }
}

.marquee-img-wrap img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none;
}

/* ===== PROJECT INFO ROW ===== */
.project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 15px 0;
  max-width: 1920px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.project-meta {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-shrink: 0;
}

.project-label {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.48px;
  color: #767676;
  line-height: 16px;
  white-space: nowrap;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-name {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.48px;
  color: #000;
  line-height: 16px;
}

.project-type {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.48px;
  color: #767676;
  line-height: 16px;
}

.project-desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 360px;
}

.project-desc {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.48px;
  color: #000;
  line-height: 17.6px;
}

@media (min-width: 1200px) {
  .project-desc {
    font-size: 16px;
  }
}

.see-project {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.077px;
  color: #767676;
  line-height: 17.6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.25s ease;
  overflow: hidden;
}

.see-project:hover {
  color: #000;
}

.sp-label {
  position: relative;
}

.sp-label::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.see-project:hover .sp-label::after {
  width: 100%;
}

.sp-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.see-project:hover .sp-arrow {
  transform: translateX(4px);
}

/* ===== CTA SECTION ===== */
.cta {
  padding: 80px 30px 20px;
}

.cta-inner {
  max-width: 1860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.cta-text {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 37px);
  letter-spacing: -1.11px;
  color: #000;
  line-height: 1.2;
  text-align: center;
}

.cta-email {
  color: #219653;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cta-email:hover {
  opacity: 0.7;
}

.divider {
  border: none;
  border-top: 1px solid #000;
  width: 100%;
}

/* ===== FOOTER ===== */
.footer {
  padding: 30px 15px 15px;
}

.footer-inner {
  max-width: 1890px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 127px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -1px;
  color: #000;
  line-height: 20px;
}

.contact-email {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: #000;
  text-decoration: none;
  line-height: 20px;
  position: relative;
  display: inline-block;
}


.footer-logo-wrap {
  padding-bottom: 82.3px;
}

.footer-logo {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: clamp(60px, 9vw, 130px);
  letter-spacing: -0.2px;
  color: #000;
  line-height: 1;
  display: block;
}

/* ===== WORK GRID (index) ===== */
.work-stage {
  /* height is driven by grid content */
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* JS sets this precisely; fallback: hero ~36vh, cards fill the rest */
  grid-template-rows: clamp(200px, 36vh, 340px) repeat(2, calc(64vh - 23px));
  gap: 1px;
  background: #c8c8c8;
}

.work-hero {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 22px;
  background: #fff;
}

.work-hero-text {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  color: #000;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.work-hero-label {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #767676;
  text-transform: uppercase;
  align-self: flex-end;
  padding-bottom: 3px;
  white-space: nowrap;
}

.work-card {
  position: relative;
  overflow: hidden;
  display: block;
  background: #080808;
}

.work-card-bg {
  position: absolute;
  inset: 0;
}

.work-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.72;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease;
  will-change: transform;
}

.work-card:hover .work-card-bg img {
  transform: scale(1.05);
  opacity: 1;
}

.work-card--sitka .work-card-bg img {
  object-position: center center;
  opacity: 0.9;
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    rgba(0, 0, 0, 0) 72%
  );
  transition: opacity 0.5s ease;
}

.work-card:hover .work-card-overlay {
  opacity: 1.0;
}

.work-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px 20px;
  pointer-events: none;
}

.work-card-number {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.35);
  align-self: flex-end;
}

.work-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-card-desc {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: -0.15px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  max-width: 300px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-card-desc {
  opacity: 1;
  transform: translateY(0);
}

.work-card-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-card-name {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: clamp(17px, 1.55vw, 26px);
  letter-spacing: -0.6px;
  color: #fff;
  line-height: 1;
}

.work-card-arrow {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease;
}

.work-card:hover .work-card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #fff;
}

.work-card-type {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
}

/* Responsive: tablet */
@media (max-width: 900px) {
  .work-stage {
    height: auto;
    overflow: visible;
  }
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none !important;
    min-height: calc(100vh - 46px);
  }
  .work-hero {
    grid-column: 1 / -1;
    min-height: 100px;
  }
  .work-card {
    aspect-ratio: 4 / 3;
  }
  .work-card-desc {
    opacity: 1;
    transform: none;
  }
  .work-card-arrow {
    opacity: 1;
    transform: none;
    color: #fff;
  }
}

/* Responsive: mobile */
@media (max-width: 560px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-card {
    aspect-ratio: 3 / 2;
  }
  .work-hero-text {
    font-size: 22px;
    letter-spacing: -0.8px;
  }
  .work-hero-label {
    display: none;
  }
}

/* Dark mode: grid lines + hero */
@media (prefers-color-scheme: dark) {
  .work-grid {
    background: #1a1a1a;
  }
  .work-hero {
    background: #111;
  }
  .work-hero-text {
    color: #ededed;
  }
}

/* ===== CASE STUDY PAGES ===== */
.cs-header {
  padding: 40px 15px 0;
}

.cs-header-inner {
  max-width: 1890px;
  margin: 0 auto;
  padding: 20px 0 160px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

.cs-title-col {
  flex: 1;
  min-width: 0;
}

.cs-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -3.2px;
  color: #000;
  line-height: 1;
}

.cs-meta-col {
  width: 720px;
  max-width: 720px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cs-intro {
  font-family: 'Instrument Sans', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 20px);
  letter-spacing: -0.2px;
  color: #000;
  line-height: 24.2px;
}

.cs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.app-store-badge {
  display: inline-block;
}

.app-store-badge img {
  display: block;
  height: 44px;
  width: auto;
}

.cs-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-tag {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: #767676;
  line-height: 24.2px;
}

/* ===== GALLERY ===== */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 15px;
  max-width: 1920px;
  margin: 0 auto;
}

.gallery-full {
  width: 100%;
  aspect-ratio: 1890 / 892;
  overflow: hidden;
  position: relative;
}

.gallery-half-row {
  display: flex;
  gap: 15px;
}

.gallery-half {
  flex: 1;
  aspect-ratio: 937.5 / 895.73;
  overflow: hidden;
  position: relative;
}

.gallery-full img,
.gallery-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-full:hover img,
.gallery-half:hover img {
  transform: scale(1.03);
}

.gallery-bg-pink {
  background-color: #ecb6b6;
}

.gallery-bg-green {
  background-color: #def7d6;
}

.gallery-bg-dark {
  background-color: #202536;
}

.gallery-bg-light {
  background-color: #f5f5f7;
}

/* ===== CS CTA ===== */
.cs-cta {
  padding: 30px 15px 0;
  max-width: 1920px;
  margin: 0 auto;
}

.cs-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .cs-header-inner {
    flex-direction: column;
    gap: 30px;
  }
  .cs-meta-col {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-text {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .project-info {
    flex-direction: column;
    gap: 16px;
  }
  .project-desc-wrap {
    max-width: 100%;
  }
  .gallery-half-row {
    flex-direction: column;
  }
  .gallery-full {
    aspect-ratio: 4/3;
  }
  .gallery-half {
    aspect-ratio: 4/3;
  }
  .footer-logo {
    font-size: 40px;
  }
  .cta-text {
    font-size: 20px;
  }
  .nav-link {
    font-size: 14px;
  }
  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .cs-title {
    font-size: 32px;
    letter-spacing: -1.5px;
  }
  .footer-logo {
    font-size: 32px;
  }
}


/* ============================================
   SUBTLE ENHANCEMENTS
   ============================================ */

/* ----- Page load: hero fade-up ----- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.our-work {
  animation: heroFadeUp 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Case study title fade-in */
.cs-title {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cs-intro,
.cs-tags {
  animation: heroFadeUp 0.9s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}


/* ----- Scroll-triggered fade-up ----- */
.will-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

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


/* ----- Nav: lift shadow on scroll ----- */
.nav {
  transition: box-shadow 0.4s ease;
}

.nav--scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}


/* ----- Marquee: pause on hover ----- */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* Subtle image zoom on marquee hover */
.marquee-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-img-wrap:hover img {
  transform: translate(-50%, -50%) scale(1.04);
}


/* ----- Logo hover ----- */
.logo {
  transition: opacity 0.25s ease;
}

.logo:hover {
  opacity: 0.55;
}


/* ----- Footer logo ----- */
.footer-logo {
  display: inline-block;
  transition: letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}

.footer-logo:hover {
  letter-spacing: 2px;
  opacity: 0.7;
}


/* ----- CTA text hover colour shift ----- */
.cta-text {
  transition: color 0.3s ease;
}


/* ----- Divider animated on scroll ----- */
.divider.will-fade {
  transform: scaleX(0);
  transform-origin: left;
  opacity: 1; /* override will-fade opacity for lines */
}

.divider.will-fade.is-visible {
  transform: scaleX(1);
  opacity: 1;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  padding: 40px 15px 0;
  border-top: none;
}

.about-hero-inner {
  max-width: 1890px;
  margin: 0 auto;
  padding: 15px 0 150px;
}

.about-hero-text {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 64px);
  line-height: 1.1;
  letter-spacing: -2px;
  color: #000;
  max-width: 820px;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-section {
  padding: 0 15px;
}

.about-row {
  max-width: 1890px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 38px 0 80px;
}

.about-label-col {
  width: 33.33%;
  flex-shrink: 0;
}

.about-section-label {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 3.3vw, 48px);
  letter-spacing: -1.2px;
  line-height: 1;
  color: #000;
}

.about-content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Team Section Specific Layout */
.team-row-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

@media (max-width: 768px) {
  .team-row-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 0;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 30px;
}

.service-category {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #767676;
  line-height: 1.4;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-list li {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.4vw, 20px);
  letter-spacing: -0.3px;
  color: #000;
  line-height: 1.3;
}

.service-list li.muted {
  color: #767676;
}

/* Team */
.team-photo-wrap {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #f5f5f7;
}

@media (prefers-color-scheme: dark) {
  .team-photo-wrap {
    background: #1a1a1a;
  }
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.team-name {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: -0.5px;
  color: #000;
  line-height: 1.2;
}

.team-role {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.2px;
  color: #767676;
  line-height: 1.4;
}

.team-link {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.1px;
  color: #767676;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-top: 4px;
}

.team-link:hover {
  color: #000;
}

/* About CTA */
.about-cta {
  padding-top: 0;
}

.about-cta .cta-inner {
  max-width: 1890px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 38px 0;
}

.about-cta .cta-text {
  text-align: left;
  font-size: clamp(18px, 2vw, 30px);
}

@media (max-width: 900px) {
  .about-row {
    flex-direction: column;
    gap: 30px;
  }
  .about-label-col {
    width: 100%;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .team-photo-wrap {
    max-width: 100%;
  }
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  body {
    background: #111;
    color: #ededed;
  }

  .nav,
  .nav--scrolled {
    background: #111;
  }

  .nav-logo-wrap,
  .nav-links-wrap {
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }

  .nav-link {
    color: #ededed;
  }

  .nav--scrolled {
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 16px rgba(0,0,0,0.4);
  }

  .logo,
  .hero-text,
  .our-work,
  .project-name,
  .project-desc,
  .cta-text,
  .contact-label,
  .contact-email,
  .footer-logo,
  .cs-title,
  .cs-intro,
  .about-hero-text,
  .about-section-label,
  .service-list li,
  .team-name {
    color: #ededed;
  }

  .project-label,
  .project-type,
  .see-project,
  .cs-tag {
    color: #999;
  }

  .see-project:hover {
    color: #ededed;
  }

  .text-green,
  .cta-email {
    color: #2ecc71;
  }

  .divider,
  .about-cta .cta-inner {
    border-color: rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }

  .gallery-bg-pink {
    background-color: #3d1f1f;
  }

  .gallery-bg-green {
    background-color: #1a3320;
  }

  .app-store-badge img {
    filter: invert(1);
  }

  .team-link:hover {
    color: #ededed;
  }
}


/* Fallback: always show dividers if JS is disabled */
@media (prefers-reduced-motion: reduce) {
  .will-fade,
  .hero-text,
  .our-work,
  .cs-title,
  .cs-intro,
  .cs-tags {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .divider {
    transform: scaleX(1);
  }
  .footer-logo {
    transition: none;
  }
}
