/* MarNet — Agency landing (inspired layout, brand colors) */

:root {
  --bg: #0A1628;
  --bg-deep: #071020;
  --primary: #1A6FD4;
  --accent: #00B4D8;
  --cta: #1D9E75;
  --cta-hover: #22b88a;
  --text: #F8FAFC;
  --muted: #8BB4D4;
  --secondary: #B8D4EB;
  --line: rgba(255, 255, 255, 0.06);
  --font: 'Cairo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  direction: rtl;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 111, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 216, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 111, 212, 0.12) 0%, transparent 70%);
  top: -180px;
  left: -120px;
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 7s ease-in-out infinite;
}

.bg-glow-2 {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 9s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}

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

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 32, 0.88);
  backdrop-filter: blur(16px);
}

.site-nav.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.brand-logo img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 16px;
  right: 16px;
  z-index: 99;
  padding: 20px;
  background: rgba(7, 16, 32, 0.98);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  padding: 12px;
  text-align: center;
  color: var(--secondary);
  border-radius: 8px;
}

.mobile-nav a:hover { background: rgba(26, 111, 212, 0.1); color: var(--text); }

@media (min-width: 768px) {
  .nav-links, .nav-actions { display: flex; }
  .menu-btn { display: none; }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--cta);
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}

.btn-link:hover { color: var(--text); }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 100px clamp(20px, 5vw, 48px) 48px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.eyebrow-text {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 16ch;
}

.hero-title .outline {
  -webkit-text-stroke: 1px rgba(248, 250, 252, 0.85);
  color: transparent;
}

.hero-title .hl { color: var(--accent); }

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Text ticker */
.ticker-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  background: rgba(26, 111, 212, 0.04);
}

.ticker-band-inner {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker-scroll 22s linear infinite;
}

.ticker-band:hover .ticker-band-inner { animation-play-state: paused; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticker-sep { color: var(--accent); font-size: 1.1rem; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-cell {
  padding: clamp(28px, 5vw, 44px);
  border-left: 1px solid var(--line);
  text-align: center;
}

.stat-cell:first-child { border-left: none; }

.stat-num {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

.stat-num .unit { color: var(--accent); font-size: 0.65em; }

.stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Section common */
.section {
  padding: clamp(64px, 10vw, 100px) clamp(20px, 5vw, 48px);
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.hero,
.ticker-band,
.site-nav,
.site-footer {
  content-visibility: visible;
}

/* Scroll reveal — fast & professional */
.marnet-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.marnet-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.marnet-reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.marnet-reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.marnet-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.03s; }
.marnet-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.marnet-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.09s; }
.marnet-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.12s; }
.marnet-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.15s; }
.marnet-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.18s; }
.marnet-reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: 0.21s; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.section-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 28rem;
  line-height: 1.8;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}

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

.service-card {
  background: var(--bg-deep);
  padding: clamp(28px, 5vw, 44px);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.service-card:hover {
  background: rgba(26, 111, 212, 0.06);
}

.service-card:hover::after { transform: scaleX(1); }

.service-num {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.service-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}

.btn-service-request {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(0, 180, 216, 0.35);
  padding: 10px 16px;
  background: rgba(0, 180, 216, 0.06);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-service-request:hover {
  background: rgba(26, 111, 212, 0.15);
  border-color: var(--accent);
  color: var(--text);
}

.service-card:hover .btn-service-request {
  border-color: var(--accent);
}

/* Featured works (home) */
.section-featured {
  background: var(--bg);
}

.featured-grid {
  display: grid;
  gap: 20px;
}

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

.featured-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.featured-card:hover {
  border-color: rgba(0, 180, 216, 0.35);
  transform: translateY(-4px);
}

.featured-card-img {
  display: block;
  height: 180px;
  overflow: hidden;
  background: var(--bg);
}

.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-card-img img {
  transform: scale(1.04);
}

.featured-card-body {
  padding: clamp(20px, 3vw, 26px);
}

.featured-card-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.featured-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.featured-card h3 a {
  color: var(--text);
  transition: color 0.2s;
}

.featured-card h3 a:hover {
  color: var(--accent);
}

.featured-card-body > p.featured-card-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
}

/* Why grid */
.why-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}

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

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

