/* ==========================================================================
   GRACE® — Personal Portfolio Stylesheet
   Pure CSS (Vanilla) — Compatible with Apache / Nginx / cPanel public_html
   Palette: #F5F5F5 (bg), #FFFFFF (surface), #111111 (primary), #444444 (muted), #DADADA (border)
   ========================================================================== */

:root {
  --bg-main: #F5F5F5;
  --surface-white: #FFFFFF;
  --text-primary: #111111;
  --text-muted: #444444;
  --border-subtle: #DADADA;
  --border-dark: #2A2A2A;
  --surface-dark: #111111;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-hand: 'Rock Salt', 'Caveat', cursive;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--text-primary);
  color: var(--bg-main);
}

/* Typography utilities */
.font-sans { font-family: var(--font-sans); }
.font-hand { font-family: var(--font-hand); }
.font-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(245, 245, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
  transition: padding 0.2s ease;
}

.site-header.scrolled {
  padding: 0.85rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-logo span {
  font-weight: 300;
  color: var(--text-muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clock-badge {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  padding: 0.35rem 0.75rem;
}

@media (min-width: 1024px) {
  .clock-badge {
    display: flex;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--text-primary);
  color: var(--bg-main);
  border: 1px solid var(--text-primary);
  padding: 0.65rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #222222;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  padding: 0.65rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--surface-white);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

@media (min-width: 860px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 75px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-main);
  padding: 2rem;
  z-index: 99;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-drawer a {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 88vh;
  padding-top: 8.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 32px 32px;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .meta-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 3rem 0;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-handwritten {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--text-primary);
  transform: rotate(-2deg);
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-statement {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  max-width: 40rem;
}

.hero-statement h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-statement h2 strong {
  font-weight: 700;
}

.hero-disciplines {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.tilted-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.tilted-card:hover {
  transform: rotate(0deg);
}

.tilted-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.hero-ticker {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-white);
  padding: 0.75rem 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.ticker-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-tag strong {
  color: var(--text-primary);
}

.section-title-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 3.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Typewriter Typing Effect */
.typewriter-text {
  display: inline;
  white-space: nowrap;
  position: relative;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background-color: currentColor;
  margin-left: 2px;
  vertical-align: baseline;
  animation: typewriterBlink 0.8s infinite ease-in-out;
  transition: opacity 0.2s ease;
}

.typewriter-cursor.finished {
  display: none;
}

@keyframes typewriterBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes typewriterBlinkFade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.section-hand {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--text-muted);
  transform: rotate(-1deg);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Filter controls */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem;
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-main);
  font-weight: 600;
}

/* TRENA Black Block */
.trena-block {
  background-color: var(--surface-dark);
  color: var(--bg-main);
  border: 1px solid var(--surface-dark);
  padding: 2rem;
  margin-top: 3rem;
  position: relative;
}

@media (min-width: 768px) {
  .trena-block {
    padding: 3.5rem;
  }
}

.trena-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .trena-header {
    grid-template-columns: 2fr 6fr 4fr;
    align-items: baseline;
  }
}

.trena-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: #A1A1A1;
}

.trena-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.image-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: #181818;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-frame:hover img {
  transform: scale(1.01);
}

/* Trena Carousel Styling */
.trena-carousel-frame {
  position: relative;
  user-select: none;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
  transform: scale(0.985);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Carousel Nav Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: #FFFFFF;
  color: #111111;
  border-color: #FFFFFF;
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn.prev {
  left: 1rem;
}

.carousel-nav-btn.next {
  right: 1rem;
}

/* Counter Badge */
.carousel-counter-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  color: #10B981;
  font-size: 0.75rem;
  animation: pulseLight 2s infinite ease-in-out;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Dots */
.carousel-dots-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(17, 17, 17, 0.85);
  padding: 0.4rem 0.65rem;
  border: 1px solid #333333;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  background: #555555;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: #FFFFFF;
  width: 18px;
}

.carousel-dot:hover {
  background: #AAAAAA;
}

.image-ribbon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  z-index: 8;
  pointer-events: none;
}

.image-ribbon > * {
  pointer-events: auto;
}

.ribbon-pill {
  background: rgba(17, 17, 17, 0.9);
  padding: 0.4rem 0.8rem;
  border: 1px solid #333333;
}

.trena-split {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .trena-split {
    grid-template-columns: 7fr 5fr;
  }
}

.deliverables-box {
  background: #181818;
  border: 1px solid var(--border-dark);
  padding: 1.5rem;
}

.deliverables-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 0.75rem;
}

.deliverables-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

