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

:root {
  --color-primary: #1a1a1a;
  --color-white: #fff;
  --font-main: 'Noto Sans TC', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1600px;
  --content-max-width: 1950px;
}

html {
  height: 100%;
}

::selection {
  background: #4B7D8B;
  color: #FFFFFF;
}

body {
  font-family: var(--font-main);
  margin: 0;
  min-height: 100%;
  background: #000;
}

/* ===== Full-site Video Background ===== */
.bg-video-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Content Container ===== */
.site-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-max-width);
  margin: 0 auto;
  min-height: 100vh;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-max-width);
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-logo img {
  display: block;
  width: 120px;
  height: 40px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 100%;
  font-size: 20px;
  font-weight: 400;
  color: #EAEAEA;
  text-decoration: none;
  transition: opacity 0.3s ease;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #EAEAEA;
  transition: width 0.3s ease, left 0.3s ease;
}

.header-nav a:hover::after {
  width: 100%;
  left: 0;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #EAEAEA;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Responsive Header ===== */
@media (max-width: 1024px) {
  .header {
    padding: 0 28px;
  }
}

@media (max-width: 767px) {
  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ===== Banner ===== */
.banner {
  position: relative;
  width: 100%;
  height: min(820px, 63.08vw);
  overflow: hidden;
}

.banner-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-max-width);
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-max-width);
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ===== Banner Grid ===== */
.banner-grid-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(6, 325px);
  grid-template-rows: repeat(3, 325px);
  width: 1950px;
  border-top: 2px solid #B0B0B0;
  border-left: 2px solid #B0B0B0;
  pointer-events: auto;
}

.banner-grid-item {
  border-right: 2px solid #B0B0B0;
  border-bottom: 2px solid #B0B0B0;
}

/* Banner grid static text */
.banner-grid-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: visible;
}

.banner-studio-name,
.banner-studio-since {
  font-size: 18px;
  font-weight: 700;
  color: #EAEAEA;
  margin: 0;
  white-space: nowrap;
  min-height: 1.4em;
}

/* Banner grid dark text (item 14) */
.banner-grid-text-dark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 36px 20px 20px 20px;
  overflow: visible;
}

.banner-grid-text-dark p {
  font-size: 18px;
  font-weight: 700;
  color: #191A1C;
  margin: 0;
  white-space: nowrap;
  min-height: 1.4em;
}

.banner-f-text p {
  font-size: 18px;
  font-weight: 700;
  color: #191A1C;
  margin: 0;
  white-space: nowrap;
  min-height: 1.4em;
}

/* Banner grid letter */
.banner-grid-letter {
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}

.banner-grid-letter-f {
  overflow: visible;
  clip-path: inset(0 -100% 0 -100%);
}

.banner-f-text {
  position: absolute;
  top: 36px;
  right: 115px;
  text-align: right;
  white-space: nowrap;
}

.banner-f-text p {
  font-size: 18px;
  font-weight: 700;
  color: #191A1C;
  margin: 0;
}

.banner-letter-g {
  position: absolute;
  top: -34px;
  left: 0;
  width: 260px;
  height: 260px;
  color: #191A1C;
  transition: color 0.4s ease, top 0.4s ease;
}

.banner-letter-i {
  position: absolute;
  top: -68px;
  left: 0;
  width: 70px;
  height: 260px;
  color: #191A1C;
  transition: color 0.4s ease, top 0.4s ease;
}

.banner-letter-r {
  position: absolute;
  bottom: -24px;
  right: -88px;
  width: 261px;
  height: 260px;
  color: #191A1C;
  transition: color 0.4s ease, bottom 0.4s ease;
}

.banner-letter-f {
  position: absolute;
  top: 36px;
  right: -95px;
  width: 190px;
  height: 261px;
  color: #191A1C;
  transition: color 0.4s ease, top 0.4s ease;
}

.banner-grid-letter-e2 {
  overflow: hidden;
}

.banner-letter-e2 {
  position: absolute;
  top: 36px;
  left: 143px;
  width: 221px;
  height: 261px;
  color: #191A1C;
  transition: color 0.4s ease, top 0.4s ease;
}

.banner-letter-a {
  display: block;
  width: 261px;
  height: 261px;
  color: #191A1C;
}

