/* ============================================================
   BEEHIVE BRAND LAB — Works / Portfolio Page Styles
   Award-winning portfolio grid with category filtering
   ============================================================ */

/* ── HERO ── */
.works-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 100px;
  overflow: hidden;
  background: var(--bg);
}

.works-hero-noise {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(212, 160, 74, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(212, 160, 74, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.works-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.works-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.works-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.works-hero-eyebrow-line {
  width: 48px;
  height: 1px;
  background: var(--honey);
}

.works-hero-eyebrow-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--honey);
}

.works-hero-title {
  font-size: clamp(72px, 11vw, 160px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0;
}

.works-hero-title .stroke-text {
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.25);
  color: transparent;
  display: block;
}

.works-hero-title .solid-text {
  display: block;
}

.works-hero-title .gold-accent {
  color: var(--honey);
  font-style: italic;
}

.works-hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 48px;
}

.works-hero-desc {
  max-width: 380px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.works-hero-stats {
  display: flex;
  gap: 48px;
}

.works-hero-stat {
  text-align: right;
}

.works-hero-stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--honey);
  line-height: 1;
  font-style: italic;
}

.works-hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── SCROLLING MARQUEE ── */
.works-marquee-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-surface);
}

.works-marquee-track {
  display: flex;
  gap: 0;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.works-marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.works-marquee-item .dot {
  width: 4px;
  height: 4px;
  background: var(--honey);
  border-radius: 50%;
  flex-shrink: 0;
}

.works-marquee-item.highlight {
  color: var(--honey);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── FILTER BAR ── */
.works-filter-section {
  padding: 80px 0 60px;
}

.works-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.works-filter-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.works-filter-title .stroke {
  -webkit-text-stroke: 1px var(--text);
  color: transparent;
}

.works-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.works-filter-btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.works-filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--honey);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: inherit;
}

.works-filter-btn span {
  position: relative;
  z-index: 1;
}

.works-filter-btn:hover {
  border-color: var(--honey);
  color: var(--bg);
}

.works-filter-btn:hover::before {
  transform: translateY(0);
}

.works-filter-btn.active {
  background: var(--honey);
  border-color: var(--honey);
  color: var(--bg);
  font-weight: 600;
}

.works-filter-btn.active::before {
  transform: translateY(0);
}

.works-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(212, 160, 74, 0.15);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--honey);
  margin-left: 6px;
}

/* ── WORKS GRID ── */
.works-grid-section {
  padding-bottom: 120px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* Grid layout patterns */
.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: var(--bg-card);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-item:hover {
  transform: translateY(-6px);
}

/* Span configurations */
.work-item.span-8  { grid-column: span 8; }
.work-item.span-4  { grid-column: span 4; }
.work-item.span-6  { grid-column: span 6; }
.work-item.span-5  { grid-column: span 5; }
.work-item.span-7  { grid-column: span 7; }
.work-item.span-12 { grid-column: span 12; }

.work-item.tall { aspect-ratio: 3/4; }
.work-item.regular { aspect-ratio: 4/3; }
.work-item.wide { aspect-ratio: 16/7; }
.work-item.square { aspect-ratio: 1; }

/* Image container */
.work-item-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.work-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-item:hover .work-item-img img {
  transform: scale(1.06);
}

/* Overlay */
.work-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    transparent 70%
  );
  transition: opacity 0.4s ease;
  z-index: 1;
}

.work-item:hover .work-item-overlay {
  opacity: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0,0,0,0.2) 100%
  );
}

/* Content inside the card */
.work-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-item:hover .work-item-content {
  transform: translateY(0);
}

.work-item-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 10px;
}

.work-item-cat::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--honey);
}

.work-item-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.work-item.span-8 .work-item-title,
.work-item.span-12 .work-item-title {
  font-size: 24px;
}

.work-item-client {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease 0.05s;
}

.work-item:hover .work-item-client {
  opacity: 1;
  transform: translateY(0);
}

/* Top tag (always visible) */
.work-item-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(212, 160, 74, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 160, 74, 0.3);
  border-radius: 50px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--honey);
}

