/* ==========================================================================
   DSBF CONTENT PAGES — Shared Layout & Components
   Extends the Brand Design System from index.css
   ========================================================================== */

/* ==========================================================================
   PAGE HERO
   ========================================================================== */
.page-hero {
  padding: 44px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(245, 120, 10, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(0, 180, 216, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-content {
  max-width: 740px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 16px 0 20px;
  color: var(--text-pure);
}

.page-hero h1 em {
  font-style: italic;
}

.page-hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
}

/* Projects hero: use the full canvas and let the copy balance the headline. */
.projects-page-hero {
  padding-bottom: 76px;
}

.projects-page-hero .page-hero-content {
  max-width: none;
}

.projects-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: clamp(48px, 8vw, 140px);
}

.projects-hero-heading h1 {
  margin-bottom: 0;
  max-width: 900px;
}

.projects-hero-copy {
  width: 100%;
  max-width: 480px;
  justify-self: end;
  padding: 22px 0 6px;
  border-top: 1px solid var(--border-glass-bright);
}

.projects-hero-copy .page-hero-desc {
  max-width: none;
  margin: 14px 0 22px;
}

.projects-hero-kicker,
.projects-hero-focus {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.projects-hero-kicker {
  color: var(--brand-orange);
  font-size: 12px;
  font-weight: 700;
}

.projects-hero-focus {
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.6;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--brand-orange);
}

.breadcrumb-sep {
  color: var(--text-dim);
  opacity: 0.4;
  font-size: 10px;
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.filter-section {
  padding: 0 0 24px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-bar-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 8px;
  white-space: nowrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass-bright);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-dim);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

.filter-btn[aria-pressed="true"] {
  color: #ffffff;
  background: var(--gradient-brand);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(245, 120, 10, 0.2);
}

.filter-btn[aria-pressed="true"]:hover {
  box-shadow: 0 6px 20px rgba(245, 120, 10, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   CONTENT GRID & CARD
   ========================================================================== */
.content-section {
  padding: 20px 0 80px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glass-bright);
  background: var(--bg-card-hover);
}

.content-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-deep);
  display: block;
}

.content-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.content-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.content-card-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-orange);
  background: rgba(245, 120, 10, 0.06);
  border: 1px solid var(--border-orange);
  padding: 4px 10px;
  border-radius: 100px;
}

.content-card-tag.cyber {
  color: #0077b6;
  background: rgba(0, 180, 216, 0.06);
  border-color: var(--border-cyan);
}

.content-card-date {
  font-size: 12px;
  color: var(--text-dim);
}

.content-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-pure);
  margin-bottom: 10px;
}

.content-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}

.content-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.content-card-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.content-card:hover .content-card-link {
  gap: 10px;
}

.content-card-read-time {
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   FEATURED CARD (Hero-sized highlight)
   ========================================================================== */
.featured-section {
  padding: 0 0 40px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.featured-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glass-bright);
}

.featured-card-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  background: var(--bg-deep);
}

.featured-card-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  margin: 14px 0 16px;
  color: var(--text-pure);
}

.featured-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-glass-bright);
  border-radius: 24px;
  grid-column: 1 / -1;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: rgba(245, 120, 10, 0.06);
  border: 1.5px solid var(--border-orange);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

.empty-state .btn {
  margin: 0 auto;
}

/* ==========================================================================
   VALUE GRID (Careers — Culture & Benefits)
   ========================================================================== */
.values-section {
  padding: 60px 0 80px;
}

.values-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.values-section-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin: 14px 0 16px;
}

.values-section-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-glass-bright);
}

.value-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(245, 120, 10, 0.06);
  border: 1px solid var(--border-orange);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
  font-size: 24px;
}

.value-card-icon.cyber {
  background: rgba(0, 180, 216, 0.06);
  border-color: var(--border-cyan);
  color: var(--brand-cyan);
}

.value-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-pure);
}

.value-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   HIRING JOURNEY (Careers — namespaced to avoid Design Buffet collisions)
   ========================================================================== */
.hiring-process-section {
  padding: 72px 0 96px;
  border-top: 1px solid var(--border-glass);
}

.hiring-process-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.hiring-process-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin: 14px 0 14px;
}