.banner-letter-e {
  display: block;
  width: 190px;
  height: 261px;
  color: #191A1C;
  margin-top: 40px;
}

/* A+E group container */
.letter-ae-group {
  position: absolute;
  right: -32px;
  top: -118px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #191A1C;
  transition: color 0.4s ease, top 0.4s ease;
}

.banner-grid-letter-ae:hover .letter-ae-group {
  color: rgba(115, 150, 160, 0.7);
  top: -118px;
  animation: float-ae 3s ease-in-out infinite;
}

.banner-grid-letter-ae .banner-letter-a,
.banner-grid-letter-ae .banner-letter-e {
  color: inherit;
}

.banner-grid-letter-ae:hover .banner-letter-a path,
.banner-grid-letter-ae:hover .banner-letter-e polygon {
  stroke: #4B7D8B;
  stroke-width: 1px;
}

.banner-grid-letter:hover .banner-letter-g {
  color: rgba(115, 150, 160, 0.7);
  top: calc(50% - 130px);
  animation: float 2s ease-in-out infinite;
}

.banner-grid-letter:hover .banner-letter-i {
  color: rgba(115, 150, 160, 0.7);
  top: calc(50% - 130px);
  animation: float 2s ease-in-out infinite;
}

.banner-grid-letter:hover .banner-letter-r {
  color: rgba(115, 150, 160, 0.7);
  bottom: calc(50% - 130px);
  animation: float-delay 2s ease-in-out infinite;
}

.banner-grid-letter-f:hover .banner-letter-f {
  color: rgba(115, 150, 160, 0.7);
  top: calc(50% - 130px);
  animation: float-f 2s ease-in-out infinite;
}

.banner-grid-letter-e2:hover .banner-letter-e2 {
  color: rgba(115, 150, 160, 0.7);
  top: calc(50% - 130px);
  animation: float-f 2s ease-in-out infinite;
}

.banner-letter-g path,
.banner-letter-i polygon,
.banner-letter-r path,
.banner-letter-a path,
.banner-letter-e polygon,
.banner-letter-f polygon,
.banner-letter-e2 polygon {
  transition: stroke 0.4s ease;
  stroke: transparent;
  stroke-width: 0;
}

.banner-grid-letter:hover .banner-letter-g path,
.banner-grid-letter:hover .banner-letter-i polygon,
.banner-grid-letter:hover .banner-letter-r path,
.banner-grid-letter:hover .banner-letter-f polygon,
.banner-grid-letter:hover .banner-letter-e2 polygon {
  stroke: #4B7D8B;
  stroke-width: 1px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-32px); }
}

@keyframes float-delay {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(32px); }
}

@keyframes float-ae {
  0%, 100% { transform: translateY(-118px); }
  50% { transform: translateY(118px); }
}

@keyframes float-f {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-28px); }
}

@media (max-width: 1300px) {
  .banner-grid {
    transform: scale(var(--banner-scale, 1));
    transform-origin: center center;
  }
}

@media (max-width: 767px) {
  .banner-grid {
    border-top: 1px solid #B0B0B0;
    border-left: 1px solid #B0B0B0;
  }

  .banner-grid-item {
    border-right: 1px solid #B0B0B0;
    border-bottom: 1px solid #B0B0B0;
  }
}

/* ===== Services Section ===== */
.services {
  padding-top: 60px;
  padding-bottom: 80px;
  text-align: center;
}

.services-title {
  font-size: 32px;
  font-weight: 700;
  color: #4B7D8B;
  margin-bottom: 8px;
}

.services-title-img {
  display: block;
  margin: 0 auto;
}

.services-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #4B7D8B;
  margin-top: 20px;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: 265px 265px 265px 265px;
  grid-template-rows: auto auto;
  gap: 40px 60px;
  max-width: 1240px;
  margin: 0 auto;
  justify-content: center;
}

