/* ===========================
   BASE / RESET
=========================== */

html,
body {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #0b0c10;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.ts-shadow-soft {
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.1);
}

/* ===========================
   HEADER / NAV
=========================== */

.ts-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent; /* clear over hero video */
  border-bottom: 1px solid transparent;
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    transform 220ms ease,
    backdrop-filter 220ms ease;
}

/* Scrolled state (JS adds .ts-header--scrolled) */
.ts-header.ts-header--scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

/* Nav row */
.ts-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
}

/* Logo – BIGGER */
.ts-logo {
  height: 88px;           /* larger desktop logo */
  width: auto;
  object-fit: contain;
  display: block;
  transition:
    height 0.25s ease,
    transform 0.25s ease;
}

/* Scrolled logo shrinks a bit */
.ts-header.ts-header--scrolled .ts-logo {
  height: 64px;
  transform: translateY(-1px);
}

/* Desktop nav links (start white over hero, turn dark on scroll) */
.ts-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 180ms ease;
}

.ts-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.85);
  opacity: 0.6;
  transition:
    width 200ms ease,
    opacity 200ms ease;
}

.ts-link:hover {
  color: #ffffff;
}

.ts-link:hover::after {
  width: 100%;
  opacity: 1;
}

/* Scrolled nav colours */
.ts-header.ts-header--scrolled .ts-link {
  color: rgba(15, 23, 42, 0.7);
}

.ts-header.ts-header--scrolled .ts-link::after {
  background-color: #0b0c10;
}

.ts-header.ts-header--scrolled .ts-link:hover {
  color: #0b0c10;
}

/* Mobile links */
.ts-m-link {
  display: block;
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.8);
}

.ts-m-link:hover {
  color: #0b0c10;
}

/* Buttons */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Primary button (header + hero CTAs) */
.ts-btn-primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(15, 23, 42, 0.22);
}

.ts-btn-primary:hover {
  background: #e5e7eb;
}

/* In scrolled state, invert schedule button */
.ts-header.ts-header--scrolled .ts-btn-primary {
  background: #0b0c10;
  color: #ffffff;
  border-color: #0b0c10;
}

.ts-header.ts-header--scrolled .ts-btn-primary:hover {
  background: #111827;
}

/* Phone pill */
.ts-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.ts-phone i {
  font-size: 13px;
}

/* Scrolled phone style */
.ts-header.ts-header--scrolled .ts-phone {
  color: rgba(11, 12, 16, 0.78);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.12);
}

.ts-header.ts-header--scrolled .ts-phone:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.2);
  color: rgba(11, 12, 16, 0.9);
}

/* Mobile icon button */
.ts-icon-btn {
  height: 42px;
  width: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    color 160ms ease;
}

.ts-icon-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.2);
  color: rgba(11, 12, 16, 0.8);
}

.ts-icon-btn:active {
  transform: scale(0.96);
}

/* Scrolled icon */
.ts-header.ts-header--scrolled .ts-icon-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: rgba(11, 12, 16, 0.7);
}

/* Nav layout tweaks */
@media (min-width: 1024px) {
  .ts-nav-row {
    gap: 24px;
    height: 84px;
  }

  .ts-phone {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .ts-btn.ts-btn-primary {
    padding: 10px 18px;
    font-size: 0.7rem;
  }
}

@media (max-width: 1023px) {
  .ts-nav-row {
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .ts-nav-row {
    height: 64px;
  }

  .ts-logo {
    height: 72px;   /* bigger mobile logo */
  }

  .ts-header.ts-header--scrolled .ts-logo {
    height: 56px;
  }
}

/* ===========================
   HERO + VIDEO
=========================== */

.ts-hero {
  position: relative;
  padding-top: 90px; /* space for fixed nav */
}

.ts-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.ts-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(0.6) contrast(1.05);
}

/* Overlay over video */
.ts-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 45%, rgba(255, 255, 255, 0.35), transparent 65%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.35));
}

/* Hero content text – white over video */
.ts-hero .ts-eyebrow-text,
.ts-hero .ts-title,
.ts-hero .ts-sub {
  color: #ffffff;
}

.ts-hero .ts-line {
  background: rgba(255, 255, 255, 0.75);
}

/* Eyebrow */
.ts-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ts-line {
  height: 1px;
  width: 44px;
  background: rgba(11, 12, 16, 0.55);
}

.ts-eyebrow-text {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(11, 12, 16, 0.58);
}

/* Title + Sub */
.ts-title {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: rgba(11, 12, 16, 0.94);
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}

.ts-sub {
  margin-top: 18px;
  max-width: 40rem;
  color: rgba(11, 12, 16, 0.66);
  line-height: 1.75;
  font-size: 1.02rem;
}

/* Load reveal */
.ts-reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.85s ease-out forwards 0.18s;
}