.hiring-process-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.hiring-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hiring-step {
  position: relative;
  min-height: 220px;
  padding: 26px 24px 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(251, 250, 248, 0.82));
  border: 1px solid var(--border-glass-bright);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}

.hiring-step:hover {
  transform: translateY(-3px);
  border-color: var(--border-orange);
  box-shadow: var(--shadow-md);
}

.hiring-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  z-index: 2;
  top: 35px;
  right: -15px;
  width: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
}

.hiring-step-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: var(--gradient-brand);
  box-shadow: 0 7px 18px rgba(245, 120, 10, 0.18);
}

.hiring-step:nth-child(even) .hiring-step-number {
  background: var(--gradient-cyber);
  box-shadow: 0 7px 18px rgba(0, 119, 182, 0.16);
}

.hiring-step-copy h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
  color: var(--text-pure);
}

.hiring-step-copy p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   CTA SECTION (Bottom of content pages)
   ========================================================================== */
.content-cta-section {
  padding: 0 0 100px;
}

.content-cta-card {
  background: #0c0e14;
  border-radius: 24px;
  padding: 64px 52px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.content-cta-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 120, 10, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.content-cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.content-cta-content {
  position: relative;
  z-index: 1;
}

.content-cta-content .eyebrow {
  color: var(--brand-yellow);
  background: rgba(255, 184, 0, 0.15);
  border-color: rgba(255, 184, 0, 0.3);
}

.content-cta-content h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin: 16px 0 16px;
}

.content-cta-content h2 em {
  font-style: italic;
}

.content-cta-content p {
  font-size: 16px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 480px;
}

.content-cta-actions {
  position: relative;
  z-index: 1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 220px;
}

.content-cta-actions a:not(.btn) {
  font-size: 13px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  padding-bottom: 10px;
  transition: border-color var(--transition-fast);
}

.content-cta-actions a:not(.btn):hover {
  border-color: #ffffff;
}

/* ==========================================================================
   CLIENT LOGO STRIP (Reuse on Projects page)
   ========================================================================== */
.client-strip {
  padding: 60px 0 40px;
}

.client-strip-title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.client-strip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 36px;
}

.client-strip-grid.is-carousel {
  display: block;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.client-strip-track {
  display: flex;
  width: max-content;
  animation: client-logo-marquee 30s linear infinite;
  will-change: transform;
}

.client-strip-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(36px, 4vw, 64px);
  padding-inline: clamp(18px, 2vw, 32px);
}

.client-strip-grid.is-carousel:hover .client-strip-track,
.client-strip-grid.is-carousel:focus-within .client-strip-track {
  animation-play-state: paused;
}

.client-strip-grid img,
.client-strip-group img {
  flex: none;
  height: 32px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: all var(--transition-fast);
}

.client-strip-grid img:hover,
.client-strip-group img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes client-logo-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   PROJECT CASE STUDIES
   ========================================================================== */
.project-card-client {
  margin: 0 0 7px;
  font-family: var(--font-mono);
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim) !important;
}

.project-listing-section {
  padding: 12px 0 72px;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card-featured {
  grid-column: auto;
  border-color: rgba(245, 120, 10, 0.16);
  box-shadow: 0 10px 30px rgba(12, 14, 20, 0.04);
}

.project-card {
  min-width: 0;
  border-radius: 16px;
}

.project-card .content-card-img,
.project-card-featured .content-card-img {
  aspect-ratio: 16 / 10;
  height: auto;
}

.project-card .content-card-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .content-card-img {
  transform: scale(1.025);
}

.project-card .content-card-body {
  position: relative;
  z-index: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.project-card .content-card-meta {
  gap: 9px;
  margin-bottom: 10px;
}

.project-card .content-card-tag {
  overflow: hidden;
  max-width: calc(100% - 46px);
  padding: 4px 9px;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card .content-card-date {
  margin-left: auto;
  font-size: 11px;
}

.project-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 9px;
  font-size: 17px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card .content-card-body > p:not(.project-card-client) {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-card .content-card-footer {
  margin-top: 14px;
  padding-top: 13px;
}

.project-card .content-card-link {
  font-size: 12px;
}

.project-detail-hero {
  padding: 44px 0 52px;
}

.project-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin: 24px 0 40px;
}

.project-detail-client {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.project-detail-heading h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  color: var(--text-pure);
}

.project-detail-summary {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  color: var(--text-muted);
}

.project-detail-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 300px;
}

.project-detail-tags span {
  padding: 8px 12px;
  border: 1px solid var(--border-orange);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.project-detail-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
  border-radius: 28px;
  background: var(--bg-deep);
}

.project-facts-section {
  padding: 0 0 72px;
}

.project-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-glass-bright);
  border-bottom: 1px solid var(--border-glass-bright);
}

