/*--------------------------------------------------------------
# /projects - standalone projects showcase
# Same palette and type as the portfolio (style_1.0.css):
# blue #0563bb, headings #45505b, body #272829, Raleway / Open Sans / Poppins.
# Each card sets --p-accent to the project's own colour.
--------------------------------------------------------------*/
:root {
  --sc-blue: #0563bb;
  --sc-blue-2: #0678e3;
  --sc-text: #272829;
  --sc-head: #45505b;
  --sc-muted: #728394;
  --sc-soft: #f7f8f9;
  --sc-soft-2: #f2f3f5;
  --sc-line: #e6e9ec;
  --sc-radius: 18px;
  --sc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --p-accent: var(--sc-blue);
}

html { scroll-behavior: smooth; }

.sc-body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--sc-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.sc-body h1, .sc-body h2, .sc-body h3, .sc-body h4 {
  font-family: "Raleway", sans-serif;
  color: var(--sc-head);
  margin: 0;
}

.sc-body a { color: var(--sc-blue); text-decoration: none; }
.sc-body a:hover { color: var(--sc-blue-2); }
.sc-body button { font-family: inherit; }
.sc-body img { max-width: 100%; }

.sc-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .sc-container { padding-inline: 32px; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.sc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.sc-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--sc-line);
  box-shadow: 0 6px 24px rgba(69, 80, 91, 0.06);
}

.sc-header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sc-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--sc-head) !important;
}

.sc-brand-path {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--sc-blue);
  background: rgba(5, 99, 187, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.sc-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 50px;
  border: 1px solid var(--sc-line);
  background: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-head) !important;
  white-space: nowrap;
  transition: 0.3s;
}

.sc-portfolio-link:hover {
  border-color: var(--sc-blue);
  color: var(--sc-blue) !important;
  background: rgba(5, 99, 187, 0.05);
}

.sc-lang {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50px;
  background: var(--sc-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.3s;
}

.sc-lang:hover { background: var(--sc-blue-2); }

@media (max-width: 480px) {
  .sc-brand-path { display: none; }
  .sc-portfolio-link { padding: 0 12px; }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.sc-hero {
  position: relative;
  padding: 72px 0 36px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .sc-hero { padding: 96px 0 44px; }
}

.sc-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(900px 420px at 12% -10%, rgba(5, 99, 187, 0.14), transparent 60%),
    radial-gradient(600px 360px at 92% 8%, rgba(224, 180, 76, 0.16), transparent 60%),
    linear-gradient(var(--sc-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sc-line) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 96%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 96%);
}

html[dir="rtl"] .sc-hero-bg {
  background-image:
    radial-gradient(900px 420px at 88% -10%, rgba(5, 99, 187, 0.14), transparent 60%),
    radial-gradient(600px 360px at 8% 8%, rgba(224, 180, 76, 0.16), transparent 60%),
    linear-gradient(var(--sc-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sc-line) 1px, transparent 1px);
}

.sc-hero .sc-container { position: relative; }

.sc-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sc-muted);
  margin: 0 0 18px;
}

html[dir="rtl"] .sc-eyebrow { letter-spacing: 0; font-size: 14px; }

.sc-slash { color: var(--sc-blue); font-family: "SFMono-Regular", Menlo, Consolas, monospace; }

.sc-eyebrow-range {
  padding-inline-start: 10px;
  border-inline-start: 1px solid var(--sc-line);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.sc-headline {
  font-size: clamp(38px, 6.5vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin: 0 0 20px;
}

.sc-headline .accent { color: var(--sc-blue); }

html[dir="rtl"] .sc-headline { letter-spacing: 0; line-height: 1.3; max-width: 20ch; }

.sc-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--sc-muted);
  max-width: 62ch;
  margin: 0 0 32px;
}

.sc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  margin: 0 0 34px;
  padding: 0;
}

.sc-stats > div { display: flex; flex-direction: column; gap: 2px; }

.sc-stats dt {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  color: var(--sc-blue);
}

.sc-stats dd {
  margin: 0;
  font-size: 13px;
  color: var(--sc-muted);
}

.sc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 50px;
  border: 1px solid var(--sc-line);
  background: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-head);
  cursor: pointer;
  transition: 0.25s;
}

.sc-filter:hover { border-color: var(--sc-blue); color: var(--sc-blue); }

.sc-filter[aria-pressed="true"] {
  background: var(--sc-blue);
  border-color: var(--sc-blue);
  color: #fff;
}

.sc-filter-count {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 50px;
  background: var(--sc-soft-2);
  color: var(--sc-muted);
}