/* Row 1: circle(1col) + circle(1col) + pill(2col) */
.services-grid .service-item-wrapper:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.services-grid .service-item-wrapper:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.services-grid .service-item-wrapper:nth-child(3) { grid-area: 1 / 3 / 2 / 5; }
/* Row 2: circle(1col) + pill(2col) + circle(1col) */
.services-grid .service-item-wrapper:nth-child(4) { grid-area: 2 / 1 / 3 / 2; }
.services-grid .service-item-wrapper:nth-child(5) { grid-area: 2 / 2 / 3 / 4; }
.services-grid .service-item-wrapper:nth-child(6) { grid-area: 2 / 4 / 3 / 5; }

/* Wrapper */
.service-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Service item shape */
.service-item {
  position: relative;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  width: 100%;
}

.service-item.circle {
  border-radius: 50%;
  width: 265px;
  height: 265px;
}

.service-item.pill {
  border-radius: 999px;
  width: 100%;
  height: 265px;
}

.service-item .service-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.service-item .service-img.hover {
  opacity: 0;
}

.service-item-wrapper:hover .service-img.default {
  opacity: 0;
}

.service-item-wrapper:hover .service-img.hover {
  opacity: 1;
}

.service-item-wrapper:hover .service-item {
  box-shadow: 0 0 50px #7396A0;
}

/* Service text */
.service-name {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 700;
  color: #191A1C;
}

.service-desc {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
}

/* ===== Services Responsive ===== */
@media (max-width: 1300px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
    max-width: 100%;
    padding: 0 32px;
  }

  .services-grid .service-item-wrapper:nth-child(1) { grid-area: auto; }
  .services-grid .service-item-wrapper:nth-child(2) { grid-area: auto; }
  .services-grid .service-item-wrapper:nth-child(3) { grid-area: auto; }
  .services-grid .service-item-wrapper:nth-child(4) { grid-area: auto; }
  .services-grid .service-item-wrapper:nth-child(5) { grid-area: auto; }
  .services-grid .service-item-wrapper:nth-child(6) { grid-area: auto; }

  .service-item.pill {
    border-radius: 50%;
    width: 265px;
    height: 265px;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    padding: 0 16px;
  }

  .service-item.circle,
  .service-item.pill {
    width: 200px;
    height: 200px;
    max-width: 200px;
    margin: 0 auto;
  }

  .service-name {
    font-size: 20px;
  }

  .service-item .service-img.default {
    opacity: 0;
  }

  .service-item .service-img.hover {
    opacity: 1;
  }
}

/* ===== Portfolio Grid ===== */
.portfolio-grid-wrapper {
  width: 100%;
  overflow: hidden;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 325px);
  grid-template-rows: repeat(2, 325px);
  width: 1950px;
  margin: 0 auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  border-top: 1px solid #EAEAEA;
  border-left: 1px solid #EAEAEA;
}

.portfolio-item {
  background: #FFFFFF;
  border-right: 1px solid #EAEAEA;
  border-bottom: 1px solid #EAEAEA;
  overflow: hidden;
}

/* Remove right border between grouped items */
.portfolio-item:nth-child(5),
.portfolio-item:nth-child(7),
.portfolio-item:nth-child(9) {
  border-right: none;
}

/* Remove left border on items 6, 8, 11 (handled by previous item's missing right border) */

/* Portfolio text card */
.portfolio-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-text-content {
  padding: 30px;
  text-align: left;
}

.portfolio-text-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #191A1C;
  margin-bottom: 6px;
  text-align: center;
}

.portfolio-text-content p {
  font-size: 14px;
  font-weight: 400;
  color: #333333;
}

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

/* Portfolio hover image swap */
.portfolio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.portfolio-item {
  position: relative;
}

.portfolio-img.hover {
  opacity: 0;
}

/* Single items hover (exclude grouped items) */
.portfolio-item:not(.group-a):not(.group-b):not(.group-c):hover .portfolio-img.default {
  opacity: 0;
  transform: scale(1.03);
}

.portfolio-item:not(.group-a):not(.group-b):not(.group-c):hover .portfolio-img.hover {
  opacity: 1;
  transform: scale(1.03);
}

/* Grouped items hover: only fade, no scale */
.portfolio-item.group-a:hover .portfolio-img.default,
.portfolio-item.group-b:hover .portfolio-img.default,
.portfolio-item.group-c:hover .portfolio-img.default {
  opacity: 0;
}

