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

:root {
  --bg: #051419;
  --bg2: #0a2027;
  --bg3: #12343d;
  --fg: #f4efe6;
  --fg2: #c4d0cb;
  --fg3: #7b9291;
  --accent: #e29d08;
  --accent-soft: #f1bc4d;
  --accent2: #0f5a67;
  --accent2-soft: #1d7281;
  --line: rgba(126, 171, 176, 0.18);
  --panel: rgba(16, 62, 72, 0.34);
  --radius: 12px;
  --gap: 20px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html {
  font-family: "Inter", sans-serif;
  background: #045060;
  background: linear-gradient(0deg, #045060, #000000, #045060);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  text-wrap: balance;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 14%, rgba(226, 157, 8, 0.16) 0%, transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(15, 90, 103, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 18% 76%, rgba(15, 90, 103, 0.18) 0%, transparent 30%);
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: hsl(190deg 90% 17%);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s;
}

nav.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo svg {
  height: 50px;
  margin: -5px 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--fg2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero â--------------------------------- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 920px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(226, 157, 8, 0.18) 0%, transparent 34%),
    radial-gradient(circle at center 68%, rgba(15, 90, 103, 0.24) 0%, transparent 56%);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-title svg {
  max-width: 80vw;
  width: 400px;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg2);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-sub span {
  white-space: nowrap;
}

.hero-tagline {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.3rem);
  color: #d7ddd8;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 24px;
  flex-wrap: wrap;
}

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.3s,
    filter 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-icon.is-instagram {
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%);
}

.social-icon.is-facebook {
  background: #1877f2;
}

.social-icon.is-facebook-podcast {
  background: #2d88ff;
}

.social-icon.is-whatsapp {
  background: #25d366;
}

.social-icon.is-youtube {
  background: #ff0033;
}

.social-podcast-group {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
}

.social-podcast-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  min-height: 52px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(226, 157, 8, 0.24);
  background: linear-gradient(135deg, rgba(16, 62, 72, 0.72), rgba(5, 20, 25, 0.92));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.social-podcast-link .social-icon {
  width: 42px;
  height: 42px;
  box-shadow: none;
  flex-shrink: 0;
}

.social-podcast-link .social-icon:hover {
  transform: none;
  filter: none;
  box-shadow: none;
}

.social-podcast-link.is-facebook-podcast-link {
  padding: 4px 14px 4px 6px;
  border-color: rgba(45, 136, 255, 0.35);
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.28), rgba(7, 21, 43, 0.9));
}

.social-podcast-link.is-facebook-podcast-link:hover {
  border-color: rgba(45, 136, 255, 0.75);
}

.social-podcast-text {
  color: var(--fg);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
}

.social-podcast-link:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 157, 8, 0.58);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.social-podcast-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.hero-cta {
  flex-wrap: wrap;
  display: inline-flex;
  justify-content: center;
  gap: 16px;
}

.btn {
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #051419;
  box-shadow: 0 14px 38px rgba(226, 157, 8, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(15, 90, 103, 0.22),
    0 10px 24px rgba(226, 157, 8, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(15, 90, 103, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  animation: bounce 2s infinite;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background 0.3s;
}

.scroll-indicator:hover {
  background: rgba(255, 255, 255, 0.08);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--fg2);
}

section {
  padding: 100px 15px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 12px;
}

.section-title,
.card-title,
.modal-title,
.modal-section h3,
.section-hero-title,
.cat-divider-label,
.video-info h4 {
  text-wrap: balance;
}

.section-sub {
  text-align: center;
  color: var(--fg2);
  font-size: 1rem;
  margin-bottom: 60px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.story-intro {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
}

.story-intro blockquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--fg);
  line-height: 1.8;
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(15, 90, 103, 0.2), rgba(5, 20, 25, 0.4));
  border-radius: 0 var(--radius) var(--radius) 0;
  padding-left: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  padding-right: 24px;
  text-align: left;
  margin: 0 auto;
  max-width: 700px;
}