.sc-filter[aria-pressed="true"] .sc-filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
.sc-section { padding: 40px 0; }

.sc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.sc-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 28px;
}

.sc-section-head .sc-section-title { margin-bottom: 0; }

.sc-showing { margin: 0; font-size: 13px; color: var(--sc-muted); }

/*--------------------------------------------------------------
# Shared bits: index, badges, chips, buttons
--------------------------------------------------------------*/
.sc-index {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--p-accent);
}

.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--sc-soft-2);
  color: var(--sc-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.sc-badge-live { background: rgba(24, 210, 110, 0.14); color: #128a4a; }

.sc-badge-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #18d26e;
  animation: sc-pulse 1.8s ease-in-out infinite;
}

@keyframes sc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 210, 110, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(24, 210, 110, 0); }
}

.sc-year { font-size: 12px; color: var(--sc-muted); font-family: "Poppins", sans-serif; }

.sc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sc-chip {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--sc-soft-2);
  color: var(--sc-head);
  font-size: 12px;
  font-weight: 600;
}

.sc-chip-more { background: transparent; border: 1px dashed var(--sc-line); color: var(--sc-muted); }

.sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 50px;
  border: 1px solid var(--sc-line);
  background: #fff;
  color: var(--sc-head) !important;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.sc-btn:hover { border-color: var(--sc-blue); color: var(--sc-blue) !important; transform: translateY(-1px); }

.sc-btn-primary {
  background: var(--sc-blue);
  border-color: var(--sc-blue);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(5, 99, 187, 0.25);
}

.sc-btn-primary:hover { background: var(--sc-blue-2); border-color: var(--sc-blue-2); color: #fff !important; }

.sc-btn .bi { font-size: 15px; line-height: 0; }

.sc-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 50px;
  background: var(--sc-soft-2);
  color: var(--sc-muted);
}

/*--------------------------------------------------------------
# Browser frame
--------------------------------------------------------------*/
.bf {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--sc-line);
  box-shadow: 0 20px 50px rgba(69, 80, 91, 0.16), 0 2px 6px rgba(69, 80, 91, 0.06);
  overflow: hidden;
  transition: transform 0.6s var(--sc-ease), box-shadow 0.6s var(--sc-ease);
}

.bf-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  background: var(--sc-soft);
  border-bottom: 1px solid var(--sc-line);
}

.bf-dots { display: inline-flex; gap: 5px; }

.bf-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #e2e6ea;
}

.bf-dots i:nth-child(1) { background: #ff5f57; }
.bf-dots i:nth-child(2) { background: #febc2e; }
.bf-dots i:nth-child(3) { background: #28c840; }

.bf-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 260px;
  height: 22px;
  padding: 0 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--sc-line);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--sc-muted);
  overflow: hidden;
  white-space: nowrap;
}

.bf-url .bi { font-size: 10px; color: #128a4a; }

.bf-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--sc-soft-2);
  overflow: hidden;
}

.bf-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.bf-img.is-tall { transition: object-position 5s ease-in-out; }

.bf:hover .bf-img.is-tall,
.tile:hover .bf-img.is-tall,
.spot-visual:hover .bf-img.is-tall { object-position: bottom; }

/*--------------------------------------------------------------
# Phone frame
--------------------------------------------------------------*/
.pf {
  position: relative;
  aspect-ratio: 640 / 1385;
  border-radius: 30px;
  background: #0f172a;
  border: 6px solid #1e293b;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pf-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 16px;
  border-radius: 10px;
  background: #0f172a;
  z-index: 2;
}

.pf-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
}

/*--------------------------------------------------------------
# Generated poster (projects without a screenshot yet)
--------------------------------------------------------------*/
.poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8% 8% 0;
  background:
    radial-gradient(70% 90% at 20% 0%, color-mix(in srgb, var(--p-accent) 32%, #fff), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--p-accent) 14%, #fff), #fff 70%);
  overflow: hidden;
}

.poster-window {
  display: grid;
  grid-template-columns: 22% 1fr;
  width: 100%;
  height: 100%;
  border-radius: 12px 12px 0 0;
  background: #fff;
  border: 1px solid var(--sc-line);
  border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(69, 80, 91, 0.1);
  overflow: hidden;
}

.poster-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 10px;
  background: var(--sc-soft);
  border-inline-end: 1px solid var(--sc-line);
}

.poster-dot { display: block; height: 8px; border-radius: 4px; background: var(--sc-line); }
.poster-dot.is-active { background: var(--p-accent); }

.poster-main { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }

.poster-bar { height: 10px; width: 45%; border-radius: 5px; background: var(--sc-soft-2); }