.portfolio-item.group-a:hover .portfolio-img.hover,
.portfolio-item.group-b:hover .portfolio-img.hover,
.portfolio-item.group-c:hover .portfolio-img.hover {
  opacity: 1;
}

/* Grouped items: when any item in the group is hovered, all in group swap */
.portfolio-grid:has(.group-a:hover) .group-a .portfolio-img.default,
.portfolio-grid:has(.group-b:hover) .group-b .portfolio-img.default,
.portfolio-grid:has(.group-c:hover) .group-c .portfolio-img.default {
  opacity: 0;
}

.portfolio-grid:has(.group-a:hover) .group-a .portfolio-img.hover,
.portfolio-grid:has(.group-b:hover) .group-b .portfolio-img.hover,
.portfolio-grid:has(.group-c:hover) .group-c .portfolio-img.hover {
  opacity: 1;
}

/* ===== Portfolio Grid Responsive ===== */
@media (max-width: 1300px) {
  .portfolio-grid {
    width: 100%;
    left: 0;
    transform: none;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  .portfolio-item {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 767px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Custom Cursor ===== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: transparent;
  border: 2px solid #7396A0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border 0.2s ease, opacity 0.2s ease;
}

.cursor-dot.active {
  width: 36px;
  height: 36px;
  background: #4B7D8B;
  border: none;
  opacity: 0.7;
}

.cursor-dot.clickable {
  background: #FFCD23;
}

/* ===== Banner Letter Entrance Animation ===== */
@keyframes slide-in-from-top {
  from { transform: translateY(-300px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-in-from-bottom {
  from { transform: translateY(300px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.banner-letter-g.entrance {
  animation: slide-in-from-top 0.8s ease-out 0.3s both;
}

.banner-letter-i.entrance {
  animation: slide-in-from-top 0.8s ease-out 0.5s both;
}

.banner-letter-r.entrance {
  animation: slide-in-from-bottom 0.8s ease-out 0.7s both;
}

.letter-ae-group.entrance {
  animation: slide-in-from-top 0.8s ease-out 0.9s both;
}

.banner-letter-f.entrance {
  animation: slide-in-from-top 0.8s ease-out 1.1s both;
}

.banner-letter-e2.entrance {
  animation: slide-in-from-top 0.8s ease-out 1.3s both;
}

/* ===== Services Scroll Reveal ===== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-item-wrapper {
  opacity: 0;
}

.service-item-wrapper.revealed {
  animation: fade-in-up 0.6s ease-out forwards;
}

.service-item-wrapper:nth-child(1).revealed { animation-delay: 0s; }
.service-item-wrapper:nth-child(2).revealed { animation-delay: 0.15s; }
.service-item-wrapper:nth-child(3).revealed { animation-delay: 0.3s; }
.service-item-wrapper:nth-child(4).revealed { animation-delay: 0.45s; }
.service-item-wrapper:nth-child(5).revealed { animation-delay: 0.6s; }
.service-item-wrapper:nth-child(6).revealed { animation-delay: 0.75s; }

/* ===== Cursor Tooltip ===== */
.cursor-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  padding: 6px 12px;
  background: #4B7D8B;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  border-radius: 999px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translate(-50%, 0);
}

.cursor-tooltip.visible {
  opacity: 1;
}

/* ===== Portfolio Scroll Reveal ===== */
.portfolio-item {
  opacity: 0;
}

.portfolio-item.revealed {
  animation: fade-in 1.2s ease-out forwards;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.portfolio-item:nth-child(1).revealed { animation-delay: 0s; }
.portfolio-item:nth-child(2).revealed { animation-delay: 0.15s; }
.portfolio-item:nth-child(3).revealed { animation-delay: 0.3s; }
.portfolio-item:nth-child(4).revealed { animation-delay: 0.45s; }
.portfolio-item:nth-child(5).revealed { animation-delay: 0.6s; }
.portfolio-item:nth-child(6).revealed { animation-delay: 0.6s; }
.portfolio-item:nth-child(7).revealed { animation-delay: 0.75s; }
.portfolio-item:nth-child(8).revealed { animation-delay: 0.75s; }
.portfolio-item:nth-child(9).revealed { animation-delay: 0.9s; }
.portfolio-item:nth-child(10).revealed { animation-delay: 0.9s; }
.portfolio-item:nth-child(11).revealed { animation-delay: 1.05s; }
.portfolio-item:nth-child(12).revealed { animation-delay: 1.2s; }

/* ===== Clients Section ===== */
.clients {
  padding-top: 60px;
  padding-bottom: 80px;
  text-align: center;
}

.clients-title {
  font-size: 32px;
  font-weight: 700;
  color: #4B7D8B;
  margin-bottom: 8px;
}

.clients-title-img {
  display: block;
  margin: 0 auto;
}

.clients-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #4B7D8B;
  margin-top: 20px;
  margin-bottom: 40px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(8, 120px);
  gap: 36px 40px;
  max-width: 1240px;
  margin: 0 auto;
  justify-content: center;
}

.client-item {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.client-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.client-item:hover {
  transform: scale(1.367);
  z-index: 1;
}

.client-item:hover img {
  filter: grayscale(0%);
}

/* ===== Clients Responsive ===== */
@media (max-width: 1300px) {
  .clients-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 0 32px;
    max-width: 100%;
  }

  .client-item {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 767px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 16px;
  }

  .client-item {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .client-item img {
    filter: grayscale(0%);
  }

  .client-item:hover {
    transform: none;
  }
}

/* ===== Clients Scroll Reveal ===== */
.client-item {
  opacity: 0;
}

.client-item.revealed {
  animation: fade-in 0.8s ease-out forwards;
}

.client-item:nth-child(1).revealed { animation-delay: 0s; }
.client-item:nth-child(2).revealed { animation-delay: 0.05s; }
.client-item:nth-child(3).revealed { animation-delay: 0.1s; }
.client-item:nth-child(4).revealed { animation-delay: 0.15s; }
.client-item:nth-child(5).revealed { animation-delay: 0.2s; }
.client-item:nth-child(6).revealed { animation-delay: 0.25s; }
.client-item:nth-child(7).revealed { animation-delay: 0.3s; }
.client-item:nth-child(8).revealed { animation-delay: 0.35s; }
.client-item:nth-child(9).revealed { animation-delay: 0.4s; }
.client-item:nth-child(10).revealed { animation-delay: 0.45s; }
.client-item:nth-child(11).revealed { animation-delay: 0.5s; }
.client-item:nth-child(12).revealed { animation-delay: 0.55s; }
.client-item:nth-child(13).revealed { animation-delay: 0.6s; }
.client-item:nth-child(14).revealed { animation-delay: 0.65s; }
.client-item:nth-child(15).revealed { animation-delay: 0.7s; }
.client-item:nth-child(16).revealed { animation-delay: 0.75s; }
.client-item:nth-child(17).revealed { animation-delay: 0.8s; }
.client-item:nth-child(18).revealed { animation-delay: 0.85s; }
.client-item:nth-child(19).revealed { animation-delay: 0.9s; }
.client-item:nth-child(20).revealed { animation-delay: 0.95s; }
.client-item:nth-child(21).revealed { animation-delay: 1.0s; }
.client-item:nth-child(22).revealed { animation-delay: 1.05s; }
.client-item:nth-child(23).revealed { animation-delay: 1.1s; }
.client-item:nth-child(24).revealed { animation-delay: 1.15s; }

/* Client item 10 higher contrast in grayscale */
.client-item:nth-child(10) img {
  filter: grayscale(100%) contrast(1.8);
}

.client-item:nth-child(10):hover img {
  filter: grayscale(0%);
}

/* ===== Disable image drag ===== */
img {
  -webkit-user-drag: none;
  user-select: none;
}

/* ===== FAQ Section ===== */
.faq {
  padding-top: 0;
  margin-top: 20px;
  padding-bottom: 0;
  text-align: center;
}

.faq-title {
  font-size: 32px;
  font-weight: 700;
  color: #4B7D8B;
  margin-bottom: 8px;
}

.faq-title-img {
  display: block;
  margin: 0 auto;
}

.faq-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #4B7D8B;
  margin-top: 20px;
  margin-bottom: 28px;
}

.faq-list {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.faq-item {
  border-radius: 42px;
  background: #F5F5F5;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.faq-item.open {
  border-radius: 42px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 32px;
}

.faq-question span {
  font-size: 20px;
  font-weight: 500;
  color: #191A1C;
  text-align: left;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin: 0 32px;
}

.faq-answer-inner {
  border-top: 1px solid #EAEAEA;
  padding-top: 28px;
  padding-bottom: 28px;
}

.faq-answer p {
  font-size: 20px;
  font-weight: 400;
  color: #191A1C;
  text-align: left;
  line-height: 1.6;
}

/* ===== FAQ Responsive ===== */
@media (max-width: 1300px) {
  .faq-list {
    padding: 0 32px;
  }
}

@media (max-width: 767px) {
  .faq-list {
    padding: 0 16px;
  }

  .faq-question {
    height: 64px;
    padding: 0 20px;
  }

  .faq-question span {
    font-size: 16px;
  }

  .faq-answer {
    margin: 0 20px;
  }

  .faq-answer p {
    font-size: 16px;
  }

  .faq-item {
    border-radius: 28px;
  }
}

.cursor-dot.pressing {
  width: 20px;
  height: 20px;
  opacity: 1;
}

/* ===== About Section ===== */
.about-section {
  margin-top: 60px;
  background: rgba(75, 125, 139, 0.75);
  padding: 60px 0;
}

.about-content-box {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}

.about-title {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  text-align: center;
}

.about-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 60px;
  text-align: center;
}

.about-text {
  font-size: 20px;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.8;
  text-align: justify;
}

/* ===== About Responsive ===== */
@media (max-width: 1300px) {
  .about-content-box {
    padding: 0 32px;
  }
}

@media (max-width: 767px) {
  .about-section {
    padding: 40px 0;
  }

  .about-content-box {
    padding: 0 16px;
  }

  .about-text {
    font-size: 16px;
  }
}

/* ===== About Stats ===== */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.about-stat {
  text-align: center;
}

.stat-label {
  font-size: 20px;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 54px;
  font-weight: 700;
  color: #FFFFFF;
}

@media (max-width: 767px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .stat-number {
    font-size: 36px;
  }
}

/* ===== Contact CTA Section ===== */
.contact-cta {
  padding-top: 60px;
  padding-bottom: 0;
  text-align: center;
}

.contact-cta-title-img {
  display: block;
  margin: 0 auto;
}

.contact-cta-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #4B7D8B;
  margin-top: 20px;
}

.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 202px;
  height: 52px;
  margin-top: 20px;
  background: #7396A0;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 500;
  font-family: var(--font-main);
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-cta-btn:hover {
  transform: scale(1.08);
}

.contact-cta-btn:active {
  transform: scale(1);
  background: #4B7D8B;
}

/* ===== Footer ===== */
.footer {
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.6);
  padding: 60px 0 16px;
  text-align: center;
}

.footer-logo {
  display: block;
  margin: 0 auto;
  filter: brightness(0) saturate(100%);
  opacity: 0.6;
}

.footer-copyright {
  font-size: 16px;
  font-weight: 300;
  color: #191A1C;
  margin-top: 60px;
}

.footer-copyright strong {
  font-weight: 500;
}

/* ===== Title SVG Responsive ===== */
.services-title-img,
.clients-title-img,
.faq-title-img,
.contact-cta-title-img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1300px) {
  .services-title-img,
  .clients-title-img,
  .faq-title-img,
  .contact-cta-title-img {
    max-width: calc(100% - 64px);
  }
}

@media (max-width: 767px) {
  .services-title-img,
  .clients-title-img,
  .faq-title-img,
  .contact-cta-title-img {
    max-width: calc(100% - 32px);
  }
}

/* FAQ title mobile swap */
.faq-title-mobile {
  display: none;
}

@media (max-width: 767px) {
  .faq-title-desktop {
    display: none;
  }

  .faq-title-mobile {
    display: block;
  }
}

/* ===== Contact Page Banner ===== */
.contact-banner {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
}

.contact-banner-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1950px;
  height: 290px;
  object-fit: cover;
}

/* ===== Contact Form Section ===== */
.contact-form-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 0 0;
}

.contact-form-title {
  font-size: 36px;
  font-weight: 700;
  color: #191A1C;
  margin-bottom: 8px;
}

.contact-form-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #4B7D8B;
  margin-top: 20px;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-row {
  display: flex;
  gap: 60px;
}

.form-row-2 .form-group {
  flex: 1;
}

.form-row-2 .form-group-split {
  flex: 1;
  display: flex;
  gap: 26px;
}

.form-row-2 .form-group-split .form-group {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  width: 100%;
}

.form-group label {
  font-size: 20px;
  font-weight: 400;
  color: #191A1C;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0 24px;
  height: 52px;
  border: 1px solid #EAEAEA;
  border-radius: 26px;
  font-size: 20px;
  font-family: var(--font-main);
  color: #191A1C;
  background: #FFFFFF;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
  padding-right: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7396A0;
  border-width: 2px;
}

.form-group textarea {
  height: 156px;
  padding: 24px;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(25, 26, 28, 0.3);
}

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

/* ===== Contact Form Responsive ===== */
@media (max-width: 1300px) {
  .contact-form-section {
    padding: 60px 32px 0;
  }

  .form-row {
    flex-direction: column;
    gap: 40px;
  }

  .form-row-2 .form-group-split {
    flex-direction: row;
    gap: 26px;
  }
}

@media (max-width: 767px) {
  .contact-form-section {
    padding: 40px 16px 0;
  }

  .form-row-2 .form-group-split {
    flex-direction: column;
    gap: 40px;
  }

  .contact-form-title {
    font-size: 28px;
  }
}

/* Contact form title left-aligned */
.contact-form-title-img {
  display: block;
  margin-right: auto;
}

/* ===== Custom Select ===== */
.custom-select {
  position: relative;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 24px;
  border: 1px solid #EAEAEA;
  border-radius: 26px;
  font-size: 20px;
  color: #191A1C;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.3s ease, border-width 0.3s ease;
}

.custom-select.open .custom-select-trigger {
  border-color: #7396A0;
  border-width: 2px;
}

.select-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.custom-select.open .select-arrow {
  transform: rotate(45deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 20px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.custom-select.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-options li {
  padding: 12px 24px;
  font-size: 20px;
  color: #191A1C;
  cursor: pointer;
  transition: background 0.2s ease;
}

.custom-select-options li:hover {
  background: #F5F5F5;
}

.custom-select-options li.selected {
  color: #191A1C;
  font-weight: 400;
}

/* ===== Custom Scrollbar for Textarea ===== */
.form-group textarea::-webkit-scrollbar {
  width: 20px;
}

.form-group textarea::-webkit-scrollbar-track {
  background: transparent;
}

.form-group textarea::-webkit-scrollbar-thumb {
  background: #7396A0;
  border-radius: 999px;
  border: 7px solid transparent;
  background-clip: padding-box;
}

.form-group textarea::-webkit-scrollbar-thumb:hover {
  background: #4B7D8B;
  border: 7px solid transparent;
  background-clip: padding-box;
}

.form-group textarea {
  scrollbar-width: thin;
  scrollbar-color: #7396A0 transparent;
  padding-right: 8px;
  clip-path: inset(0 round 26px);
}

/* ===== Override autofill background ===== */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset;
  -webkit-text-fill-color: #191A1C;
  font-size: 20px;
}

/* ===== Page Transition ===== */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  z-index: 10000;
  transform: translateY(0);
  animation: reveal-up 0.4s ease-in-out 0.2s forwards;
}

.page-transition-2 {
  background: #7396A0;
  z-index: 9999;
  animation-delay: 0.3s;
}

.page-transition.covering {
  animation: cover-down 0.35s ease-in-out forwards;
}

.page-transition-2.covering {
  animation: cover-down 0.35s ease-in-out 0.08s forwards;
}

@keyframes reveal-up {
  0% { transform: translateY(0); border-radius: 0; }
  100% { transform: translateY(-100%); border-radius: 0 0 100% 100%; }
}

@keyframes cover-down {
  0% { transform: translateY(-100%); border-radius: 0 0 100% 100%; }
  100% { transform: translateY(0); border-radius: 0; }
}

/* ===== Mobile Menu Open ===== */
@media (max-width: 767px) {
  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(75, 125, 139, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .header-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .header-nav a {
    font-size: 28px;
    width: auto;
    height: auto;
    color: #FFFFFF;
  }

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

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
