/* =============================================
   WORK PAGE STYLES
   ============================================= */

[data-fade] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-fade].visible { opacity: 1; transform: none; }

/* Filter bar */
.filter-bar {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 50;
  background: var(--bg);
}

.filter-inner {
  display: flex;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
}

.filter-btn {
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  color: var(--ink-mid);
  background: transparent;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--border);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* Projects section */
.projects-section {
  padding: 72px 0;
}

.project-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 0;
}

.project-block--reverse {
  direction: rtl;
}
.project-block--reverse > * {
  direction: ltr;
}

.project-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 72px 0;
}

/* Project visuals */
.project-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.coming-soon-badge {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--accent-dark);
  background: rgba(255,255,255,0.82);
  padding: 14px 34px;
  border-radius: 999px;
  border: 1px solid rgba(74,124,116,0.25);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
  transform: rotate(-3deg);
  white-space: nowrap;
}

.project-visual--dark { background: linear-gradient(135deg, #1a2f3c 0%, #2a4a5e 100%); }
.project-visual--black { background: linear-gradient(135deg, #111 0%, #2a2a2a 100%); }
.project-visual--warm { background: linear-gradient(135deg, #e8e0d4 0%, #d4c4ae 100%); }
.project-visual--clay { background: linear-gradient(135deg, #d4c4ae 0%, #c0ae98 100%); }

.pv-inner {
  width: 85%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Laptop frame */
.device-frame--laptop {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.device-screen { width: 100%; }

.screen-nav {
  height: 32px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.screen-body {
  display: flex;
  height: 180px;
}

.screen-sidebar {
  width: 52px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.screen-content {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scr-row {
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
}
.scr-row--title { width: 50%; background: rgba(255,255,255,0.18); height: 10px; }

.scr-stat-row {
  display: flex;
  gap: 8px;
}

.scr-stat {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
}
.scr-stat--accent { background: rgba(74,124,116,0.35); }

.scr-table {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.scr-table-row {
  height: 14px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
}
.scr-table-row--alt { background: rgba(255,255,255,0.03); }

/* Amp grid */
.amp-grid {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.amp-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.amp-face {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.04);
}

.amp-base {
  height: 10px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
}

.amp-block--lg .amp-face { width: 100px; height: 100px; border-radius: 6px; }
.amp-block--sm .amp-face { width: 64px; height: 64px; border-radius: 5px; }

/* Brand showcase */
.brand-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.brand-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #8a7a6a;
  background: transparent;
}

.brand-text-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.brand-tl {
  height: 7px;
  border-radius: 4px;
  background: #8a7a6a;
}
.brand-tl--lg { width: 120px; }
.brand-tl--sm { width: 72px; opacity: 0.5; }

.brand-palette {
  display: flex;
  gap: 8px;
}

.palette-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.palette-swatch--1 { background: #8a7a6a; }
.palette-swatch--2 { background: #b09e8c; }
.palette-swatch--3 { background: #d4c4ae; }
.palette-swatch--4 { background: #e8e0d4; border: 1px solid #ccc; }

/* Web preview */
.web-preview {
  width: 100%;
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.wp-header {
  height: 28px;
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.wp-hero {
  height: 80px;
  background: #c0ae98;
  opacity: 0.6;
}

.wp-grid {
  display: flex;
  gap: 6px;
  padding: 8px;
}

.wp-thumb {
  flex: 1;
  height: 52px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
}

/* Project info */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.project-year {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  color: var(--ink-light);
  white-space: nowrap;
}

.project-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.project-intro {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 28px;
}

.project-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.detail-block h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.detail-block p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* CTA section */
.work-cta-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.work-cta-inner {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.work-cta-inner h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.work-cta-inner p {
  color: var(--ink-mid);
  margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 860px) {
  .project-block,
  .project-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .project-visual { aspect-ratio: 16/9; }
  .project-divider { margin: 48px 0; }
}

@media (max-width: 600px) {
  .projects-section { padding: 48px 0; }
  .project-divider { margin: 36px 0; }
  .project-info h2 { font-size: 1.5rem; }
  .project-intro { font-size: 0.9rem; margin-bottom: 20px; }
  .coming-soon-badge { font-size: 1.1rem; padding: 10px 24px; }
  .work-cta-section { padding: 56px 0; }
}