.project-facts-grid > div {
  padding: 24px 22px;
  border-right: 1px solid var(--border-glass-bright);
}

.project-facts-grid > div:last-child {
  border-right: 0;
}

.project-facts-grid span,
.project-facts-grid strong {
  display: block;
}

.project-facts-grid span {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.project-facts-grid strong {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-pure);
}

.project-fact-wide {
  grid-column: span 2;
}

.project-results-section {
  padding: 72px 0;
  background: #0c0e14;
}

.project-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.project-result-card {
  min-height: 180px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.project-result-card strong,
.project-result-card span {
  display: block;
}

.project-result-card strong {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  color: #ffffff;
}

.project-result-card span {
  font-size: 14px;
  line-height: 1.55;
  color: #aeb8c8;
}

.project-story-section {
  padding: 96px 0;
}

.project-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 72px;
}

.project-story-grid article h2,
.project-section-heading h2 {
  margin: 16px 0 24px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.project-richtext {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.project-richtext > *:first-child {
  margin-top: 0;
}

.project-richtext img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.project-story-grid aside {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--border-glass-bright);
  border-radius: 20px;
  background: var(--bg-card);
}

.project-story-grid aside ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.project-story-grid aside li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 14px;
  color: var(--text-primary);
}

.project-story-grid aside li::before {
  content: '↗';
  margin-right: 9px;
  color: var(--brand-orange);
}

.project-gallery-section {
  padding: 68px 0;
  background: #11110f;
  color: #f7f4ed;
}

.related-projects-section {
  padding: 68px 0;
  background: var(--bg-deep);
}

.project-section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.project-gallery-section .project-section-heading {
  display: flex;
  max-width: none;
  align-items: baseline;
  gap: 24px;
}

.project-gallery-section .project-section-heading h2 {
  margin: 0;
  color: #f7f4ed;
}

.project-gallery {
  columns: 4;
  column-gap: 14px;
}

.project-gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
}

.project-gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  transition: transform 220ms ease, opacity 220ms ease;
}

.project-gallery-trigger:hover img {
  transform: scale(1.015);
  opacity: 0.92;
}

.project-gallery-trigger:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 4px;
}

.project-lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  border: 0;
  background: rgba(7, 8, 11, 0.96);
  color: #ffffff;
}

.project-lightbox::backdrop {
  background: rgba(7, 8, 11, 0.92);
}

.project-lightbox[open] {
  display: grid;
  place-items: center;
}

.project-lightbox-image {
  display: block;
  max-width: min(92vw, 1600px);
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.project-lightbox-close,
.project-lightbox-nav {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(7, 8, 11, 0.62);
  color: #ffffff;
  cursor: pointer;
}

.project-lightbox-close {
  top: 18px;
  right: 18px;
  font-size: 26px;
}

.project-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
}

.project-lightbox-prev {
  left: 18px;
}

.project-lightbox-next {
  right: 18px;
}

.project-lightbox-close:hover,
.project-lightbox-nav:hover,
.project-lightbox-close:focus-visible,
.project-lightbox-nav:focus-visible {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.project-testimonial-section {
  padding: 96px 0;
  text-align: center;
}

.project-testimonial-section blockquote {
  max-width: 880px;
  margin: 0 auto 24px;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--text-pure);
}

.project-testimonial-section p {
  color: var(--text-muted);
}

.related-projects-section {
  background: transparent;
}

.project-detail-cta {
  padding-top: 40px;
}

/* ==========================================================================
   PRIVACY NOTE (Careers page)
   ========================================================================== */