/* Arrow CTA */
.work-item-cta {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8) rotate(-45deg);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
}

.work-item-cta svg {
  width: 16px;
  height: 16px;
}

.work-item:hover .work-item-cta {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Featured badge */
.work-item-featured {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--honey);
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
}

/* ── HIDDEN STATE FOR FILTER ── */
.work-item.hidden {
  display: none;
}

/* ── YEAR LABEL ── */
.works-year-label {
  grid-column: span 12;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0 8px;
}

.works-year-label-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.works-year-label-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── CTA SECTION ── */
.works-cta-section {
  padding: 120px 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.works-cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 160, 74, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.works-cta-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 24px;
  display: block;
}

.works-cta-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.works-cta-title .italic {
  font-style: italic;
  color: var(--honey);
}

.works-cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.works-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-outline-honey {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border: 1.5px solid var(--honey);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--honey);
  background: transparent;
  letter-spacing: 0.05em;
  transition: all 0.35s ease;
  cursor: pointer;
}

.btn-outline-honey:hover {
  background: var(--honey);
  color: var(--bg);
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════
   WORKS PAGE — COMPREHENSIVE RESPONSIVE STYLES
   Breakpoints: 1200 · 1024 · 768 · 480 · 375
   ═══════════════════════════════════════════════ */

/* ── Large Tablet / Small Laptop (≤ 1200px) ── */
@media (max-width: 1200px) {
  .works-hero {
    padding-bottom: 80px;
  }

  .works-hero-title {
    font-size: clamp(64px, 9vw, 130px);
  }

  .works-hero-stat-number {
    font-size: 40px;
  }

  .works-hero-stats {
    gap: 36px;
  }

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

  .works-filter-section {
    padding: 60px 0 48px;
  }

  .works-cta-section {
    padding: 100px 0;
  }
}

/* ── Tablet Landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
  .works-hero {
    padding-bottom: 72px;
  }

  .works-hero-title {
    font-size: clamp(56px, 10vw, 110px);
  }

  .works-hero-desc {
    max-width: 320px;
    font-size: 14px;
  }

  .works-hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    margin-top: 36px;
  }

  .works-hero-stat {
    text-align: left;
  }

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

  .works-hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  /* 6-column grid on tablet */
  .works-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }

  .work-item.span-8  { grid-column: span 4; }
  .work-item.span-4  { grid-column: span 2; }
  .work-item.span-6  { grid-column: span 3; }
  .work-item.span-5  { grid-column: span 3; }
  .work-item.span-7  { grid-column: span 3; }
  .work-item.span-12 { grid-column: span 6; }

  .work-item.span-8 .work-item-title,
  .work-item.span-12 .work-item-title {
    font-size: 20px;
  }

  .works-filter-section {
    padding: 56px 0 44px;
  }

  .works-filter-header {
    gap: 24px;
  }

  .works-grid-section {
    padding-bottom: 90px;
  }

  .works-cta-section {
    padding: 90px 0;
  }
}