.poster-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--p-accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--p-accent) 22%, #fff);
}

.poster-icon { font-size: 28px; line-height: 1; }

.poster-title { font-family: "Raleway", sans-serif; font-weight: 800; font-size: 18px; color: var(--sc-head); }

.poster-domain { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 11px; color: var(--p-accent); }

.poster-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.poster-cards span { height: 38px; border-radius: 8px; background: var(--sc-soft-2); }

/*--------------------------------------------------------------
# Spotlight cards
--------------------------------------------------------------*/
.sc-spotlights { display: flex; flex-direction: column; gap: 56px; }

.spot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--sc-line);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--p-accent) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.spot.is-flipped::before {
  background: radial-gradient(60% 80% at 0% 0%, color-mix(in srgb, var(--p-accent) 12%, transparent), transparent 70%);
}

@media (min-width: 992px) {
  .spot { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; padding: 40px; }
  .spot.is-flipped .spot-copy { order: 2; }
  .spot.is-flipped .spot-visual { order: 1; }
}

.spot-copy { position: relative; display: flex; flex-direction: column; gap: 16px; }

.spot-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.spot-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }

html[dir="rtl"] .spot-title { letter-spacing: 0; line-height: 1.35; }

.spot-tagline { margin: 0; font-size: 17px; font-weight: 600; color: var(--sc-head); line-height: 1.55; }

.spot-desc { margin: 0; font-size: 15px; line-height: 1.75; color: #6c757d; }

.spot-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spot-highlights li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sc-text);
}

.spot-highlights .bi {
  flex: none;
  margin-top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: color-mix(in srgb, var(--p-accent) 18%, #fff);
  color: color-mix(in srgb, var(--p-accent) 70%, #000);
}

.spot-visual {
  position: relative;
  padding: 12px 0 40px;
}

@media (min-width: 992px) {
  .spot-visual { padding: 24px 0 48px; }
}

.spot-glow {
  position: absolute;
  inset: 10% 5% 20%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--p-accent) 35%, transparent);
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
}

.spot-desktop {
  position: relative;
  display: block;
  width: 88%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: start;
}

.spot-desktop:hover .bf { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(69, 80, 91, 0.22); }

.spot-phone {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 27%;
  max-width: 190px;
  z-index: 2;
  transform: rotate(-3deg);
  transition: transform 0.6s var(--sc-ease);
}

html[dir="rtl"] .spot-phone { transform: rotate(3deg); }

.spot-visual:hover .spot-phone { transform: rotate(0deg) translateY(-6px); }

@media (max-width: 575px) {
  .spot { padding: 20px; }
  .spot-desktop { width: 100%; }
  .spot-phone { width: 30%; inset-inline-end: -6px; bottom: 8px; }
}

/*--------------------------------------------------------------
# Grid tiles
--------------------------------------------------------------*/
.sc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) { .sc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sc-grid { grid-template-columns: repeat(3, 1fr); } }

.tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--sc-radius);
  background: #fff;
  border: 1px solid var(--sc-line);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.4s var(--sc-ease), box-shadow 0.4s var(--sc-ease), border-color 0.3s;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--p-accent) 22%, rgba(5, 99, 187, 0.12));
  border-color: color-mix(in srgb, var(--p-accent) 40%, var(--sc-line));
}

.tile[hidden] { display: none; }

.tile-preview {
  padding: 18px 18px 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--p-accent) 14%, #fff), color-mix(in srgb, var(--p-accent) 4%, #fff));
}

.tile-frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: start;
}

.tile-frame .bf {
  border-radius: 12px 12px 0 0;
  border-bottom: 0;
  box-shadow: 0 -6px 30px rgba(69, 80, 91, 0.08);
}

.tile-frame .bf-screen { aspect-ratio: 16 / 9.5; }

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 22px;
  flex: 1;
}

.tile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.tile-cat {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sc-muted);
}

html[dir="rtl"] .tile-cat { letter-spacing: 0; font-size: 12px; }

.tile-title { font-size: 21px; font-weight: 700; }
.tile-title a { color: var(--sc-head); transition: 0.3s; }
.tile-title a:hover { color: var(--sc-blue); }

.tile-desc { margin: 0; font-size: 14px; line-height: 1.7; color: #6c757d; flex: 1; }

.tile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 6px;
  border-top: 1px solid var(--sc-line);
  margin-top: 4px;
}

.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-muted);
  cursor: pointer;
  transition: 0.3s;
}

.tile-link:hover { color: var(--sc-blue); }
.tile-link-primary { color: var(--sc-blue); }
.tile-link-primary:hover { letter-spacing: 0.3px; color: var(--sc-blue-2); }
html[dir="rtl"] .tile-link-primary:hover { letter-spacing: 0; }