.privacy-note {
  text-align: center;
  padding: 20px 0 0;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

.privacy-note a {
  color: var(--brand-orange);
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE: Content Pages
   ========================================================================== */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-card-img {
    min-height: 260px;
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hiring-journey {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .hiring-step:not(:last-child)::after {
    content: none;
  }
  .content-cta-card {
    grid-template-columns: 1fr;
    padding: 48px 36px;
  }
  .content-cta-actions {
    justify-self: start;
  }
  .project-detail-heading {
    grid-template-columns: 1fr;
  }
  .project-detail-tags {
    justify-content: flex-start;
    max-width: none;
  }
  .project-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-story-grid {
    gap: 48px 36px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 32px 0 40px;
  }
  .page-hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }
  .projects-page-hero {
    padding-bottom: 44px;
  }
  .projects-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .projects-hero-copy {
    max-width: 620px;
    justify-self: start;
    padding-top: 18px;
  }
  .filter-bar {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 12.5px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .content-card h3 {
    font-size: 16px;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .hiring-process-section {
    padding: 56px 0 72px;
  }
  .hiring-process-header {
    margin-bottom: 32px;
  }
  .hiring-journey {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 560px;
    margin: 0 auto;
  }
  .hiring-step {
    min-height: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
  }
  .hiring-step:not(:last-child)::after {
    content: '';
    top: 70px;
    bottom: -15px;
    left: 45px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--border-orange), var(--border-cyan));
    opacity: 0.65;
  }
  .hiring-step-copy h3 {
    margin: 2px 0 8px;
    font-size: 17px;
  }
  .content-cta-card {
    padding: 36px 24px;
  }
  .content-cta-content h2 {
    font-size: clamp(22px, 5vw, 30px);
  }
  .client-strip-grid img {
    height: 24px;
  }
  .client-strip-grid {
    gap: 20px 24px;
  }
  .project-detail-hero {
    padding: 32px 0 40px;
  }
  .project-detail-heading {
    margin: 24px 0 30px;
  }
  .project-detail-hero-image {
    border-radius: 18px;
  }
  .project-facts-grid,
  .project-results-grid,
  .project-story-grid,
  .project-story-grid aside ul {
    grid-template-columns: 1fr;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card-featured {
    grid-column: auto;
  }
  .project-card-featured .content-card-img {
    aspect-ratio: 16 / 10;
  }
  .project-facts-grid > div,
  .project-fact-wide {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border-glass-bright);
  }
  .project-facts-grid > div:last-child {
    border-bottom: 0;
  }
  .project-gallery {
    columns: 2;
    column-gap: 10px;
  }
  .project-gallery-item {
    margin-bottom: 10px;
  }
  .project-gallery-section .project-section-heading {
    display: block;
  }
  .project-gallery-section .project-section-heading h2 {
    margin-top: 16px;
  }
  .project-lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .project-story-section,
  .project-gallery-section,
  .related-projects-section,
  .project-testimonial-section {
    padding: 64px 0;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .project-gallery {
    columns: 3;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 32px 0 32px;
  }
  .filter-bar {
    gap: 6px;
  }
  .filter-btn {
    padding: 7px 14px;
    font-size: 12px;
  }
  .project-gallery {
    columns: 1;
  }
  .project-lightbox {
    padding: 12px;
  }
  .project-lightbox-image {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 84px);
  }
  .empty-state {
    padding: 60px 20px;
  }
  .hiring-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 18px;
  }
  .hiring-step-number {
    width: 44px;
    height: 44px;
  }
  .hiring-step:not(:last-child)::after {
    top: 65px;
    left: 39px;
  }
  .content-cta-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
}

/* ==========================================================================
   ACCESSIBILITY: Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .client-strip-grid.is-carousel {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }

  .client-strip-grid.is-carousel::-webkit-scrollbar {
    display: none;
  }

  .client-strip-track {
    animation: none;
  }

  .client-strip-group[aria-hidden='true'] {
    display: none;
  }

  .content-card,
  .value-card,
  .featured-card,
  .filter-btn,
  .hiring-step,
  .project-gallery-item img {
    transition-duration: 0.01ms !important;
  }
  .content-card:hover,
  .value-card:hover,
  .hiring-step:hover,
  .project-gallery-trigger:hover img {
    transform: none;
  }
}