/* Unified 4-Card Grid for Selected Work */
.projects-cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .projects-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .projects-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.uniform-project-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.uniform-project-card > div {
  min-width: 0;
  width: 100%;
}

.uniform-project-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.uniform-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
}

.uniform-card-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.uniform-card-cat {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.uniform-card-img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-subtle);
  background: #141414;
  position: relative;
  width: 100%;
}

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

.uniform-card-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.uniform-card-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  min-width: 0;
}

.uniform-card-meta-strip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.uniform-card-meta-strip strong {
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.uniform-card-body {
  padding-top: 0.9rem;
  min-width: 0;
}

.uniform-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.55rem;
  color: var(--text-primary);
}

.uniform-card-title span {
  color: var(--text-muted);
}

.uniform-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 300;
}

.uniform-card-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  margin-top: 1.15rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Modal Brand Details Grids */
.modal-brand-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

@media (min-width: 768px) {
  .modal-brand-header-grid {
    grid-template-columns: 6fr 6fr;
  }
}

.modal-meta-grid {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.modal-meta-label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

.modal-details-two-col {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .modal-details-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Light project cards (legacy) */
.project-card {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .project-card {
    grid-template-columns: 7fr 5fr;
  }
  .project-card.reversed {
    grid-template-columns: 5fr 7fr;
  }
}

.project-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.project-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem 0;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Logofolio Marquee Ribbon */
.logofolio-section {
  padding: 4.5rem 0 5rem 0;
  background-color: var(--surface-white);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.logofolio-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logofolio-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: logofolioScroll 38s linear infinite;
  will-change: transform;
}

.logofolio-marquee:hover .logofolio-track {
  animation-play-state: paused;
}

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

.logofolio-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.5rem 1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
  cursor: default;
}

.logofolio-item:hover {
  transform: translateY(-2px);
}

.logofolio-svg-mark {
  height: 48px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logofolio-svg-mark svg {
  height: 42px;
  width: auto;
  max-width: 130px;
}

.logofolio-text-mark {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  white-space: nowrap;
}

.logofolio-submark {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.logofolio-separator {
  color: var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  user-select: none;
}

/* Custom interactive video and gallery card styling */
.video-showcase-box {
  background: #111111;
  border: 1px solid var(--border-dark);
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  color: #FFFFFF;
  overflow: hidden;
}

.video-showcase-box .play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #FFFFFF;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-showcase-box .play-badge:hover {
  background: #FFFFFF;
  color: #111111;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-strip-item {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  transition: border-color 0.2s ease;
}

.gallery-strip-item:hover {
  border-color: var(--text-primary);
}

.browser-mockup-frame {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.browser-mockup-bar {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.browser-dots {
  display: flex;
  gap: 0.35rem;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
}

/* Infinite Logo Carousel on #111111 Black Background */
.section-dark-brand-marks {
  background-color: #111111 !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid #222222 !important;
  padding: 2.75rem 0 2rem 0 !important;
}

.infinite-logos-showcase {
  background-color: #111111;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}

.infinite-logos-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .infinite-logos-header {
    flex-direction: row;
    align-items: center;
  }
}

.logos-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #A1A1A1;
  text-transform: uppercase;
}

.logos-instruction-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #777777;
}

.infinite-logos-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.75rem 0;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.infinite-logos-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: infiniteLogosScrollForward 75s linear infinite;
  will-change: transform;
}

.infinite-logos-marquee:hover .infinite-logos-track {
  animation-play-state: paused;
}

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

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

.white-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  transition: all 0.25s ease;
  user-select: none;
  cursor: default;
}

.white-logo-item:hover {
  transform: scale(1.06);
}

