/* ==========================================================================
   BYMOU — Selected Digital Experiences (Websites Showcase)
   Compact 3-column horizontal presentation.
   Refined editorial typography, side-by-side previews, NO fake browser chrome.
   ========================================================================== */

.websites {
  background: #eeeae1;
  color: #1a1916;
  padding: clamp(38px, 4vw, 56px) var(--gutter, 5vw) clamp(34px, 3.6vw, 48px);
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid rgba(26, 25, 22, 0.12);
}

.web-showcase-wrap {
  max-width: 1440px;
  margin: 0 auto;
}

/* Refined Editorial Masthead (Human-scaled, not oversized) */
.web-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  border-top: 1px solid rgba(26, 25, 22, 0.18);
  padding-top: 16px;
  margin-bottom: clamp(20px, 2.2vw, 30px);
}

.web-eyebrow {
  font: 10px/1.4 Mono, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d685d;
  margin: 0 0 6px;
}

.web-title {
  font: 400 clamp(26px, 2.4vw, 36px)/1.15 Bodoni, Georgia, serif;
  letter-spacing: -0.025em;
  color: #1a1916;
  margin: 0;
}

.web-count-tag {
  font: 10px/1.5 Mono, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d685d;
  margin-bottom: 3px;
  white-space: nowrap;
}

/* Horizontal 3-Column Row (ALL THREE SIDE BY SIDE ON DESKTOP) */
.web-horizontal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}

.web-item {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Pure Architectural Media Frame (NO fake browser decorations) */
.web-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  border-radius: 4px;
  overflow: hidden;
  background: #e0dcd1;
  border: 1px solid rgba(26, 25, 22, 0.13);
  box-shadow: 0 4px 18px -3px rgba(20, 19, 16, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  will-change: transform;
}

.web-item:hover .web-preview-frame {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -6px rgba(20, 19, 16, 0.13), 0 3px 8px rgba(20, 19, 16, 0.04);
  border-color: rgba(26, 25, 22, 0.28);
}

.web-preview-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #eeeae1;
  pointer-events: none;
}

/* Refined Typography Beneath Each Video */
.web-caption {
  margin-top: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(26, 25, 22, 0.14);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.web-caption-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.web-item-num {
  font: 11px Mono, monospace;
  color: #857f72;
  letter-spacing: 0.06em;
}

.web-item-name {
  font: 400 clamp(18px, 1.6vw, 22px)/1.2 Bodoni, Georgia, serif;
  letter-spacing: -0.02em;
  color: #1a1916;
  transition: color 0.3s ease;
}

.web-item:hover .web-item-name {
  color: #000;
}

.web-item-category {
  font: 9px/1.5 Mono, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #787265;
}

.web-horizontal-row:focus-visible {
  outline: 2px solid #1a1916;
  outline-offset: 4px;
}

/* RTL (Arabic) Support */
[dir="rtl"] .web-section-header,
[dir="rtl"] .web-caption-main {
  direction: rtl;
}

/* Mobile: Compact Swipeable Carousel */
@media (max-width: 768px) {
  .websites {
    padding: 38px 0 32px;
    overflow: hidden;
  }

  .web-section-header {
    margin: 0 var(--gutter, 6vw) 20px;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .web-title {
    font-size: 30px;
  }

  .web-count-tag {
    font-size: 9px;
  }

  .web-horizontal-row {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 0 var(--gutter, 6vw) 12px;
    scroll-padding-inline: var(--gutter, 6vw);
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .web-horizontal-row::-webkit-scrollbar {
    display: none;
  }

  .web-item {
    flex: 0 0 85%;
    max-width: 360px;
    scroll-snap-align: start;
  }

  .web-item-name {
    font-size: 21px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .web-preview-frame {
    transition: none !important;
    transform: none !important;
  }
}