.story-intro cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--fg2);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: capitalize;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(15, 90, 103, 0.82);
  color: var(--fg);
  border-color: rgba(29, 114, 129, 0.9);
}

.projects-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--gap);
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 52, 61, 0.84), rgba(5, 20, 25, 0.96));
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition:
    transform 0.4s,
    box-shadow 0.4s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(226, 157, 8, 0.16);
}

.project-card-poster {
  display: grid;
  grid-template-rows: auto 1fr;
}

.project-card-wide,
.project-card-full {
  position: relative;
}

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

.project-card-wide .card-img {
  aspect-ratio: 16/8.5;
}

.card-poster-shell {
  padding: 22px 22px 0;
}

.card-img-poster {
  aspect-ratio: 2/3;
  object-fit: cover;
  background: radial-gradient(circle at top, rgba(226, 157, 8, 0.14), rgba(10, 32, 39, 0.98));
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.project-card:hover:not(.project-card-poster) .card-img {
  transform: scale(1.05);
}

.project-card-poster:hover .card-img-poster {
  transform: translateY(-4px) scale(1.02);
}

.card-overlay {
  inset: 0;
  background: linear-gradient(transparent 0%, rgba(6, 19, 23, 0.28) 24%, rgba(5, 20, 25, 0.9) 70%, rgba(5, 20, 25, 1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.card-cat {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.card-year {
  font-size: 0.78rem;
  color: var(--fg3);
  letter-spacing: 1px;
  margin-bottom: 7px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.25;
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--fg2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-copy {
  padding: 18px 22px 24px;
}

.project-card-poster .card-cat,
.project-card-poster .card-year,
.project-card-poster .card-title,
.project-card-poster .card-excerpt {
  text-shadow: none;
}

.project-card-poster .card-title {
  font-size: 1.28rem;
}

.project-card-poster .card-excerpt {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.projects-grid .project-card-full.section-hero {
  max-width: none;
  margin: 0;
}

.card-overlay-hero .card-cat {
  margin-bottom: 10px;
}

.card-overlay-hero .card-year {
  color: var(--fg2);
}

.card-overlay-hero .section-hero-sub {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 900px) {
  .projects-grid .project-card-wide {
    grid-column: span 2;
  }

  .projects-grid .project-card-full {
    grid-column: 1 / -1;
  }

  .projects-grid .project-card-poster.project-card-full {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
  }

  .projects-grid .project-card-poster.project-card-full .card-poster-shell {
    padding: 22px;
  }

  .projects-grid .project-card-poster.project-card-full .card-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-left: 0;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 8, 11, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  margin: 0 auto;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.modal {
  max-width: 1100px;
  padding: 40px 24px;
  overflow: auto;
  height: 100%;
  margin: 0 auto;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 210;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-header {
  margin-bottom: 36px;
}

.modal-cat {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-year {
  font-size: 0.78rem;
  color: var(--fg3);
  margin-bottom: 10px;
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.modal-desc {
  color: var(--fg2);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 800px;
}

.project-desc {
  color: var(--fg2);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 0;
}

.modal-story,
.project-story {
  margin-top: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(15, 90, 103, 0.18), rgba(10, 32, 39, 0.92));
  border-radius: var(--radius);
  border-left: 3px solid var(--accent2);
  position: relative;
  width: 100%;
}

.modal-story::before,
.project-story::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 12px;
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: var(--accent2);
  opacity: 0.3;
  line-height: 1;
}

.modal-story p,
.project-story p {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--fg);
}

.modal-section,
.project-videos,
.project-gallery,
.project-recognition {
  margin-top: 48px;
}

.modal-section h3,
.project-videos h2,
.project-gallery h2,
.project-recognition h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-loading,
.modal-error {
  color: var(--fg3);
  text-align: center;
  padding: 40px 0;
  font-style: italic;
}

.project-block-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-block {
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid var(--line);
}

.project-block h4 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-block p {
  margin: 0;
  line-height: 1.8;
  color: var(--fg2);
}

.project-block-quote {
  background: linear-gradient(135deg, rgba(15, 90, 103, 0.78), rgba(10, 32, 39, 0.95));
  color: var(--fg);
}

.project-block-quote p {
  color: var(--fg);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.05rem;
}

.project-block-quote span {
  display: block;
  margin-top: 14px;
  color: rgba(244, 239, 230, 0.72);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-block-callout {
  background: rgba(18, 52, 61, 0.78);
}

.project-block-callout.tone-warning {
  background: linear-gradient(180deg, rgba(116, 58, 31, 0.92), rgba(50, 22, 13, 0.96));
}

.project-block-callout.tone-subtle {
  background: linear-gradient(180deg, rgba(13, 45, 51, 0.88), rgba(7, 20, 24, 0.96));
}

.project-block-callout h4,
.project-block-generic h4 {
  color: var(--accent);
}

.project-block-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(18, 52, 61, 0.9), rgba(7, 20, 24, 0.95));
}

.project-block-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 0.3s,
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.project-block-link:hover {
  transform: translateY(-2px);
}

.project-block-link.is-primary {
  background: var(--accent);
  color: #101010;
}

.project-block-link.is-outline {
  border: 1px solid rgba(244, 239, 230, 0.34);
  color: var(--fg);
}

.project-block-generic {
  background: rgba(18, 52, 61, 0.72);
}

.project-block-generic ul {
  margin: 0;
  padding-left: 18px;
  color: var(--fg2);
}

.project-block-generic li {
  margin-bottom: 8px;
}

.video-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.video-grid.all-portrait {
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  justify-content: center;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.media-layout.no-side {
  grid-template-columns: minmax(0, 1fr);
}

.media-layout-main {
  display: grid;
  gap: 24px;
}

.media-side-grid {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 146, 145, 0.5) transparent;
}

.media-side-grid::-webkit-scrollbar {
  height: 6px;
}

.media-side-grid::-webkit-scrollbar-thumb {
  background: rgba(123, 146, 145, 0.5);
  border-radius: 4px;
}

.media-side-item {
  display: block;
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}

.media-side-item + .media-side-item {
  margin-left: 10px;
}

.media-side-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition:
    transform 0.3s,
    opacity 0.3s;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.media-side-item:nth-child(odd) img {
  animation: none;
}

.media-side-item:nth-child(even) img {
  animation: none;
}

.media-side-item.is-landscape img {
  aspect-ratio: 4/3;
}

.media-side-item:hover img {
  transform: translateY(-2px);
  opacity: 0.94;
}

@keyframes side-float {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.03);
  }

  100% {
    transform: translateY(3px) scale(1.01);
  }
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 52, 61, 0.9), rgba(7, 20, 24, 0.95));
  border: 1px solid var(--line);
  transition: transform 0.3s;
  cursor: pointer;
  flex: 1;
  min-width: 300px;
}

.video-card.full {
  grid-column: 4 / 1;
}

.video-card:hover {
  transform: translateY(-3px);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumb-wrap.is-portrait {
  aspect-ratio: 9/16;
}

.video-card.is-portrait {
  max-width: 320px;
  margin: 0 auto;
}

.video-preview-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.video-card:hover .video-thumb {
  transform: scale(1.04);
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}

.video-play-btn.is-passive {
  background: rgba(0, 0, 0, 0.46);
}

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

.video-card.preview-only:hover .video-play-btn,
.short-card.preview-only:hover .video-play-btn {
  background: rgba(0, 0, 0, 0.46);
}

.video-play-btn svg {
  width: 60px;
  height: 60px;
  color: #fff;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.7));
  transition: transform 0.2s;
}

.video-play-btn.is-passive svg {
  opacity: 0.62;
}

.video-card:hover .video-play-btn svg {
  transform: scale(1.14);
}

.video-card.preview-only,
.short-card.preview-only {
  cursor: default;
}

.video-info {
  padding: 14px;
}

.video-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.video-info p {
  font-size: 0.82rem;
  color: var(--fg2);
  line-height: 1.5;
}

.shorts-section {
  margin-top: 32px;
}

.shorts-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg3) transparent;
}

.shorts-grid::-webkit-scrollbar {
  height: 6px;
}

.shorts-grid::-webkit-scrollbar-thumb {
  background: var(--bg3);
  border-radius: 3px;
}

.short-card {
  flex: 0 0 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 52, 61, 0.9), rgba(7, 20, 24, 0.95));
  border: 1px solid var(--line);
  transition: transform 0.3s;
  cursor: pointer;
}