.why-card {
  background: var(--bg-deep);
  padding: 28px;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Logo ticker section */
.tech-section {
  padding: clamp(48px, 8vw, 72px) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  max-width: 100%;
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}

.tech-section-head {
  padding: 0 clamp(20px, 5vw, 48px);
  margin-bottom: 24px;
}

.tech-section.marnet-reveal.is-visible .logo-ticker-track {
  animation-play-state: running;
}

.tech-section .section-tag,
.tech-section .section-title-mini {
  padding: 0;
}

.section-title-mini {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 0;
}

.logo-ticker-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  direction: ltr;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.logo-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: logo-ticker-scroll 42s linear infinite;
  animation-play-state: paused;
}

.logo-ticker-track.is-running {
  animation-play-state: running;
}

.logo-ticker-wrap:hover .logo-ticker-track.is-running {
  animation-play-state: paused;
}

@keyframes logo-ticker-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.logo-ticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 16px 28px;
  opacity: 0.75;
}

.logo-ticker-item img {
  height: 32px;
  width: 36px;
  object-fit: contain;
  display: block;
}

@media (max-width: 767px) {
  .logo-ticker-item {
    padding: 14px 22px;
  }

  .logo-ticker-item img {
    height: 28px;
    width: 32px;
  }

  .logo-ticker-track.is-running {
    animation-duration: 34s;
  }
}

/* CTA block */
.cta-block {
  margin: 0 clamp(20px, 5vw, 48px) clamp(48px, 8vw, 72px);
  padding: clamp(40px, 8vw, 72px);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 180px;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 111, 212, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

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

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-title .hl { color: var(--accent); }

.cta-note {
  font-size: 0.8125rem;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

/* Footer */
.site-footer {
  padding: 28px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cta);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cta);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.wa-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(29, 158, 117, 0.45);
  transition: transform 0.2s;
}

.wa-fab:hover { transform: scale(1.08); }

.wa-fab svg { width: 28px; height: 28px; }

/* Works page */
.page-hero {
  padding: 100px clamp(20px, 5vw, 48px) 40px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-hero .hero-eyebrow {
  justify-content: center;
}

.page-hero .hero-title {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.page-hero .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.page-hero .counter-inline {
  margin-left: auto;
  margin-right: auto;
}

.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 40;
  padding: 16px clamp(20px, 5vw, 48px);
  background: rgba(7, 16, 32, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.2s;
}

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

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.works-list {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .works-list { grid-template-columns: repeat(2, 1fr); }
}

.work-item {
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, opacity 0.3s;
  display: flex;
  flex-direction: column;
}

.work-item.hidden { display: none; }

.work-item-img {
  height: 180px;
  overflow: hidden;
  background: var(--bg-deep);
  flex-shrink: 0;
}

.work-item-img a {
  display: block;
  height: 100%;
}

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

.work-item-body {
  padding: clamp(22px, 4vw, 28px);
  flex: 1;
  display: block;
  position: relative;
  z-index: 1;
}

.works-list--archive {
  grid-template-columns: 1fr;
  max-width: 960px;
}

.works-list--archive .work-item {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .works-list--archive .work-item {
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: stretch;
  }

  .works-list--archive .work-item-img {
    height: auto;
    min-height: 200px;
  }

  .works-list--archive .work-item-img,
  .works-list--archive .work-item-img a,
  .works-list--archive .work-item-img img {
    height: 100%;
    min-height: 200px;
  }
}

.work-item-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.work-item h2,
.work-item h3,
.work-item-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.work-item h2 a,
.work-item h3 a,
.work-item-title a {
  color: var(--text) !important;
  transition: color 0.2s;
}

.work-item h2 a:hover,
.work-item h3 a:hover,
.work-item-title a:hover {
  color: var(--accent) !important;
}

.work-item .story,
.work-item-excerpt {
  font-size: 0.9375rem;
  color: var(--muted) !important;
  line-height: 1.8;
  display: block;
  margin: 0;
}

.counter-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 24px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  background: rgba(15, 35, 66, 0.5);
}

.counter-inline .stat-num { margin: 0; font-size: 2.5rem; }

/* Service request modal */
.request-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.request-modal.open {
  opacity: 1;
  visibility: visible;
}

.request-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 22, 0.82);
  backdrop-filter: blur(6px);
}