/* Mobile hero tweaks */
@media (max-width: 767px) {
  .ts-hero {
    min-height: 70vh;
    padding-top: 80px;
    padding-bottom: 2.5rem;
  }

  .ts-title {
    font-size: 1.9rem;
    line-height: 1.1;
  }

  .ts-sub {
    font-size: 0.9rem;
    max-width: 22rem;
  }

  .ts-hero .ts-btn {
    width: 100%;
    justify-content: center;
  }

  .ts-hero .ts-btn + .ts-btn {
    margin-top: 0.5rem;
  }

  .ts-hero-video {
    transform: scale(1);
    filter: brightness(0.55);
  }
}

/* ===========================
   STATS
=========================== */

.ts-stats {
  padding: 28px 0 52px;
  background: #fff;
}

.ts-stat-card {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  padding: 22px 20px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.ts-stat-num {
  display: block;
  margin: 0 auto;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(11, 12, 16, 0.92);
  font-variant-numeric: tabular-nums;
}

.ts-stat-label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(11, 12, 16, 0.55);
}

/* ===========================
   ABOUT SECTION
=========================== */

.ts-about-section {
  background: #ffffff;
}

#about img {
  transition: transform 260ms ease;
}

#about img:hover {
  transform: scale(1.02);
}

/* ===========================
   3D PROJECTS CAROUSEL
=========================== */

.ts-carousel-shell {
  position: relative;
  margin-top: 1rem;
}

/* Track */
.ts-carousel-track {
  position: relative;
  margin-top: 1.5rem;
  min-height: 360px;
  cursor: grab;
  transition: transform 0.25s ease;
  z-index: 1;
}

.ts-carousel-track.is-dragging {
  cursor: grabbing;
}

/* Card base */
.ts-carousel-item {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px 18px 20px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  max-width: 420px;
  margin: 0 auto 1.5rem;
  opacity: 1;
  transform: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

/* Inner content */
.ts-carousel-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(11, 12, 16, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.12);
  margin-bottom: 8px;
}

.ts-carousel-title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #0b0c10;
  margin-bottom: 8px;
}

.ts-carousel-text {
  font-size: 13px;
  color: rgba(11, 12, 16, 0.7);
  line-height: 1.6;
  margin-bottom: 12px;
}

.ts-carousel-image {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ts-carousel-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.ts-carousel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(11, 12, 16, 0.62);
}

.ts-carousel-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ts-carousel-meta i {
  font-size: 11px;
}

/* Controls */
.ts-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 1.5rem;
}

.ts-carousel-btn {
  height: 38px;
  width: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(11, 12, 16, 0.75);
  transition: all 0.2s ease;
  z-index: 2;
}

.ts-carousel-btn:hover {
  border-color: rgba(15, 23, 42, 0.3);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

/* Dots */
.ts-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.2);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ts-dot.is-active {
  width: 18px;
  background: #0b0c10;
}

/* Desktop: real 3D layout */
@media (min-width: 1024px) {
  .ts-carousel-track {
    min-height: 420px;
    display: block;
    perspective: 1400px;
  }

  .ts-carousel-item {
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: center center;
    pointer-events: none;
    opacity: 1;
    background: #fff;
    will-change: transform, filter;
    filter: grayscale(0.2) brightness(0.94);
  }

  .ts-carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    opacity: 0;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(1px);
    transition: opacity 0.35s ease;
  }

  .ts-carousel-item.is-active {
    z-index: 3;
    pointer-events: auto;
    transform: translateX(-50%) translateZ(110px) rotateY(0deg);
    filter: none;
  }

  .ts-carousel-item.is-left,
  .ts-carousel-item.is-right {
    z-index: 2;
    pointer-events: auto;
    filter: blur(1.2px) grayscale(0.45) brightness(0.93);
  }

  .ts-carousel-item.is-left::after,
  .ts-carousel-item.is-right::after {
    opacity: 1;
  }

  .ts-carousel-item.is-left {
    transform: translateX(calc(-50% - 250px)) translateZ(20px) rotateY(22deg) scale(0.98);
  }

  .ts-carousel-item.is-right {
    transform: translateX(calc(-50% + 250px)) translateZ(20px) rotateY(-22deg) scale(0.98);
  }

  .ts-carousel-item.is-far {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateZ(-120px) scale(0.95);
    filter: blur(2px);
  }
}

/* ===========================
   SERVICES – HIGH END
=========================== */

.ts-services {
  background: #ffffff;
}

/* Card */
.ts-service-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: radial-gradient(circle at top left, #ffffff, #f9fafb);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  transition:
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.6s ease,
    border-color 0.6s ease;
}

.ts-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.14);
  border-color: rgba(15, 23, 42, 0.16);
}

/* Content */
.ts-service-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Icon */
.ts-service-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: radial-gradient(circle at top left, #0f172a, #111827);
}

.ts-service-icon {
  font-size: 18px;
  color: #e5e7eb;
}