.short-card:hover {
  transform: translateY(-3px);
}

.short-thumb {
  aspect-ratio: 9/16 !important;
}

.short-card .video-info {
  padding: 10px;
}

.short-card .video-info h4 {
  font-size: 0.8rem;
}

.short-card .video-info p {
  font-size: 0.72rem;
}

.vplayer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(0, 0, 0, 0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  text-align: center;
  overflow: auto;
}
.vplayer-overlay::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.vplayer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.vplayer-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  vertical-align: middle;
}

.vplayer-frame {
  width: min(940px, 92vw);
  aspect-ratio: 16/9;
  border: none;
  border-radius: 10px;
}

.vplayer-frame.is-short {
  aspect-ratio: 9/16;
  width: auto;
  height: min(85vh, 620px);
  max-width: min(420px, 88vw);
}

.vplayer-meta {
  margin-top: 14px;
  color: var(--fg2);
  font-size: 0.9rem;
  max-width: min(940px, 92vw);
  text-align: center;
}

.vplayer-meta strong {
  color: var(--fg);
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}

.vplayer-close {
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  margin: 20px;
}

.vplayer-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.gallery-grid {
  display: block;
  column-count: 3;
  column-gap: 10px;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 10px 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  break-inside: avoid;
  vertical-align: top;
}