.white-logo-mark {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pure-logo-img {
  height: 175px;
  max-height: 175px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  display: block;
  filter: brightness(1);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.white-logo-mark svg {
  height: 50px;
  width: auto;
  max-width: 160px;
}

/* Ensure all strokes and fills in white logos render pristine white */
.white-logo-mark svg * {
  stroke: #FFFFFF !important;
}

.white-logo-mark svg [fill="#111111"],
.white-logo-mark svg polygon,
.white-logo-mark svg circle[fill="#111111"],
.white-logo-mark svg rect[fill="#111111"] {
  fill: #FFFFFF !important;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.portrait-frame {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem;
  transform: rotate(-1deg);
  transition: transform 0.4s ease;
}

.portrait-frame:hover {
  transform: rotate(0deg);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  filter: none;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .about-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-box {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
}

.pillar-box span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.pillar-box h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333333;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Disciplines Matrix */
.disciplines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .disciplines-grid {
    grid-template-columns: 5fr 7fr;
    gap: 2.5rem;
    align-items: stretch;
  }
}

.disciplines-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
  justify-content: space-between;
}

.discipline-item {
  width: 100%;
  text-align: left;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.discipline-item:hover {
  border-color: var(--text-primary);
  background: #FFFFFF;
}

.discipline-item.active {
  background: var(--surface-white);
  border-color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transform: translateX(4px);
}

.discipline-detail-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-box {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--text-primary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-body {
  padding: 1.75rem;
}

/* Modal Sub-Areas (e.g. Vista Center 3 Areas: Campañas, Sucursales, Redes Sociales) */
.modal-subareas-section {
  margin-bottom: 1.25rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.15rem;
}

.modal-subareas-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-subareas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .modal-subareas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.modal-subarea-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  min-width: 0;
}

.modal-subarea-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.modal-subarea-card.active {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.modal-subarea-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.modal-subarea-card.active .modal-subarea-top {
  color: #A1A1A1;
}

.modal-subarea-badge {
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border-subtle);
  font-size: 0.6rem;
  font-weight: 600;
}

.modal-subarea-card.active .modal-subarea-badge {
  background: #FFFFFF;
  color: #111111;
  border-color: #FFFFFF;
}

.modal-subarea-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1A1A1A;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-subarea-card.active .modal-subarea-thumb {
  border-color: rgba(255, 255, 255, 0.25);
}

.modal-subarea-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.modal-subarea-card:hover .modal-subarea-thumb img {
  transform: scale(1.04);
}

.modal-subarea-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal-subarea-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 300;
}

.modal-subarea-card.active .modal-subarea-desc {
  color: #D4D4D4;
}

.modal-subarea-cta {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.modal-subarea-card.active .modal-subarea-cta {
  border-top-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Modal Thumbnail Strip */
.modal-thumbs-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0 0.25rem 0;
  scrollbar-width: thin;
}

.modal-thumb-btn {
  flex: 0 0 88px;
  height: 54px;
  border: 2px solid var(--border-subtle);
  background: #111111;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.65;
  transition: all 0.2s ease;
}

.modal-thumb-btn:hover {
  opacity: 0.95;
  border-color: var(--text-muted);
}

.modal-thumb-btn.active {
  opacity: 1;
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Instagram Reels Grid */
.modal-reels-section {
  margin-top: 1.5rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 1.15rem;
}

.modal-reels-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-reels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .modal-reels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .modal-reels-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.modal-reel-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.modal-reel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  background: var(--surface-white);
}

.modal-reel-top strong {
  color: var(--text-primary);
}

.modal-reel-link {
  color: var(--text-primary);
  text-decoration: underline;
  font-weight: 600;
}

.modal-reel-frame-wrap {
  position: relative;
  width: 100%;
  height: 410px;
  background: #111111;
  overflow: hidden;
}

.modal-reel-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #111111;
}

/* Footer */
.site-footer {
  background: var(--surface-dark);
  color: var(--bg-main);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 5fr 3fr 4fr;
  }
}

