@layer base, layout, components, utilities, pages;

@layer pages {
  /* ========================================
     CASE SINGLE - Industrial Editorial Design
     Product-focused layout with refined typography
     ======================================== */

  /* ----------------------------------------
     CASE HERO - Compact Header
     ---------------------------------------- */
  .case-hero {
    position: relative;
    padding: clamp(64px, 10vw, 100px) 0 clamp(48px, 8vw, 72px);
    background: linear-gradient(135deg, #0c1220 0%, #1a2744 50%, #0f1729 100%);
    overflow: hidden;
  }

  .case-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .case-hero__gradient {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 20% 40%, rgba(245, 130, 32, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse 60% 40% at 80% 60%, rgba(217, 111, 16, 0.06) 0%, transparent 50%);
  }

  .case-hero__pattern {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
      linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 20%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 20%, black 0%, transparent 70%);
  }

  .case-hero__container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter, 24px);
  }

  .case-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: clamp(20px, 3vw, 28px);
  }

  .case-hero__label {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, #F58220 0%, #d96f10 100%);
    color: #ffffff;
    font-family: var(--font-display-en, 'Bebas Neue', sans-serif);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 2px;
  }

  .case-hero__date {
    font-family: var(--font-body-en, 'DM Sans', sans-serif);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
  }

  .case-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(16px, 2.5vw, 24px);
  }

  .case-hero__tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .case-hero__tag:hover {
    background: rgba(245, 130, 32, 0.15);
    border-color: rgba(245, 130, 32, 0.4);
    color: #ffffff;
  }

  .case-hero__title {
    margin: 0 0 clamp(16px, 2.5vw, 24px);
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #ffffff;
    max-width: 900px;
  }

  .case-hero__lead {
    margin: 0;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
  }

  /* ----------------------------------------
     CASE CONTENT - Two Column Layout
     ---------------------------------------- */
  .case-content {
    background: #ffffff;
    padding: clamp(48px, 7vw, 80px) 0;
  }

  .case-content__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 64px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--gutter, 24px);
  }

  @media (min-width: 900px) {
    .case-content__container {
      grid-template-columns: 1fr 1fr;
      align-items: start;
    }
  }

  /* ----------------------------------------
     FEATURED IMAGE - Product Showcase
     ---------------------------------------- */
  .case-featured {
    margin: 0;
    position: relative;
  }

  .case-featured__frame {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.04),
      0 8px 32px rgba(0, 0, 0, 0.08);
  }

  .case-featured__frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
  }

  .case-featured__frame img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .case-featured:hover .case-featured__frame img {
    transform: scale(1.02);
  }

  .case-featured__caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
  }

  .case-featured__badge {
    display: inline-flex;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 4px;
    font-family: var(--font-body-en, 'DM Sans', sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
  }

  /* ----------------------------------------
     SPECIFICATIONS - Sidebar Card
     ---------------------------------------- */
  .case-specs {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.02),
      0 8px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
  }

  .case-specs__header {
    padding: clamp(24px, 3.5vw, 32px);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
  }

  .case-specs__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F58220 0%, #d96f10 100%);
  }

  .case-specs__label-en {
    display: block;
    font-family: var(--font-display-en, 'Bebas Neue', sans-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    margin-bottom: 4px;
  }

  .case-specs__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
  }

  .case-specs__list {
    margin: 0;
    padding: 0;
  }

  .case-specs__item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: clamp(18px, 2.5vw, 24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease;
  }

  @media (min-width: 480px) {
    .case-specs__item {
      grid-template-columns: 140px 1fr;
      gap: 16px;
      align-items: baseline;
    }
  }

  .case-specs__item:last-child {
    border-bottom: none;
  }

  .case-specs__item:hover {
    background: rgba(245, 130, 32, 0.02);
  }

  .case-specs__item.is-empty {
    opacity: 0.5;
  }

  .case-specs__term {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
  }

  .case-specs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 6px;
    flex-shrink: 0;
  }

  .case-specs__icon::before {
    content: '';
    width: 14px;
    height: 14px;
    background: #64748b;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
  }

  .case-specs__icon[data-icon="cube"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 16-9 5-9-5V8l9-5 9 5v8z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3.27 6.96 12 12.01l8.73-5.05M12 22.08V12'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 16-9 5-9-5V8l9-5 9 5v8z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3.27 6.96 12 12.01l8.73-5.05M12 22.08V12'/%3E%3C/svg%3E");
  }

  .case-specs__icon[data-icon="resize"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0-5 5M4 16v4m0 0h4m-4 0 5-5m11 5-5-5m5 5v-4m0 4h-4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0-5 5M4 16v4m0 0h4m-4 0 5-5m11 5-5-5m5 5v-4m0 4h-4'/%3E%3C/svg%3E");
  }

  .case-specs__icon[data-icon="cog"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  }

  .case-specs__icon[data-icon="tool"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75'/%3E%3C/svg%3E");
  }

  .case-specs__icon[data-icon="info"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0zm-9-3.75h.008v.008H12V8.25z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0zm-9-3.75h.008v.008H12V8.25z'/%3E%3C/svg%3E");
  }

  .case-specs__value {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
  }

  .case-specs__value p {
    margin: 0 0 8px;
  }

  .case-specs__value p:last-child {
    margin-bottom: 0;
  }

  .case-specs__empty {
    color: #94a3b8;
  }

  /* Industries */
  .case-specs__industries {
    padding: clamp(18px, 2.5vw, 24px);
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
  }

  .case-specs__industries-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 12px;
  }

  .case-specs__industries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .case-specs__industry-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .case-specs__industry-tag:hover {
    border-color: #F58220;
    color: #F58220;
    background: rgba(245, 130, 32, 0.04);
  }

  /* ----------------------------------------
     ARTICLE BODY - Content Section
     ---------------------------------------- */
  .case-article {
    background: #f8fafc;
    padding: clamp(64px, 9vw, 100px) 0;
  }

  .case-article__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--gutter, 24px);
  }

  .case-article__header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
  }

  .case-article__label-en {
    display: block;
    font-family: var(--font-display-en, 'Bebas Neue', sans-serif);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(245, 130, 32, 0.2);
    line-height: 1;
    margin-bottom: 8px;
  }

  .case-article__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.02em;
  }

  .case-article__body {
    background: #ffffff;
    padding: clamp(32px, 5vw, 56px);
    border-radius: 16px;
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.02),
      0 8px 24px rgba(0, 0, 0, 0.04);
  }

  .case-article__body h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.4;
    margin: clamp(40px, 5vw, 56px) 0 clamp(16px, 2.5vw, 24px);
    color: #0f172a;
    padding-left: 18px;
    border-left: 4px solid #F58220;
    position: relative;
  }

  .case-article__body h2:first-child {
    margin-top: 0;
  }

  .case-article__body h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    font-weight: 700;
    line-height: 1.45;
    margin: clamp(32px, 4vw, 44px) 0 clamp(12px, 2vw, 18px);
    color: #1e293b;
  }

  .case-article__body p {
    font-size: clamp(0.95rem, 1.35vw, 1.05rem);
    line-height: 2;
    margin: 0 0 clamp(18px, 2.5vw, 24px);
    color: #374151;
  }

  .case-article__body ul,
  .case-article__body ol {
    margin: 0 0 clamp(18px, 2.5vw, 24px);
    padding-left: 1.5em;
  }

  .case-article__body li {
    font-size: clamp(0.95rem, 1.35vw, 1.05rem);
    line-height: 1.9;
    margin-bottom: 8px;
    color: #374151;
  }

  .case-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: clamp(28px, 4vw, 40px) 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .case-article__body blockquote {
    margin: clamp(28px, 4vw, 40px) 0;
    padding: clamp(20px, 3vw, 28px) clamp(24px, 3.5vw, 32px);
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.04) 0%, rgba(217, 111, 16, 0.02) 100%);
    border-left: 4px solid #F58220;
    border-radius: 0 10px 10px 0;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.85;
    color: #475569;
  }

  .case-article__body blockquote p:last-child {
    margin-bottom: 0;
  }

  /* ----------------------------------------
     SHARE TOOLS - Compact Inline
     ---------------------------------------- */
  .single-case .section--share {
    background: #ffffff;
    padding: clamp(24px, 4vw, 40px) 0;
    border-top: 1px solid #f1f5f9;
  }

  .single-case .share-tools {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter, 24px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(16px, 2.5vw, 24px);
  }

  .single-case .share-tools__label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
  }

  .single-case .share-tools__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .single-case .share-tools__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .single-case .share-tools__btn:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #1e293b;
  }

  .single-case .share-tools__btn--x {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
  }

  .single-case .share-tools__btn--x:hover {
    background: #1e293b;
    border-color: #1e293b;
  }

  .single-case .share-tools__feedback {
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
    margin: 0;
  }

  .single-case .share-tools__feedback.is-error {
    color: #ef4444;
  }

  /* ----------------------------------------
     RELATED CONTENT - Case-specific overrides
     Base styles are in core-components.css
     ---------------------------------------- */
  .single-case .section--related {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
  }

  .single-case .section--related .section__title::after {
    background: linear-gradient(90deg, #F58220 0%, #d96f10 100%);
  }

  .single-case .related-group__title {
    border-left-color: #F58220;
  }

  /* Q&A - Orange accent */
  .single-case .qa-accordion[open] {
    border-color: #F58220;
  }

  .single-case .qa-q__label {
    background: linear-gradient(135deg, #F58220 0%, #d96f10 100%);
  }

  /* More Link - Orange hover */
  .single-case .related-group .section__more:hover {
    border-color: #F58220;
    color: #F58220;
    background: rgba(245, 130, 32, 0.04);
  }

  /* ----------------------------------------
     ARCHIVE PAGE - Angular Rich Design
     ---------------------------------------- */
  .post-type-archive-case .section {
    position: relative;
    background: #ffffff;
    padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 10vw, 120px);
  }

  .post-type-archive-case .section__head {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto clamp(48px, 6vw, 72px);
    padding: 0 clamp(32px, 5vw, 80px);
  }

  .post-type-archive-case .section__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0;
    position: relative;
    display: inline-block;
  }

  .post-type-archive-case .section__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #F58220 0%, #d96f10 100%);
    border-radius: 2px;
  }

  /* Filters */
  .post-type-archive-case .filters {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto clamp(40px, 5vw, 60px);
    padding: clamp(24px, 3.5vw, 32px);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  }

  .post-type-archive-case .filters__group {
    gap: 0.75rem;
  }

  .post-type-archive-case .filters__label {
    color: #374151;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }

  .post-type-archive-case .filters select,
  .post-type-archive-case .filters input[type="search"] {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1f2937;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .post-type-archive-case .filters select:hover,
  .post-type-archive-case .filters input[type="search"]:hover {
    border-color: #9ca3af;
  }

  .post-type-archive-case .filters select:focus-visible,
  .post-type-archive-case .filters input[type="search"]:focus-visible {
    border-color: #F58220;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.12);
    outline: none;
  }

  .post-type-archive-case .filters .chip {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
  }

  .post-type-archive-case .filters .chip:has(input:checked) {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
  }

  .post-type-archive-case .filters__actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .post-type-archive-case .filters__actions .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 14px 28px;
    font-size: 0.875rem;
  }

  .post-type-archive-case .filters__actions .btn--primary {
    background: linear-gradient(135deg, #F58220 0%, #d96f10 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.25);
  }

  .post-type-archive-case .filters__actions .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 130, 32, 0.35);
  }

  .post-type-archive-case .filters__actions .btn:not(.btn--primary) {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
  }

  .post-type-archive-case .filters__actions .btn:not(.btn--primary):hover {
    border-color: #9ca3af;
    background: #f9fafb;
  }

  /* Card Grid */
  .post-type-archive-case .card-list {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(32px, 5vw, 80px);
  }

  /* Cards */
  .post-type-archive-case .card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    min-height: auto;
    align-items: stretch;
    transition: all 0.3s ease;
  }

  .post-type-archive-case .card::before,
  .post-type-archive-case .card::after {
    display: none;
  }

  .post-type-archive-case .card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
  }

  .post-type-archive-case .card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
    overflow: hidden;
  }

  .post-type-archive-case .card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .post-type-archive-case .card__media.is-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
  }

  .post-type-archive-case .card__media.is-logo img {
    width: 65%;
    height: auto;
    object-fit: contain;
  }

  .post-type-archive-case .card:hover .card__media img {
    transform: scale(1.04);
  }

  .post-type-archive-case .card:hover .card__media.is-logo img {
    transform: scale(1.02);
  }

  .post-type-archive-case .card__body {
    position: static;
    padding: clamp(20px, 3vw, 26px);
    gap: 10px;
    display: flex;
    flex-direction: column;
    color: inherit;
  }

  .post-type-archive-case .card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
  }

  .post-type-archive-case .card__category {
    display: inline-block;
    padding: 4px 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 4px;
    clip-path: none;
  }

  .post-type-archive-case .card__date {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .post-type-archive-case .card__title {
    color: #0f172a;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 700;
    line-height: 1.5;
    text-shadow: none;
  }

  .post-type-archive-case .card__excerpt,
  .post-type-archive-case .card__meta {
    display: none;
  }

  /* Pagination */
  .post-type-archive-case .pagination {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: clamp(48px, 6vw, 72px) auto 0;
    padding: 0 clamp(32px, 5vw, 80px);
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .post-type-archive-case .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
  }

  .post-type-archive-case .page-numbers:hover {
    border-color: #F58220;
    color: #F58220;
    background: rgba(245, 130, 32, 0.04);
  }

  .post-type-archive-case .page-numbers.current {
    background: linear-gradient(135deg, #F58220 0%, #d96f10 100%);
    border-color: transparent;
    color: #ffffff;
  }

  /* ----------------------------------------
     RESPONSIVE
     ---------------------------------------- */
  @media (max-width: 900px) {
    .case-content__container {
      grid-template-columns: 1fr;
    }

    .case-specs {
      position: static;
    }

    .post-type-archive-case .filters {
      margin-left: clamp(20px, 4vw, 32px);
      margin-right: clamp(20px, 4vw, 32px);
    }
  }

  @media (max-width: 640px) {
    .case-hero {
      padding: clamp(48px, 8vw, 72px) 0 clamp(36px, 6vw, 56px);
    }

    .case-hero__meta {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .case-specs__item {
      grid-template-columns: 1fr;
    }

    .single-case .share-tools {
      flex-direction: column;
      align-items: stretch;
      text-align: center;
    }

    .single-case .share-tools__actions {
      flex-direction: column;
    }

    .single-case .share-tools__btn {
      width: 100%;
      justify-content: center;
    }

    .single-case .related-group .card-list {
      grid-template-columns: 1fr !important;
    }

    .post-type-archive-case .section__title {
      font-size: clamp(2rem, 7vw, 2.5rem);
    }

    .post-type-archive-case .filters__actions {
      flex-direction: column;
    }

    .post-type-archive-case .filters__actions .btn {
      width: 100%;
    }

    .post-type-archive-case .card__body {
      padding: 18px;
    }
  }

  /* ----------------------------------------
     ANIMATIONS
     ---------------------------------------- */
  @media (prefers-reduced-motion: no-preference) {
    .case-hero__container > * {
      opacity: 0;
      transform: translateY(20px);
      animation: caseReveal 0.6s ease-out forwards;
    }

    .case-hero__meta { animation-delay: 0.1s; }
    .case-hero__tags { animation-delay: 0.2s; }
    .case-hero__title { animation-delay: 0.3s; }
    .case-hero__lead { animation-delay: 0.4s; }

    .case-featured,
    .case-specs,
    .case-article__header,
    .case-article__body {
      opacity: 0;
      transform: translateY(30px);
      animation: caseReveal 0.7s ease-out forwards;
    }

    .case-featured { animation-delay: 0.2s; }
    .case-specs { animation-delay: 0.35s; }
    .case-article__header { animation-delay: 0.15s; }
    .case-article__body { animation-delay: 0.3s; }
  }

  @keyframes caseReveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