.gallery-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition:
    transform 0.3s,
    opacity 0.3s;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.gallery-item > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition:
    transform 0.3s,
    opacity 0.3s;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.gallery-item:hover .gallery-img,
.gallery-item:hover > img {
  transform: translateY(-2px);
  opacity: 0.92;
}

.recognition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.recognition-img,
.recognition-grid .gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 10px;
  background: #000000;
  border: 1px solid var(--line);
  padding: 14px;
  cursor: pointer;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.recognition-img:hover,
.recognition-grid .gallery-item:hover img {
  transform: translateY(-2px);
  border-color: rgba(226, 157, 8, 0.35);
}

.recognition-grid .gallery-item {
  box-shadow: none;
}

.recognition-inline-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recognition-inline-row .recognition-img {
  width: 140px;
  max-width: calc(33.333% - 10px);
  aspect-ratio: 16/10;
  padding: 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

#chi-sono {
  background: var(--bg2);
}

.about-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 2/4;
  object-fit: cover;
}

.about-text h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--fg2);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-services {
  list-style: none;
  margin: 20px 0;
}

.about-services li {
  padding: 2px 0;
  color: var(--fg2);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-services li::before {
  content: "";
  width: 8px;
  height: 2px;
  background: var(--accent);
  display: block;
  flex-shrink: 0;
}

.about-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 157, 8, 0.18);
  background: linear-gradient(135deg, rgba(15, 90, 103, 0.18), rgba(226, 157, 8, 0.08));
  color: #dbe3dd;
  font-size: 0.92rem;
}

footer {
  padding: 60px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}

footer p {
  color: var(--fg2);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
}

.footer-links a {
  color: var(--fg2);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

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

  .nav-hamburger {
    display: block;
  }

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

  .card-poster-shell {
    padding: 18px 18px 0;
  }

  .card-copy {
    padding: 16px 18px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .media-side-grid {
    gap: 0;
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 8px;
  }

  .modal {
    margin: 40px 8px;
    padding: 24px 12px;
  }

  .modal-story {
    padding: 20px;
  }
}

.section-hero {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 48px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21/9;
}

.section-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 10%, rgba(7, 27, 32, 0.28) 42%, rgba(5, 20, 25, 0.86) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px;
  text-align: center;
}

.section-hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.92);
}