.sc-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--sc-muted);
}

/*--------------------------------------------------------------
# CTA + footer
--------------------------------------------------------------*/
.sc-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0563bb, #0a4a8c 60%, #45505b);
  color: #fff;
  box-shadow: 0 20px 50px rgba(5, 99, 187, 0.25);
}

.sc-cta-card h2 { color: #fff; font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.sc-cta-card p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 15px; }

.sc-cta-card .sc-btn { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); color: #fff !important; }
.sc-cta-card .sc-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }
.sc-cta-card .sc-btn-primary { background: #fff; border-color: #fff; color: var(--sc-blue) !important; box-shadow: none; }
.sc-cta-card .sc-btn-primary:hover { background: #f2f7ff; }

.sc-footer {
  margin-top: 40px;
  padding: 36px 0;
  background: var(--sc-soft);
  color: var(--sc-head);
  font-size: 14px;
  text-align: center;
}

.sc-footer .social-links { margin: 0 0 18px; }

.sc-footer .social-links a {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  margin: 0 2px;
  border-radius: 50%;
  background: var(--sc-blue);
  color: #fff;
  transition: 0.3s;
}

.sc-footer .social-links a:hover { background: var(--sc-blue-2); color: #fff; }

.sc-footer p { margin: 0 0 6px; }
.sc-footer .credits { font-size: 13px; color: var(--sc-muted); }

/*--------------------------------------------------------------
# Reveal on scroll
--------------------------------------------------------------*/
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--sc-ease), transform 0.7s var(--sc-ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.tile.reveal { transition: opacity 0.7s var(--sc-ease), transform 0.7s var(--sc-ease), box-shadow 0.4s var(--sc-ease), border-color 0.3s; }
.tile.reveal.visible:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bf-img.is-tall { transition: none; }
  .sc-badge-live i { animation: none; }
  .spot-phone { transition: none; }
}

/*--------------------------------------------------------------
# Lightbox tweaks
--------------------------------------------------------------*/
.glightbox-clean .gslide-description { background: #fff; }
.glightbox-clean .gslide-desc { font-family: "Open Sans", sans-serif; color: var(--sc-head); font-size: 14px; }
.glightbox-clean .gslide-title { font-family: "Raleway", sans-serif; color: var(--sc-head); font-weight: 700; }
html[dir="rtl"] .glightbox-clean .gslide-desc,
html[dir="rtl"] .glightbox-clean .gslide-title { font-family: "Tajawal", sans-serif; direction: rtl; text-align: right; }

/*--------------------------------------------------------------
# Arabic
--------------------------------------------------------------*/
html[dir="rtl"] .sc-body,
html[dir="rtl"] .sc-body h1,
html[dir="rtl"] .sc-body h2,
html[dir="rtl"] .sc-body h3,
html[dir="rtl"] .sc-body h4,
html[dir="rtl"] .sc-brand,
html[dir="rtl"] .sc-btn,
html[dir="rtl"] .sc-filter,
html[dir="rtl"] .sc-portfolio-link,
html[dir="rtl"] .tile-link,
html[dir="rtl"] .tile-cat,
html[dir="rtl"] .sc-stats dt,
html[dir="rtl"] .sc-year,
html[dir="rtl"] .poster-title { font-family: "Tajawal", "Open Sans", sans-serif; }

html[dir="rtl"] .sc-lead { font-size: 19px; }
html[dir="rtl"] .spot-desc, html[dir="rtl"] .tile-desc { font-size: 15px; }

/*--------------------------------------------------------------
# Phone preview tiles (projects with phone screens only)
--------------------------------------------------------------*/
.tile-preview.is-phone { padding: 0; }

.tile-frame-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  aspect-ratio: 16 / 9.5;
  margin: 18px 18px 0;
  padding-top: 14px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.tile-phone-glow {
  position: absolute;
  inset: 20% 15% -10%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--p-accent) 32%, transparent);
  filter: blur(34px);
  pointer-events: none;
}

.tile-frame-phone .pf {
  position: relative;
  width: 46%;
  border-radius: 30px 30px 0 0;
  border-bottom: 0;
  transition: transform 0.6s var(--sc-ease);
}

.tile-frame-phone .pf-img { border-radius: 22px 22px 0 0; }

.tile:hover .tile-frame-phone .pf { transform: translateY(-8px); }

/* Device badge */
.sc-badge-device { gap: 5px; }
.sc-badge-device .bi { font-size: 12px; color: var(--sc-muted); line-height: 0; }