/* ==========================================================================
   MOBILE & SMALL VIEWPORT OPTIMIZATIONS (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  /* Compact Fixed Header & Mobile Menu Button */
  .site-header {
    padding: 0.75rem 0;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .brand-logo {
    font-size: 1.45rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn-primary {
    padding: 0.45rem 0.75rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .mobile-menu-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    background: var(--surface-white);
    font-size: 1.1rem;
    padding: 0;
  }

  .mobile-drawer {
    top: 63px;
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
  }

  .mobile-drawer a {
    font-size: 1.2rem;
    padding-bottom: 0.65rem;
  }

  /* Hero Section Mobile */
  .hero-section {
    min-height: auto;
    padding-top: 5.75rem;
    padding-bottom: 2rem;
  }

  .hero-grid {
    gap: 1.75rem;
    padding: 1.25rem 0 1.75rem 0;
  }

  .hero-grid > div:last-child {
    align-items: stretch !important;
    width: 100%;
  }

  .hero-handwritten {
    font-size: 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.85rem, 14vw, 4.25rem);
    margin-bottom: 1rem;
  }

  .hero-statement {
    padding-top: 1rem;
  }

  .hero-statement h2 {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .hero-disciplines {
    font-size: 0.68rem;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 1.5rem;
  }

  .hero-actions .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  .tilted-card {
    transform: none;
    padding: 1.25rem;
    width: 100%;
  }

  .hero-ticker {
    padding: 0.65rem 0;
    font-size: 0.62rem;
  }

  .ticker-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .ticker-inner > div:nth-child(even) {
    display: none;
  }

  /* Sections & Headers Mobile */
  .section {
    padding: 3.25rem 0;
  }

  .section-header {
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .section-tag {
    font-size: 0.62rem;
  }

  .section-title-wrap {
    flex-wrap: wrap;
    white-space: normal;
    gap: 0.25rem 0.6rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 7.8vw, 2.25rem);
    white-space: nowrap;
  }

  .section-hand {
    font-size: 1.05rem;
  }

  /* Horizontal Swipeable Filter Tabs on Mobile */
  .filter-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.45rem 0.75rem;
    font-size: 0.62rem;
  }

  /* Project Cards Mobile */
  .projects-cards-grid {
    gap: 1.15rem;
  }

  .uniform-project-card {
    padding: 1rem;
  }

  .uniform-card-btn {
    padding: 0.75rem 0.9rem;
    font-size: 0.66rem;
  }

  /* Brand Marks Carousel Mobile */
  .section-dark-brand-marks {
    padding: 2rem 0 1.5rem 0 !important;
  }

  .white-logo-mark {
    height: 125px;
  }

  .pure-logo-img {
    height: 120px;
    max-height: 120px;
    max-width: 230px;
  }

  /* About Section Mobile */
  .about-grid {
    gap: 2rem;
  }

  .portrait-frame {
    transform: none;
    max-width: 300px;
    margin: 0 auto;
  }

  .about-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .pillar-box {
    padding: 0.65rem;
  }

  .pillar-box span {
    font-size: 0.55rem;
  }

  .pillar-box h3 {
    font-size: 0.78rem;
    word-break: break-word;
  }

  .about-text {
    font-size: 0.95rem;
    gap: 1rem;
  }

  .about-text p:first-child {
    font-size: 1.1rem !important;
  }

  /* Disciplines & Contact Mobile */
  .discipline-detail-panel {
    padding: 1.25rem !important;
  }

  .contact-grid {
    gap: 2rem;
  }

  .form-box {
    padding: 1.25rem;
  }

  /* Popup Modal Mobile Optimization */
  .modal-overlay {
    padding: 0.4rem;
    align-items: flex-end;
  }

  .modal-card {
    max-height: 93vh;
    border-radius: 0;
  }

  .modal-header {
    padding: 0.85rem 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .modal-header > div:first-child {
    font-size: 0.62rem !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modal-body {
    padding: 1rem;
  }

  /* Compact 3-Area Selector Cards on Mobile */
  .modal-subareas-section {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .modal-subareas-grid {
    gap: 0.5rem;
  }

  .modal-subarea-card {
    padding: 0.65rem;
    gap: 0.4rem;
  }

  .modal-subarea-card > div:first-child {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 0.35rem 0.65rem;
    align-items: center;
  }

  .modal-subarea-top {
    grid-column: 1 / -1;
  }

  .modal-subarea-thumb {
    margin: 0 !important;
    aspect-ratio: 4 / 3;
  }

  .modal-subarea-title {
    font-size: 0.8rem;
  }

  .modal-subarea-desc {
    grid-column: 1 / -1;
    font-size: 0.68rem;
    margin-top: 0.1rem !important;
  }

  /* Modal Carousel Frame & Unobstructed Controls on Mobile */
  .modal-media-frame {
    aspect-ratio: 4 / 3 !important;
    display: flex;
    flex-direction: column;
  }

  .carousel-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .carousel-nav-btn.prev {
    left: 0.45rem;
  }

  .carousel-nav-btn.next {
    right: 0.45rem;
  }

  .carousel-counter-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.6rem;
  }

  .image-ribbon {
    bottom: 0.4rem;
    left: 0.4rem;
    right: 0.4rem;
    gap: 0.35rem;
  }

  .ribbon-pill {
    display: none;
  }

  .carousel-dots-wrap {
    margin: 0 auto;
    padding: 0.3rem 0.5rem;
  }

  .modal-thumb-btn {
    flex: 0 0 68px;
    height: 44px;
  }

  .modal-brand-header-grid {
    gap: 1rem;
    margin-top: 1.25rem;
    padding-bottom: 1.15rem;
  }

  .modal-meta-grid {
    padding: 0.75rem;
    font-size: 0.68rem;
    gap: 0.6rem;
  }

  .modal-details-two-col {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    gap: 1rem;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 2.75rem 0 1.75rem 0;
  }

  .footer-grid {
    gap: 1.75rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 420px) {
  .about-pillars {
    grid-template-columns: 1fr;
  }
}
