/* ============================================================
   Work / Portfolio — page.css
   Extends ../style.css
   ============================================================ */

/* ── Service hero (self-contained) ──────────────────────────── */
.svc-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding-top: 4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.svc-hero-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.svc-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.hero-example-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  align-self: center;
}

.hero-example-img img {
  width: 100%;
  height: auto;
  display: block;
}

#heroParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.svc-hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-size: clamp(2rem, min(4.5vw, 8svh), 3.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0.25rem 0 0.375rem;
}

.svc-hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.svc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.svc-bc-home {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.svc-bc-home:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.svc-bc-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.875rem;
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  white-space: nowrap;
}

.svc-bc-arrow {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.8;
}

.hero-price-block {
  margin: 0.25rem 0 0.875rem;
}

.hero-price-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}


/* ── Shared section-sub utility ──────────────────────────────── */
.section-sub {
  font-size: clamp(0.9375rem, 1.25vw, 1rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
  margin-top: -0.5rem;
}


/* ── Project Types ───────────────────────────────────────────── */
.work-projects-section {
  background: var(--surface);
}

.work-projects-head {
  margin-bottom: 2rem;
  max-width: 640px;
}

.work-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.work-filter-chip {
  padding: 0.35rem 0.875rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: default;
}


/* ── Project Cards ───────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.work-project-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1.875rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.work-project-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.work-project-cat {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-project-badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border2);
  border-radius: 4px;
}

.work-project-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.work-project-rows {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.work-project-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.work-project-row-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

.work-project-row-val {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.work-project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0;
  margin: 0.2rem 0 0;
}

.work-project-list li {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.work-project-list li::before {
  content: '';
  display: block;
  width: 12px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.62em;
}

.work-project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.5rem;
  transition: opacity 0.2s;
}

.work-project-cta:hover {
  opacity: 0.75;
}


/* ── How We Present Results ──────────────────────────────────── */
.work-present-section {
  background: var(--bg);
}

.work-present-head {
  margin-bottom: 3rem;
  max-width: 640px;
}

.work-present-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.work-present-item {
  background: var(--surface);
  padding: 1.875rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.work-present-num {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-present-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.work-present-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.75;
}


/* ── Service Links ───────────────────────────────────────────── */
.work-links-section {
  background: var(--surface2);
}

.work-links-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.work-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.work-link-card {
  background: var(--surface);
  padding: 1.5rem 1.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s;
}

.work-link-card:hover {
  background: var(--bg);
}

.work-link-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ── CTA ─────────────────────────────────────────────────────── */
.work-cta-section {
  background: var(--bg);
}

.work-cta-inner {
  max-width: 720px;
}

.work-cta-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, #ffffff 20%, #c0d0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.work-cta-body {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 580px;
}


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  .svc-hero-inner {
    display: block;
  }

  .hero-example-img {
    display: none;
  }
}

@media (max-width: 1100px) {
  .work-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-present-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .work-links-grid {
    grid-template-columns: 1fr;
  }

  .work-present-grid {
    grid-template-columns: 1fr;
  }
}