.request-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 180, 216, 0.45) transparent;
  background: var(--bg);
  border: 1px solid rgba(0, 180, 216, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  padding: clamp(24px, 5vw, 36px);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.request-modal-dialog::-webkit-scrollbar {
  width: 5px;
}

.request-modal-dialog::-webkit-scrollbar-track {
  background: transparent;
}

.request-modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(0, 180, 216, 0.35);
  border-radius: 100px;
}

.request-modal-dialog::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 180, 216, 0.55);
}

.request-modal-dialog::-webkit-scrollbar-button,
.request-modal-dialog::-webkit-scrollbar-corner {
  display: none;
  width: 0;
  height: 0;
}

.request-modal.open .request-modal-dialog {
  transform: translateY(0) scale(1);
}

.request-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}

.request-modal-close:hover {
  border-color: var(--accent);
  color: var(--text);
}

.request-modal-head {
  margin-bottom: 24px;
  padding-left: 44px;
}

.request-modal-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.request-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.request-modal-sub {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.form-field label span {
  color: var(--accent);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.2);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238BB4D4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.65;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: #e85d5d;
}

.form-error {
  font-size: 0.75rem;
  color: #f0a0a0;
  margin-top: 6px;
  display: none;
}

.form-field.invalid .form-error {
  display: block;
}

.btn-request-submit {
  width: 100%;
  padding: 16px 24px;
  margin-top: 4px;
}

body.modal-open {
  overflow: hidden;
}

.btn-nav-outline {
  padding: 12px 18px;
  font-size: 0.8125rem;
}

/* WordPress extras */
.brand-logo .custom-logo-link,
.site-footer .brand-logo .custom-logo-link {
  display: block;
  line-height: 0;
}

.brand-logo .custom-logo,
.brand-logo img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.site-footer .brand-logo .custom-logo,
.site-footer .brand-logo img {
  height: 40px;
}

.blog-grid {
  display: grid;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.blog-card:hover {
  border-color: rgba(0, 180, 216, 0.35);
  transform: translateY(-4px);
}

.blog-card-img {
  display: block;
  height: 180px;
  overflow: hidden;
  background: var(--bg-deep);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: clamp(20px, 3vw, 26px);
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.blog-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card h2 a {
  color: var(--text);
  transition: color 0.2s;
}

.blog-card h2 a:hover {
  color: var(--accent);
}

.single-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px clamp(20px, 5vw, 48px) 64px;
}

.single-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.single-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.single-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--secondary);
}

.single-content p { margin-bottom: 1.25rem; }

.single-content a {
  color: var(--accent);
  text-decoration: underline;
}

.single-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.single-project .single-meta {
  display: none;
}

.single-thumb {
  margin-bottom: 28px;
  border: 1px solid var(--line);
}

.single-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination-wrap a,
.pagination-wrap span {
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--secondary);
}

.pagination-wrap .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-band-inner,
  .logo-ticker-track,
  .bg-glow,
  .bg-glow-2,
  .status-dot { animation: none; }
  .marnet-reveal,
  .marnet-reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .request-modal-dialog { transition: none; }
}