.section-hero-sub {
  font-size: 0.9rem;
  color: var(--fg2);
  max-width: 600px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-hero {
    aspect-ratio: 16/9;
  }
}

.cat-divider {
  max-width: 1400px;
  margin: 80px auto 32px;
  padding-top: 60px;
}

.cat-divider:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

.cat-divider-label {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--fg);
  margin-bottom: 8px;
}

.cat-divider-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2-soft));
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}

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

#grain {
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  contain: paint;
  opacity: 0.06;
}

#grain::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='bw-noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='0 1'/%3E%3CfeFuncG type='discrete' tableValues='0 1'/%3E%3CfeFuncB type='discrete' tableValues='0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23bw-noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 400px 400px;
  will-change: transform;
  animation: grain-shift 10s steps(6) infinite;
}

@keyframes grain-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  10% {
    transform: translate3d(-5%, -9%, 0);
  }

  20% {
    transform: translate3d(-12%, 6%, 0);
  }

  30% {
    transform: translate3d(8%, -14%, 0);
  }

  40% {
    transform: translate3d(-7%, 12%, 0);
  }

  50% {
    transform: translate3d(-12%, -7%, 0);
  }

  60% {
    transform: translate3d(11%, 9%, 0);
  }

  70% {
    transform: translate3d(3%, 13%, 0);
  }

  80% {
    transform: translate3d(-9%, 4%, 0);
  }

  90% {
    transform: translate3d(10%, -11%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 768px) {
  #grain {
    opacity: 0.025;
  }

  #grain::before {
    background-size: 140px 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #grain::before {
    animation: none;
  }
}

/* Pause grain while a video is playing for better performance */
body.video-playing #grain {
  display: none;
}

body.video-playing #grain::before {
  animation-play-state: paused;
}

@media (pointer: fine) {
  * {
    cursor:
      url("images/cursor-sphere.png") 16 16,
      auto !important;
  }

  .cursor-outer {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition:
      width 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      height 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      border-color 0.25s,
      opacity 0.2s;
    opacity: 0;
  }

  .cursor-outer.ready {
    opacity: 1;
  }

  .cursor-outer.link-hover {
    width: 80px;
    height: 80px;
    border-color: var(--accent);
    opacity: 0.8;
  }
}

.merged-cats-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.merged-cat-col .merged-cat-header {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.merged-cat-label {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--fg);
}

.merged-cat-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.merged-cat-logo {
  height: 54px;
  margin: -13px 0;
  width: auto;
  object-fit: contain;
}

.merged-cats-wrapper .projects-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .merged-cats-wrapper {
    grid-template-columns: 1fr;
  }

  .social-podcast-link.is-youtube-podcast {
    padding-right: 10px;
  }

  .social-podcast-logo {
    height: 24px;
  }

  .social-podcast-text {
    font-size: 0.65rem;
  }
}

.video-grid-editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.video-grid-editorial .video-card:nth-child(1) {
  grid-column: span 12;
}

.video-grid-editorial .video-card:nth-child(n + 2):nth-child(-n + 4) {
  grid-column: span 4;
}

.video-grid-editorial .video-card:nth-child(n + 5) {
  grid-column: span 3;
}

@media (max-width: 768px) {
  .video-grid-editorial .video-card {
    grid-column: span 12 !important;
  }
}

@media (min-width: 768px) {
  .projects-grid[data-cat="infrastructure"] {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
  }
  .projects-grid[data-cat="infrastructure"] .project-card:nth-child(-n + 3) {
    grid-column: span 3;
  }
  .projects-grid[data-cat="infrastructure"] .project-card:nth-child(n + 4) {
    grid-column: span 3;
  }
}
@media (max-width: 767px) {
  .projects-grid[data-cat="infrastructure"] .project-card {
    grid-column: span 1;
  }
}

@media (max-width: 899px) {
  .projects-grid .project-card-wide,
  .projects-grid .project-card-full {
    grid-column: auto;
  }

  .project-card-wide .card-img {
    aspect-ratio: 16/9;
  }
}