/* ── Tablet Portrait (≤ 768px) ── */
@media (max-width: 768px) {
  /* Hero */
  .works-hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .works-hero-eyebrow {
    margin-bottom: 24px;
    gap: 12px;
  }

  .works-hero-eyebrow-text {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .works-hero-title {
    font-size: clamp(44px, 12vw, 80px);
    line-height: 1;
  }

  .works-hero-bottom {
    margin-top: 28px;
    gap: 24px;
  }

  .works-hero-desc {
    max-width: 100%;
    font-size: 14px;
  }

  .works-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
  }

  .works-hero-stat {
    text-align: left;
  }

  .works-hero-stat-number {
    font-size: 32px;
  }

  .works-hero-stat-label {
    font-size: 10px;
    letter-spacing: 0.15em;
  }

  /* Marquee */
  .works-marquee-section {
    padding: 20px 0;
  }

  .works-marquee-item {
    font-size: 11px;
    padding: 0 28px;
    gap: 16px;
  }

  /* Filter section */
  .works-filter-section {
    padding: 44px 0 36px;
  }

  .works-filter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .works-filter-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  /* Filter tabs — horizontal scroll on small screens */
  .works-filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 4px;
    width: 100%;
  }

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

  .works-filter-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 12px;
  }

  /* 2-column grid */
  .works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .work-item.span-8,
  .work-item.span-4,
  .work-item.span-6,
  .work-item.span-5,
  .work-item.span-7,
  .work-item.span-12 {
    grid-column: span 2;
  }

  /* Normalize aspect ratios on tablet */
  .work-item.tall   { aspect-ratio: 3/4; }
  .work-item.wide   { aspect-ratio: 16/9; }
  .work-item.square { aspect-ratio: 1; }

  .work-item-content {
    padding: 20px;
  }

  .work-item-title {
    font-size: 16px;
  }

  .work-item.span-8 .work-item-title,
  .work-item.span-12 .work-item-title {
    font-size: 18px;
  }

  .works-grid-section {
    padding-bottom: 72px;
  }

  /* CTA section */
  .works-cta-section {
    padding: 72px 0;
  }

  .works-cta-sub {
    font-size: 15px;
    margin-bottom: 36px;
  }

  .works-cta-btns {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .works-cta-btns .btn-primary,
  .works-cta-btns .btn-outline-honey {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
  }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  /* Hero */
  .works-hero {
    padding-top: 110px;
    padding-bottom: 48px;
  }

  .works-hero-title {
    font-size: clamp(38px, 13vw, 64px);
    line-height: 0.95;
  }

  .works-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .works-hero-stat-number {
    font-size: 26px;
  }

  .works-hero-stat-label {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  /* Filter */
  .works-filter-section {
    padding: 36px 0 28px;
  }

  .works-filter-tabs {
    gap: 6px;
  }

  .works-filter-btn {
    padding: 9px 14px;
    font-size: 11px;
  }

  .works-count-badge {
    display: none;
  }

  /* Grid — single column */
  .works-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-item.span-8,
  .work-item.span-4,
  .work-item.span-6,
  .work-item.span-5,
  .work-item.span-7,
  .work-item.span-12 {
    grid-column: span 1;
  }

  /* Uniform aspect ratio for single column */
  .work-item.tall,
  .work-item.square { aspect-ratio: 4/3; }
  .work-item.wide   { aspect-ratio: 16/9; }

  /* Always show content on mobile (no hover needed) */
  .work-item-content {
    padding: 18px;
    transform: translateY(0);
  }

  .work-item-client {
    opacity: 1;
    transform: none;
  }

  .work-item-cta {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  .work-item-tag {
    top: 14px;
    left: 14px;
    font-size: 9px;
    padding: 5px 10px;
  }

  .work-item-title {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .work-item.span-8 .work-item-title,
  .work-item.span-12 .work-item-title {
    font-size: 15px;
  }

  .work-item-cat {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .work-item-client {
    font-size: 11px;
  }

  .works-grid-section {
    padding-bottom: 56px;
  }

  /* CTA */
  .works-cta-section {
    padding: 60px 0;
  }

  .works-cta-eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .works-cta-sub {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .works-cta-btns .btn-primary,
  .works-cta-btns .btn-outline-honey {
    max-width: 100%;
    width: 100%;
  }
}

/* ── Small Mobile (≤ 375px) ── */
@media (max-width: 375px) {
  .works-hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .works-hero-title {
    font-size: clamp(34px, 12vw, 52px);
  }

  .works-hero-eyebrow-text {
    font-size: 9px;
  }

  .works-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .works-hero-stat-number {
    font-size: 22px;
  }

  .works-hero-stat-label {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .works-filter-section {
    padding: 28px 0 20px;
  }

  .works-filter-btn {
    padding: 8px 12px;
    font-size: 10px;
  }

  .works-grid {
    gap: 10px;
  }

  .work-item-content {
    padding: 14px;
  }

  .work-item-title {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .works-cta-section {
    padding: 48px 0;
  }
}