/* Text */
.ts-service-title {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0b0c10;
}

.ts-service-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(11, 12, 16, 0.7);
}

/* List */
.ts-service-list {
  margin-top: 6px;
  padding-left: 0;
  list-style: none;
  font-size: 12px;
  color: rgba(11, 12, 16, 0.65);
}

.ts-service-list li + li {
  margin-top: 3px;
}

/* CTA reveal */
.ts-service-cta-wrap {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  transition:
    max-height 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.5s ease,
    margin-top 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ts-service-card:hover .ts-service-cta-wrap {
  margin-top: 16px;
  max-height: 80px;
  opacity: 1;
  transition-delay: 0.12s;
}

/* CTA button */
.ts-service-cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.35);
  background: #0b0c10;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.ts-service-cta:hover,
.ts-service-cta:focus,
.ts-service-cta:active {
  background: #0b0c10;
  color: #ffffff;
  opacity: 0.85;
  border-color: rgba(15, 23, 42, 0.5);
  transform: translateY(-1px);
}

/* Mobile – always show CTA */
@media (max-width: 768px) {
  .ts-service-cta-wrap {
    max-height: none;
    opacity: 1;
    margin-top: 14px;
  }
}

/* ===========================
   CONTACT – CLEAN WHITE BLOCK
=========================== */

.ts-contact {
  position: relative;
  background: #f5f5f7;
  color: #0b0c10;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.ts-contact-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: stretch;
}

/* Left: media + copy */
.ts-contact-media {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.ts-contact-photo {
  border-radius: 22px;
  overflow: hidden;
  background: #0b0c10;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
}

.ts-contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.ts-contact-photo:hover img {
  transform: scale(1.06);
}

.ts-contact-copy {
  padding-right: 0.5rem;
}

.ts-contact-heading {
  font-size: 1.9rem;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.ts-contact-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.7);
  margin-bottom: 1rem;
}

.ts-contact-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: rgba(15, 23, 42, 0.75);
}

.ts-contact-points li::before {
  content: "•";
  margin-right: 0.45rem;
  color: rgba(15, 23, 42, 0.55);
}

/* Right: form */
.ts-contact-form-wrap {
  align-self: center;
}

.ts-contact-form {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  padding: 1.9rem 1.8rem 1.9rem;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.ts-contact-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

.ts-contact-form-heading {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  color: rgba(15, 23, 42, 0.92);
}

.ts-contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ts-contact-field {
  margin-bottom: 1rem;
}

.ts-contact-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.28rem;
}

.ts-contact-input,
.ts-contact-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f9fafb;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  color: #0b0c10;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.ts-contact-input::placeholder,
.ts-contact-textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.ts-contact-input:focus,
.ts-contact-textarea:focus {
  border-color: rgba(37, 99, 235, 0.65);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.22);
}

.ts-contact-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Button */
.ts-contact-btn {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.82);
  background: #0b0c10;
  color: #ffffff;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.ts-contact-btn:hover {
  transform: translateY(-1px);
  background: #111827;
  border-color: #111827;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}

/* Contact responsive */
@media (max-width: 960px) {
  .ts-contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .ts-contact-form-wrap {
    order: 2;
  }

  .ts-contact-media {
    order: 1;
  }
}

@media (max-width: 640px) {
  .ts-contact-inner {
    padding: 3.25rem 1.25rem;
  }

  .ts-contact-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ts-contact-form {
    padding: 1.6rem 1.4rem 1.7rem;
  }
}

/* ===========================
   FOOTER
=========================== */

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: none;
}

/* ===========================
   UTIL: FADE-UP ANIMATION
=========================== */

.ts-fade-up {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.ts-fade-up.ts-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   KEYFRAMES
=========================== */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===========================
   SWIPER MOBILE FIX
=========================== */
@media (max-width: 767px) {
  .ts-project-swiper {
    padding-left: 0;
    padding-right: 0;
  }

  .ts-project-swiper .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Kill floating card look on mobile */
  .ts-project-swiper .ts-carousel-item {
    border-radius: 16px;
    margin: 0;
    box-shadow: none;
  }

  /* Give content breathing room instead */
  .ts-project-swiper .ts-carousel-item {
    padding: 16px;
  }
}
/* ===========================
   SWIPER LAPTOP WIDTH TUNING
   (keeps cards narrower)
=========================== */
@media (min-width: 1024px) and (max-width: 1440px) {
  /* Limit how wide each slide can be */
  .ts-project-swiper .swiper-slide {
    width: 720px;              /* tweak this number to taste (660–780) */
    max-width: 90vw;
  }

  /* Make sure the card inside is centered and not stretching */
  .ts-project-swiper .swiper-slide > article {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Keep the image from feeling insanely wide/tall */
  .ts-project-swiper .swiper-slide img {
    height: 240px;
    object-fit: cover;
  }
}
