/* ===== Asetral — Design tokens ===== */
:root {
  /* Primary / background */
  --bg-dark: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-elevated: #16213e;
  /* Accent */
  --accent-cyan: #00d9ff;
  --accent-teal: #0ea5e9;
  --accent-purple: #a78bfa;
  --accent-pink: #f973c7;
  --accent-glow: rgba(0, 217, 255, 0.35);
  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  /* Borders & UI */
  --border-subtle: rgba(148, 163, 184, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  /* Spacing */
  --section-padding: clamp(3rem, 6vw, 5rem);
  --container-max: 1100px;
  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.35s;
  --duration-slow: 0.45s;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageLoadIn 0.5s var(--ease) forwards; }
}
@keyframes pageLoadIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='none' stroke='%238b9dc0' stroke-width='1.1' opacity='0.45'%3E%3Cpath d='M24 34 L20 42 L24 50' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M56 34 L60 42 L56 50' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M88 30 L96 42 L88 54' stroke-linecap='round'/%3E%3Cpath d='M120 26 L120 50 M112 38 L128 38'/%3E%3Crect x='138' y='22' width='44' height='30' rx='2'/%3E%3Cpath d='M138 37 h44 M160 22 v30'/%3E%3Cpath d='M204 26 L194 38 L204 50 M218 26 L228 38 L218 50' stroke-linecap='round'/%3E%3Cpath d='M254 34 L270 42 L254 50' stroke-linecap='round'/%3E%3Cpath d='M32 86 L48 110 L40 94 L52 98 Z'/%3E%3Cpath d='M72 86 v28 M84 74 v40 M96 82 v32 M68 128 h44'/%3E%3Cpath d='M148 76 L168 88 L156 108 L140 96 L126 108 L134 90 Z'/%3E%3Ccircle cx='242' cy='94' r='10' stroke-dasharray='3 2'/%3E%3Cpath d='M242 84 v6 M242 104 v6 M232 94 h6 M252 94 h6'/%3E%3Cpath d='M36 162 L58 162 M47 152 L47 172'/%3E%3Ccircle cx='96' cy='162' r='6'/%3E%3Ccircle cx='96' cy='144' r='3'/%3E%3Ccircle cx='96' cy='180' r='3'/%3E%3Cpath d='M88 156 L76 162 L88 168 M104 156 L116 162 L104 168'/%3E%3Cpath d='M136 150 h30 v6 h-12 v20 h-4 v-20 h-14 z'/%3E%3Cpath d='M192 150 h6 l10 26 h6 l-11-26 h6'/%3E%3Crect x='244' y='148' width='34' height='30' rx='2'/%3E%3Cpath d='M244 163 h34 M261 148 v30'/%3E%3Cpath d='M30 224 L42 236 L30 248 L18 236 Z'/%3E%3Cpath d='M126 220 L138 232 L126 244 L114 232 Z'/%3E%3Cpath d='M222 216 L234 228 L222 240 L210 228 Z'/%3E%3Cpath d='M54 268 L88 268 M71 252 L71 284'/%3E%3Cpath d='M150 260 L182 272 L150 284 Z'/%3E%3Cpath d='M244 260 h36 v6 h-14 v14 h-6 v-14 h-16 z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  /* Softer vignette and grid so section boundaries don’t look cut off */
  background: transparent;
  pointer-events: none;
  z-index: 0;
}
a { color: var(--accent-cyan); text-decoration: none; transition: color var(--duration-slow) var(--ease-smooth), transform var(--duration) var(--ease); }
a:hover { color: var(--accent-teal); }
a:active { transform: scale(0.98); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.25rem);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  transition: transform var(--duration) var(--ease), color var(--duration) var(--ease);
}
.logo:hover {
  color: var(--accent-cyan);
  transform: translateY(-2px);
}
.logo:hover .logo-mark {
  box-shadow: 0 0 28px rgba(0, 217, 255, 0.7);
  transform: scale(1.05);
}
.logo:hover .logo-text {
  letter-spacing: 0.06em;
}
.logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, var(--accent-cyan), var(--accent-teal));
  color: var(--bg-dark);
  box-shadow: 0 0 22px rgba(0, 217, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.logo-text {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  transition: letter-spacing var(--duration) var(--ease);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease);
}
.menu-toggle:hover { background: var(--bg-card); }
.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.nav-list a:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-list a:active { transform: scale(0.98); }

.nav-secondary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}
.nav-secondary:hover { color: var(--accent-cyan); }

.nav-compact {
  line-height: 1.1;
  text-align: center;
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav.is-open { max-height: 320px; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav-secondary { margin-left: 0; padding-left: 0; border-left: none; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border-subtle); }
  .nav-list {
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-list a { padding: 0.75rem 1rem; width: 100%; text-align: center; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration-slow) var(--ease-smooth), background var(--duration-slow) var(--ease-smooth), color var(--duration-slow) var(--ease-smooth), border-color var(--duration-slow) var(--ease-smooth);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-glow); animation: focusPulse 1.5s var(--ease) infinite; }
@keyframes focusPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-glow); }
  50% { box-shadow: 0 0 0 5px rgba(0, 217, 255, 0.25); }
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-dark);
  box-shadow: 0 4px 24px rgba(0, 217, 255, 0.4), 0 0 40px rgba(167, 139, 250, 0.15);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(0, 217, 255, 0.5), 0 0 48px rgba(167, 139, 250, 0.2); }
.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
}
.btn-secondary:hover {
  background: rgba(0, 217, 255, 0.1);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-night-mountain-v2.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: heroBreathing 30s ease-in-out infinite alternate;
  }
}
@keyframes heroBreathing {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.25) 0%, transparent 40%, transparent 65%, rgba(3, 7, 18, 0.6) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  /* Soft extra glow behind hero content; actual image is set on .hero */
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(0, 217, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(167, 139, 250, 0.16), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero-shape,
.hero-dot { display: none; }
.hero .container {
  position: relative;
  z-index: 1;
  padding: clamp(0.5rem, 1.8vw, 1.1rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.75) 0%, rgba(3, 7, 18, 0.85) 100%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
  max-width: 56rem;
  width: 100%;
  margin-inline: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-kicker { animation: heroEntrance 0.65s var(--ease) 0.15s backwards; }
  .hero .hero-title { animation: heroEntrance 0.65s var(--ease) 0.25s backwards; }
  .hero .hero-tagline { animation: heroEntrance 0.65s var(--ease) 0.35s backwards; }
  .hero .btn { animation: heroEntrance 0.65s var(--ease) 0.45s backwards; }
  .hero .hero-meta { animation: heroEntrance 0.65s var(--ease) 0.55s backwards; }
}
@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFloatSlow {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(6px, -10px, 0); }
  100% { transform: translate3d(-4px, 6px, 0); }
}
@keyframes heroFloatMedium {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-8px, 10px, 0); }
  100% { transform: translate3d(4px, -6px, 0); }
}
@keyframes heroFloatTiny {
  0% { transform: translate3d(0, 0, 0); opacity: 0.7; }
  50% { transform: translate3d(3px, -4px, 0); opacity: 1; }
  100% { transform: translate3d(-2px, 3px, 0); opacity: 0.8; }
}

.hero-shape-1 { width: 220px; height: 220px; background: rgba(0, 217, 255, 0.28); top: 12%; left: 8%; animation: heroFloatSlow 26s ease-in-out infinite alternate; }
.hero-shape-2 { width: 180px; height: 180px; background: rgba(167, 139, 250, 0.24); top: 58%; right: 5%; animation: heroFloatMedium 32s ease-in-out infinite alternate; }
.hero-shape-3 { width: 140px; height: 140px; background: rgba(0, 217, 255, 0.2); bottom: 18%; left: 22%; animation: heroFloatSlow 30s ease-in-out infinite alternate-reverse; }
.hero-shape-4 { width: 110px; height: 110px; background: rgba(249, 115, 199, 0.18); top: 22%; right: 20%; animation: heroFloatMedium 28s ease-in-out infinite alternate-reverse; }
.hero-dot-1,
.hero-dot-2,
.hero-dot-3,
.hero-dot-4,
.hero-dot-5 {
  animation: heroFloatTiny 18s ease-in-out infinite alternate;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.hero-kicker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.3), rgba(168, 85, 247, 0.3));
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity var(--duration) var(--ease);
}
.hero-kicker:hover::before {
  opacity: 1;
}
.hero-kicker span {
  position: relative;
  z-index: 1;
}
.hero-kicker-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, var(--accent-cyan), var(--accent-teal));
  color: var(--bg-dark);
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(148, 163, 184, 0.5);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.hero-kicker:hover .hero-kicker-icon {
  transform: scale(1.08);
  box-shadow: 0 0 32px rgba(0, 217, 255, 0.8);
}
.hero-kicker-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  transition: letter-spacing var(--duration) var(--ease);
}
.hero-kicker:hover .hero-kicker-text {
  letter-spacing: 0.08em;
}
.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1.15rem;
  line-height: 1.22;
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(3, 7, 18, 0.8), 0 0 24px rgba(3, 7, 18, 0.5), 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hero-tagline {
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(3, 7, 18, 0.7), 0 0 20px rgba(3, 7, 18, 0.35);
}
.hero-meta {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.hero-meta-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: border-color var(--duration-slow) var(--ease-smooth), color var(--duration-slow) var(--ease-smooth);
}
.hero-meta-pill:hover {
  border-color: rgba(0, 217, 255, 0.5);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}
.hero .btn {
  margin-top: 0.5rem;
}

.page-shape { display: none; }

/* ===== Card icons & entrance animation ===== */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
  line-height: 1;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(167, 139, 250, 0.2));
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
}
.services-detail-card .card-icon {
  display: inline-flex;
}
.about-main-card .card-icon {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.stat-card .card-icon {
  display: block;
  margin: 0 auto 0.5rem;
}
.card-animate {
  animation: cardEnter 0.6s var(--ease) backwards;
}
.services-detail-grid .card-animate:nth-child(1) { animation-delay: 0.05s; }
.services-detail-grid .card-animate:nth-child(2) { animation-delay: 0.15s; }
.services-detail-grid .card-animate:nth-child(3) { animation-delay: 0.25s; }
.about-main-grid .card-animate:nth-child(1) { animation-delay: 0.05s; }
.about-main-grid .card-animate:nth-child(2) { animation-delay: 0.15s; }
.about-main-grid .card-animate:nth-child(3) { animation-delay: 0.25s; }
.stat-row .card-animate:nth-child(1) { animation-delay: 0.05s; }
.stat-row .card-animate:nth-child(2) { animation-delay: 0.15s; }
.stat-row .card-animate:nth-child(3) { animation-delay: 0.25s; }
@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-animate { animation: none; }
  .page-shape { animation: none; }
}

/* ===== Services & About pages ===== */
.services-intro-copy {
  max-width: 44rem;
  margin: 0.75rem auto 0;
  color: var(--text-secondary);
  text-align: center;
}
.services-block {
  position: relative;
  /* Let global background show through without its own bright overlay */
  overflow: visible;
}
.services-block .container {
  position: relative;
  z-index: 1;
}
.services-block::before {
  /* Remove services-specific glow banding */
  content: none;
}
.services-detail-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.services-detail-card {
  position: relative;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.95rem;
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.services-detail-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 217, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  pointer-events: none;
}
.services-detail-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 217, 255, 0.15);
}
.services-detail-card:hover::before {
  opacity: 1;
}
.services-detail-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(167, 139, 250, 0.25));
}
.services-detail-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text-primary);
  position: relative;
}
.services-detail-card ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}
.services-detail-card li + li {
  margin-top: 0.3rem;
}
.services-detail-card-highlight {
  background: var(--bg-card);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.12);
}
.services-detail-card-highlight .card-icon {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.25), rgba(167, 139, 250, 0.25));
  border-color: rgba(0, 217, 255, 0.4);
}
.services-cta .container {
  text-align: center;
}
.services-cta .btn {
  margin-top: 0.5rem;
}

/* About page: single section, image fits screen like hero – bright, minimal overlay */
.about-page.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  background-image: url('assets/hero-nature-laptop.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
}
.about-page.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.12) 0%, transparent 30%, transparent 70%, rgba(3, 7, 18, 0.15) 100%);
  pointer-events: none;
}
.about-page .container,
.about-page-inner {
  position: relative;
  z-index: 1;
}
.about-page-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, rgba(3, 7, 18, 0.72) 0%, rgba(3, 7, 18, 0.82) 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
@media (max-width: 768px) {
  .about-page-inner {
    grid-template-columns: 1fr;
  }
}
.about-page-intro .section-title { margin-bottom: 0.5rem; text-shadow: 0 2px 6px rgba(3, 7, 18, 0.7), 0 0 24px rgba(3, 7, 18, 0.3); color: var(--text-primary); }
.about-page-intro .section-slogan { margin-bottom: 0; color: var(--text-secondary); text-shadow: 0 2px 5px rgba(3, 7, 18, 0.6), 0 0 18px rgba(3, 7, 18, 0.25); }
.about-page-content { display: flex; flex-direction: column; gap: 1.25rem; }
.about-page-block { color: var(--text-secondary); font-size: 0.95rem; }
.about-page-block .subsection-title { margin: 0 0 0.4rem; font-size: 1.1rem; color: var(--text-primary); text-align: left; text-shadow: 0 2px 5px rgba(3, 7, 18, 0.55); }
.about-page-block .subsection-title::before,
.about-page-block .subsection-title::after { display: none; }
.about-page-block p { margin: 0 0 0.5rem; line-height: 1.55; text-shadow: 0 2px 5px rgba(3, 7, 18, 0.5), 0 0 14px rgba(3, 7, 18, 0.2); }
.about-page-block ul { margin: 0; padding-left: 1.25rem; }
.about-page-block li { margin-bottom: 0.25rem; text-shadow: 0 1px 4px rgba(3, 7, 18, 0.45); }
.about-page-cta { grid-column: 1 / -1; text-align: center; margin-top: 0.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }
.about-page-cta .section-title { margin-bottom: 0.5rem; text-shadow: 0 2px 5px rgba(3, 7, 18, 0.55); color: var(--text-primary); }
.about-page-cta .section-slogan { margin-bottom: 0.25rem; text-shadow: 0 2px 4px rgba(3, 7, 18, 0.45); }
.about-page-cta .subscribe-note { margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-muted); text-shadow: 0 1px 3px rgba(3, 7, 18, 0.4); }
.about-page-cta .btn { margin-top: 0.25rem; }

/* About hero (legacy, kept for other pages if needed) */
.about-hero.section {
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(3, 7, 18, 0.5) 0%, rgba(3, 7, 18, 0.8) 55%, rgba(3, 7, 18, 0.95) 100%),
    url('assets/hero-nature-laptop.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.about-hero .container {
  position: relative;
  z-index: 1;
}
.about-main.section,
.about-cta.section {
  padding: clamp(2rem, 4vw, 3.25rem) 0;
}
.about-hero .section-slogan,
.about-main .section-slogan,
.about-cta .section-slogan {
  margin-bottom: 1rem;
}
.about-main {
  position: relative;
  overflow: hidden;
}
.about-main .container {
  position: relative;
  z-index: 1;
}
.about-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
  justify-items: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.about-main-card {
  position: relative;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.95rem;
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
  text-align: center;
  max-width: 360px;
  width: 100%;
}
.about-main-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(167, 139, 250, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  pointer-events: none;
}
.about-main-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3), 0 0 35px rgba(167, 139, 250, 0.12);
}
.about-main-card:hover::before {
  opacity: 1;
}
.about-main-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.4);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(249, 115, 199, 0.2));
}
.about-main-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  position: relative;
}
.about-main-card p {
  margin: 0 0 0.5rem;
}
.about-cta .btn {
  margin-top: 0.35rem;
}
.about-main-card ul {
  padding-left: 0;
  margin: 0 auto;
  list-style: disc;
  list-style-position: inside;
  text-align: left;
  display: inline-block;
}
.about-main-card li + li {
  margin-top: 0.25rem;
}
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.about-value-card {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.about-value-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--text-primary);
}
.about-value-card p {
  margin: 0;
}
.about-cta .container {
  text-align: center;
}

.subscribe-page-hero .container {
  position: relative;
  z-index: 1;
}
.subscribe-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: stretch;
  max-width: 1000px;
  margin-inline: auto;
  min-height: 380px;
}
.subscribe-page-form {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.subscribe-page-form h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  text-align: center;
}
.subscribe-page-form .subscribe-copy,
.subscribe-page-form .subscribe-note {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.subscribe-page-form .subscribe-form {
  margin-inline: auto;
}
.subscribe-page-side {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.subscribe-page-side .page-shape {
  z-index: 0;
}
.subscribe-page-side .stat-row {
  position: relative;
  z-index: 1;
  width: 100%;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0;
  justify-content: center;
}
.subscribe-page-side .stat-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 1.4rem 1.6rem;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
}
.subscribe-page-side .stat-card .card-icon {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.75rem;
  margin-bottom: 0;
  flex-shrink: 0;
}
.subscribe-page-side .stat-card strong {
  margin-bottom: 0.2rem;
}
.subscribe-page-side .stat-card span {
  display: block;
}
@media (max-width: 800px) {
  .subscribe-page-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
    min-height: 0;
  }
  .subscribe-page-form {
    justify-content: flex-start;
  }
  .subscribe-page-side .stat-row {
    margin-top: 0.5rem;
  }
  .subscribe-page-side .stat-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .subscribe-page-side .stat-card .card-icon {
    margin-bottom: 0.5rem;
  }
}


/* ===== Sections ===== */
.section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: visible;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 30%, rgba(0, 217, 255, 0.26), transparent 55%),
    radial-gradient(ellipse 70% 50% at 20% 70%, rgba(167, 139, 250, 0.26), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(0, 217, 255, 0.14), transparent 45%);
  pointer-events: none;
}

/* Dark hero-style band for key sections (overlay + glow + shapes) */
.section-dark {
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.5) 0%, rgba(3, 7, 18, 0.8) 55%, rgba(3, 7, 18, 0.95) 100%),
    radial-gradient(ellipse 80% 55% at 20% 10%, rgba(0, 217, 255, 0.2), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(167, 139, 250, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 217, 255, 0.08), transparent 50%);
  pointer-events: none;
}
.section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 10% 20%, rgba(0, 217, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 35% 25% at 90% 15%, rgba(167, 139, 250, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 85%, rgba(0, 217, 255, 0.06), transparent 45%),
    radial-gradient(ellipse 45% 30% at 5% 75%, rgba(167, 139, 250, 0.08), transparent 45%);
  pointer-events: none;
  z-index: 0;
}
.section-dark .container {
  position: relative;
  z-index: 1;
}

.hero,
.section {
  scroll-margin-top: 5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  text-align: center;
}
.section-title::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-cyan);
  transform: rotate(45deg);
  margin: 0 auto 0.75rem;
  opacity: 0.75;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.6rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
  border-radius: 2px;
  opacity: 0.8;
}
.section-title-symbol {
  display: block;
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}
.section-slogan {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}
.subsection-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 2rem 0 1rem;
  text-align: center;
}
.subsection-title:first-of-type { margin-top: 0; }

/* ===== About ===== */
.about {
  background: transparent;
}

/* ===== About ===== */
.about-content {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.about-content p { margin: 0 0 1rem; color: var(--text-secondary); }
/* Block-level so the CTA sits below inline contact links (email / phone / Instagram). */
.about-content .btn {
  display: flex;
  margin-top: 1rem;
  margin-inline: auto;
  width: fit-content;
}

.section-alt {
  background: transparent;
}

/* ===== What We Do — service cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 -1px 0 0 rgba(0, 217, 255, 0.08) inset;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.5), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 217, 255, 0.15);
}
.service-card:active { transform: translateY(-2px) scale(0.99); }
.service-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.service-card p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

/* ===== What We Built — project cards ===== */
.projects-row { margin-bottom: 2rem; }
.coming-soon-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 1.1rem 1.75rem;
  margin: 1rem auto 1.25rem;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.coming-soon-compact .coming-badge {
  font-weight: 600;
  color: var(--accent-purple);
  font-size: 1.05rem;
  margin: 0;
}
.coming-soon-compact p { margin: 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 -1px 0 0 rgba(0, 217, 255, 0.08) inset;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.project-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(0, 217, 255, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), 0 0 20px rgba(0, 217, 255, 0.12);
}
.projects-note {
  margin: 0.85rem auto 0;
  max-width: 420px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.project-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 210deg,
    rgba(0, 217, 255, 0.0),
    rgba(0, 217, 255, 0.2),
    rgba(167, 139, 250, 0.25),
    rgba(249, 115, 199, 0.18),
    rgba(0, 217, 255, 0.0)
  );
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transform: rotate(0deg);
  transition: opacity var(--duration-slow) var(--ease-smooth), transform 1.2s var(--ease-smooth);
}
.project-card:hover::before {
  opacity: 0.45;
  transform: rotate(12deg);
}
.project-card-coming { cursor: default; }
.project-card-coming:hover { transform: none; border-color: var(--border-subtle); box-shadow: none; }

.project-placeholder {
  aspect-ratio: 5 / 3.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  color: var(--text-muted);
  text-align: center;
}
.project-placeholder span {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.project-placeholder p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Per-site styling for projects */
.project-card-cosmic .project-placeholder {
  background: #020617; /* black-ish */
  border-top: 1px solid #a855f7; /* purple accent */
}
.project-card-cosmic .project-placeholder span {
  color: #a855f7; /* purple name */
  text-shadow: none;
}
.project-card-cosmic .project-placeholder::after {
  content: "A visual guide to planets, moons & deep space.";
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #e5e7eb; /* neutral light text */
}

.project-card-pixcentre .project-placeholder {
  background: #020617; /* black-ish */
  border-top: 1px solid #fde047; /* yellow accent */
}
.project-card-pixcentre .project-placeholder span {
  color: #fde047; /* yellow name */
  text-shadow: none;
}
.project-card-pixcentre .project-placeholder::after {
  content: "Free stock photos, videos, music, sound effects, illustrations, memes & wallpapers — no copyright.";
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #e5e7eb; /* neutral light text */
}

.project-card-vibedin .project-placeholder {
  background: #000000; /* black */
  border-top: 1px solid #2dd4bf; /* teal accent */
}
.project-card-vibedin .project-placeholder span {
  color: #2dd4bf; /* teal name */
  text-shadow: none;
}
.project-card-vibedin .project-placeholder::after {
  content: "Pick your vibe — we’ll take you somewhere in the world.";
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #e5e7eb; /* neutral light text */
}

.project-card-guessbeat .project-placeholder {
  background: #130300; /* very dark red-black */
  border-top: 2px solid #d42b1e; /* logo red */
}
.project-card-guessbeat .project-placeholder span {
  background: linear-gradient(90deg, #e03220 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.project-card-guessbeat .project-placeholder::after {
  content: "How well do you know your beats? Guess the song from a short clip.";
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #ffc9a8; /* warm peach text */
}
.project-card-guessbeat:hover {
  border-color: rgba(212, 43, 30, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32), 0 0 24px rgba(212, 43, 30, 0.22);
}
.project-card-guessbeat::before {
  background: conic-gradient(
    from 210deg,
    rgba(212, 43, 30, 0.0),
    rgba(212, 43, 30, 0.28),
    rgba(249, 115, 22, 0.3),
    rgba(212, 43, 30, 0.15),
    rgba(212, 43, 30, 0.0)
  );
}

/* Logoly game card */
.project-game-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.projects-grid-games {
  max-width: 720px;
}

.project-card-logoly .project-placeholder {
  background: #f5f0e8;
  border-top: 2px solid #16a34a;
}
.project-card-logoly .project-placeholder span {
  color: #15803d;
  text-shadow: none;
  font-size: 0.92rem;
}
.project-card-logoly .project-placeholder::after {
  content: "Guess the brand from the logo \2014 quiz, word guess, daily challenges & more.";
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #374151;
}
.project-card-logoly:hover {
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26), 0 0 24px rgba(22, 163, 74, 0.22);
}
.project-card-logoly::before {
  background: conic-gradient(
    from 210deg,
    rgba(22, 163, 74, 0.0),
    rgba(22, 163, 74, 0.15),
    rgba(134, 239, 172, 0.18),
    rgba(22, 163, 74, 0.08),
    rgba(22, 163, 74, 0.0)
  );
}

/* Subledger app card (purple, gold, dark grey) */
.project-card-subledger .project-placeholder {
  background: #2a2633;
  border-top: 2px solid #c9a227;
}
.project-card-subledger .project-placeholder span {
  color: #c4b5fd;
  text-shadow: none;
  font-size: 0.92rem;
}
.project-card-subledger .project-placeholder::after {
  content: "Track subscriptions, bills, and expenses in one place with smart reminders.";
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #9ca3af;
}
.project-card-subledger:hover {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3), 0 0 24px rgba(168, 85, 247, 0.2);
}
.project-card-subledger::before {
  background: conic-gradient(
    from 200deg,
    rgba(55, 48, 71, 0.0),
    rgba(88, 28, 135, 0.35),
    rgba(201, 162, 39, 0.28),
    rgba(75, 85, 99, 0.25),
    rgba(55, 48, 71, 0.0)
  );
}

/* ===== Game page (logoly/index.html) ===== */
.game-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.game-page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.game-page-logo {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 0 0 1px rgba(22,163,74,0.18);
}
.game-page-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.game-page-tagline {
  color: #16a34a;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}
.game-page-logo-svg {
  object-fit: contain;
  background: #2a2633;
  padding: 0.5rem;
}
/* Subledger app page: purple, gold, dark grey accents */
.game-page-subledger .game-page-tagline {
  color: #c9a227;
}
.game-page-subledger .game-page-logo {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(196, 181, 253, 0.22);
}
.game-page-subledger .game-screenshots::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.4);
  border-radius: 4px;
}
.game-page-subledger .game-dl-btn-primary {
  background: #6d28d9;
}
.game-page-subledger .game-dl-btn-primary:hover {
  background: #5b21b6;
}
.game-page-subledger .game-dl-btn-secondary {
  color: #6d28d9;
  border: 1.5px solid #6d28d9;
}
.game-page-subledger .game-dl-btn-secondary:hover {
  background: rgba(109, 40, 217, 0.12);
}
.game-page-subledger .game-dl-btn-apk:hover {
  border-color: #6d28d9;
  color: #6d28d9;
}
.game-page-subledger .game-dl-num {
  background: rgba(109, 40, 217, 0.15);
  border: 1px solid rgba(109, 40, 217, 0.45);
  color: #6d28d9;
}
.game-dl-btn-disabled {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  background: #374151;
  color: #d1d5db;
  border: 1.5px solid #4b5563;
  cursor: not-allowed;
  opacity: 0.9;
  user-select: none;
}
.game-page-subledger .game-description h2 {
  color: #6d28d9;
}
.game-screenshots-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.game-screenshots {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.game-screenshots::-webkit-scrollbar { height: 4px; }
.game-screenshots::-webkit-scrollbar-track { background: transparent; }
.game-screenshots::-webkit-scrollbar-thumb { background: rgba(22,163,74,0.35); border-radius: 4px; }
.game-screenshot {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 14px;
  scroll-snap-align: start;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  display: block;
}
.game-description {
  max-width: 680px;
  margin: 0 auto;
}
.game-description h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #16a34a;
  margin: 1.5rem 0 0.4rem;
}
.game-description p, .game-description ul {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}
.game-description ul { padding-left: 1.4rem; }
.game-description li { margin-bottom: 0.3rem; }
.game-download-cols {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 720px;
  margin-bottom: 1.5rem;
  text-align: left;
}
.game-download-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.game-dl-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}
.game-dl-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  align-self: stretch;
}
.game-dl-divider::before,
.game-dl-divider::after {
  content: '';
  flex: 1;
  width: 1px;
  background: var(--border-subtle);
}
.game-dl-divider span {
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .game-download-cols {
    flex-direction: column;
  }
  .game-dl-divider {
    flex-direction: row;
    padding: 0.75rem 0;
    align-self: stretch;
  }
  .game-dl-divider::before,
  .game-dl-divider::after {
    flex: 1;
    width: auto;
    height: 1px;
  }
}
/* legacy — kept for reference, no longer used */
.game-download-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  margin-bottom: 1.5rem;
  text-align: left;
}
.game-download-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.game-dl-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.4);
  color: #16a34a;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.55rem;
}
.game-dl-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.game-dl-btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s, border-color 0.18s;
  cursor: pointer;
}
.game-dl-btn-primary {
  background: #16a34a;
  color: #fff;
}
.game-dl-btn-primary:hover { background: #15803d; }
.game-dl-btn-secondary {
  background: transparent;
  color: #16a34a;
  border: 1.5px solid #16a34a;
}
.game-dl-btn-secondary:hover { background: rgba(22, 163, 74, 0.1); }
.game-dl-btn-apk {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
  font-size: 0.85rem;
}
.game-dl-btn-apk:hover { border-color: #16a34a; color: #16a34a; }
.game-dl-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px dashed var(--border-subtle);
  background: transparent;
  align-self: center;
}
.game-dl-cs-icon { font-size: 1.4rem; line-height: 1; }
.game-dl-cs-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.game-dl-cs-sub {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.game-dl-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.game-dl-warning {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0.55rem 0.75rem;
  border-left: 3px solid #ca8a04;
  background: rgba(202, 138, 4, 0.08);
  border-radius: 0 6px 6px 0;
}
.game-nav {
  margin: 1rem 0 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.game-nav a { color: var(--text-secondary); }
.game-nav a:hover { color: var(--text-primary); }
.game-nav-sep { margin: 0 0.5rem; }
.game-legal-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}
.game-legal-label {
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 0.25rem;
}
.game-legal-links a { color: var(--text-secondary); }
.game-legal-links a:hover { color: var(--text-primary); }
.game-legal-sep { color: var(--text-muted); }

/* Screenshot buttons (thumbnails) */
.game-screenshot-btn {
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: none;
  border-radius: 14px;
  cursor: zoom-in;
  scroll-snap-align: start;
  transition: transform 0.18s, box-shadow 0.18s;
  outline-offset: 3px;
}
.game-screenshot-btn:hover { transform: translateY(-3px) scale(1.03); }
.game-screenshot-btn:focus-visible { outline: 2px solid #16a34a; }
.game-screenshot-btn .game-screenshot { scroll-snap-align: unset; }

/* Lightbox overlay */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lb-overlay[hidden] { display: none; }

.lb-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9001;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}
.lb-btn {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
}
.lb-btn:hover { background: rgba(22,163,74,0.45); border-color: #16a34a; }
.lb-btn-reset { font-size: 0.78rem; font-weight: 500; }
.lb-btn-close {
  font-size: 1.4rem;
  padding: 0.15rem 0.65rem;
  background: rgba(220,38,38,0.25);
  border-color: rgba(220,38,38,0.4);
}
.lb-btn-close:hover { background: rgba(220,38,38,0.6); border-color: #dc2626; }
.lb-zoom-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  min-width: 3ch;
  text-align: center;
}
.lb-spacer { flex: 1; }
.lb-counter {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

/* Prev / Next arrows */
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9001;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  user-select: none;
}
.lb-arrow:hover { background: rgba(22,163,74,0.55); }
.lb-arrow-prev { left: 0.5rem; }
.lb-arrow-next { right: 0.5rem; }

/* Image container */
.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 4rem 4rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
}
.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  transform-origin: center;
  transition: transform 0.2s;
  cursor: zoom-in;
  display: block;
}

/* ===== Partners ===== */
.partners {
  padding-top: calc(var(--section-padding) * 0.7);
  padding-bottom: calc(var(--section-padding) * 0.7);
}
.partner-card {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.partner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.partner-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.partner-logo-image {
  max-height: 56px;
  width: auto;
  display: block;
}
.partner-bio {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.partner-link-text {
  font-size: 0.95rem;
  color: var(--accent-cyan);
}
@media (max-width: 640px) {
  .partner-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
.project-placeholder-apps {
  background: var(--bg-card);
}
.coming-badge {
  font-weight: 700;
  color: var(--accent-purple);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Shared tags and stats (for future Services/Work pages) */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.stat-card {
  min-width: 160px;
  max-width: 220px;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  text-align: center;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration-slow) var(--ease-smooth), border-color var(--duration-slow) var(--ease-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-card .card-icon {
  flex-shrink: 0;
  margin-bottom: 0.6rem;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 217, 255, 0.12);
}
.stat-card:hover .card-icon {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}
.stat-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.stat-card span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.tag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.tag:hover {
  border-color: rgba(0, 217, 255, 0.5);
  background: var(--bg-card);
  color: var(--text-secondary);
  transform: translateY(-1px) scale(1.03);
}

/* ===== Testimonials ===== */
.testimonials {
  background: transparent;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.testimonial-card {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  text-align: left;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 -1px 0 0 rgba(249, 115, 199, 0.1) inset;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 199, 0.5), rgba(167, 139, 250, 0.5), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.testimonial-card:hover {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 20px rgba(249, 115, 199, 0.1);
}
.testimonial-stars {
  font-size: 0.95rem;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}
.testimonial-stars .star-half {
  font-size: 0.85em;
  vertical-align: 0.05em;
  color: #fbbf24;
}
.testimonial-quote {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.testimonial-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.testimonial-role {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.testimonials-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.process-card {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 -1px 0 0 rgba(167, 139, 250, 0.1) inset;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.5), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.process-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28), 0 0 20px rgba(167, 139, 250, 0.12);
}
.process-card:active { transform: translateY(-2px) scale(0.99); }
.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.96);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 217, 255, 0.6);
  margin-bottom: 0.75rem;
}
.process-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.process-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.process-icon {
  font-size: 1.05rem;
}

/* ===== Clients / who we work with ===== */
.highlight {
  position: relative;
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.pill:hover {
  border-color: rgba(244, 114, 182, 0.5);
  background: var(--bg-card);
  transform: translateY(-2px);
}
.clients-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Contact ===== */
.contact-section {
  padding-top: clamp(1rem, 4vw, 1.75rem);
}
.contact-page {
  max-width: 720px;
  margin-inline: auto;
  text-align: left;
}
.contact-intro { color: var(--text-secondary); margin: 0 0 0.75rem; }
.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: color var(--duration-slow) var(--ease-smooth), text-decoration-color var(--duration-slow) var(--ease-smooth);
}
.contact-email:hover { color: var(--accent-teal); }

/* Label (Email / Phone / Instagram) + link: clear gap, icon stays with the value */
.contact-detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.65rem;
  row-gap: 0.35rem;
  margin: 0 0 0.85rem;
}
.contact-detail-row:last-child {
  margin-bottom: 0;
}
.about-content .contact-detail-row:last-child {
  margin-bottom: 1.15rem; /* space before “Open contact form” */
}
.contact-detail-label {
  flex: 0 0 auto;
  min-width: 5.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
}
.about-page-block .contact-detail-label {
  min-width: 6rem;
}

.contact-direct {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}
.contact-direct-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text-primary);
}
.contact-direct .contact-detail-label {
  min-width: 6.25rem;
}
.contact-direct .contact-detail-row {
  margin-bottom: 0.65rem;
}
.contact-direct .contact-detail-row:last-child {
  margin-bottom: 0;
}
.contact-direct .email-link,
.contact-direct .phone-link,
.contact-direct .instagram-link,
.contact-direct .linkedin-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-cyan);
}
.contact-direct .email-link:hover,
.contact-direct .phone-link:hover,
.contact-direct .instagram-link:hover,
.contact-direct .linkedin-link:hover {
  color: var(--accent-teal);
}

/* Email, phone, Instagram, LinkedIn: small glyphs (mask inherits link color on hover) */
.email-link,
.phone-link,
.instagram-link,
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.email-icon-mask,
.phone-icon-mask,
.instagram-link .instagram-icon-mask,
.linkedin-link .linkedin-icon-mask {
  display: inline-block;
  flex-shrink: 0;
  width: 1.05em;
  height: 1.05em;
  background-color: currentColor;
}
.email-icon-mask {
  -webkit-mask: url("email-icon.svg") center / contain no-repeat;
  mask: url("email-icon.svg") center / contain no-repeat;
}
.phone-icon-mask {
  -webkit-mask: url("phone-icon.svg") center / contain no-repeat;
  mask: url("phone-icon.svg") center / contain no-repeat;
}
.instagram-link .instagram-icon-mask {
  -webkit-mask: url("instagram-icon.svg") center / contain no-repeat;
  mask: url("instagram-icon.svg") center / contain no-repeat;
}
.linkedin-link .linkedin-icon-mask {
  -webkit-mask: url("linkedin-icon.svg") center / contain no-repeat;
  mask: url("linkedin-icon.svg") center / contain no-repeat;
}

/* Contact rows — mobile: label | value grid so lines list cleanly and long links wrap in one column */
@media (max-width: 640px) {
  .contact-detail-row {
    display: grid;
    grid-template-columns: minmax(4.5rem, 5.35rem) minmax(0, 1fr);
    align-items: start;
    column-gap: 0.5rem;
    row-gap: 0.1rem;
    margin-bottom: 0.62rem;
  }
  .contact-detail-row:last-child {
    margin-bottom: 0;
  }
  .about-content .contact-detail-row:last-child {
    margin-bottom: 1rem;
  }
  .contact-detail-label {
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    padding-top: 0.12rem;
  }
  .contact-direct .contact-detail-label {
    min-width: 0;
  }
  .contact-direct .contact-detail-row {
    margin-bottom: 0.72rem;
  }
  .contact-direct .contact-detail-row:last-child {
    margin-bottom: 0;
  }
  .contact-email {
    font-size: 1.05rem;
    line-height: 1.35;
  }
  .email-link,
  .phone-link,
  .instagram-link,
  .linkedin-link {
    align-items: flex-start;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .about-page-block .contact-detail-label {
    min-width: 0;
  }
  .contact-direct {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }
  .contact-direct-heading {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
  }
}
@media (max-width: 400px) {
  .contact-detail-row {
    grid-template-columns: minmax(4rem, 4.75rem) minmax(0, 1fr);
    column-gap: 0.42rem;
  }
  .footer-brand .footer-contact-lines .contact-detail-row {
    grid-template-columns: minmax(3.85rem, 4.5rem) minmax(0, 1fr);
  }
}

#contact-form {
  scroll-margin-top: 6rem;
}

/* ===== Subscribe ===== */
.subscribe { text-align: center; }

/* Index: Stay in the loop – lighter band, distinct from About & Contact (section-dark) */
.subscribe-light {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.4) 0%, rgba(12, 18, 32, 0.6) 50%, rgba(8, 12, 24, 0.4) 100%);
}
.subscribe-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 50% at 50% 20%, rgba(0, 217, 255, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 45% at 15% 75%, rgba(167, 139, 250, 0.18), transparent 45%),
    radial-gradient(ellipse 55% 40% at 85% 60%, rgba(0, 217, 255, 0.12), transparent 45%);
  pointer-events: none;
}
.subscribe-light .container {
  position: relative;
  z-index: 1;
}

.subscribe-copy {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  color: var(--text-secondary);
}
.subscribe-note {
  max-width: 520px;
  margin: -0.5rem auto 1.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 420px;
  margin-inline: auto;
}
.subscribe-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color var(--duration-slow) var(--ease-smooth), box-shadow var(--duration-slow) var(--ease-smooth);
}
.subscribe-form input::placeholder { color: var(--text-muted); }
.subscribe-form input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-glow);
  transition: border-color var(--duration-slow) var(--ease-smooth), box-shadow var(--duration-slow) var(--ease-smooth);
}
.subscribe-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--accent-cyan);
}

.subscribe-thanks {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: max(1.5rem, env(safe-area-inset-right, 0px));
  bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 30% 0%, rgba(0, 217, 255, 0.9), rgba(14, 165, 233, 0.9));
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), visibility var(--duration) var(--ease);
  z-index: 95;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: no-preference) {
  .back-to-top.is-visible { animation: backToTopPop 0.4s var(--ease) forwards; }
}
@keyframes backToTopPop {
  0% { transform: translateY(12px) scale(0.9); opacity: 0; }
  70% { transform: translateY(-3px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== Footer ===== */
.footer {
  padding: 1.1rem 0 0.9rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1.35rem 2rem;
  align-items: center;
  margin-bottom: 0.9rem;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem 1.35rem;
  }
  .footer-tagline { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer {
    padding: 0.6rem 0 0.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
  }
  .footer-tagline {
    text-align: center;
    max-width: none;
    margin-inline: auto;
    font-size: 0.72rem;
    line-height: 1.4;
    padding-inline: 0.15rem;
  }
  /* Brand + contacts: narrow left-aligned list centered in the column (reads as a proper stack) */
  .footer-brand {
    text-align: left;
    width: 100%;
    max-width: 19.5rem;
    margin-inline: auto;
  }
  .footer-brand .footer-contact-lines {
    font-size: 0.74rem;
  }
  .footer-brand .footer-contact-lines .contact-detail-row {
    grid-template-columns: minmax(4.15rem, 4.85rem) minmax(0, 1fr);
    column-gap: 0.4rem;
    margin-bottom: 0.26rem;
  }
  .footer-brand .footer-contact-lines .contact-detail-label {
    font-size: 0.7rem;
    padding-top: 0.1rem;
  }
  .footer-brand .footer-contact-lines .contact-detail-row:last-child {
    margin-bottom: 0;
  }
  .footer-thanks {
    margin-top: 0.35rem;
    text-align: center;
    font-size: 0.72rem;
  }
  .footer-links {
    justify-content: center;
    gap: 0.32rem 0.75rem;
  }
  .footer-links a {
    font-size: 0.76rem;
  }
  .footer-feedback {
    font-size: 0.9em;
  }
  .footer-feedback p {
    margin-bottom: 0.15rem;
  }
  .footer-legal {
    padding-top: 0.5rem;
    gap: 0.35rem;
  }
}
.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.2rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}
@media (max-width: 640px) {
  .footer-brand .logo {
    display: block;
    text-align: center;
    margin-bottom: 0.2rem;
  }
}
.footer-brand p { margin: 0; font-size: 0.75rem; color: var(--text-secondary); }
.footer-brand .footer-contact-lines {
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.footer-brand .footer-contact-lines .contact-detail-row {
  margin-bottom: 0.32rem;
  column-gap: 0.5rem;
}
.footer-brand .footer-contact-lines .contact-detail-row:last-child {
  margin-bottom: 0;
}
.footer-brand .footer-contact-lines .contact-detail-label {
  min-width: 4.9rem;
  font-size: inherit;
}
.footer-brand .footer-contact-lines a {
  color: var(--accent-cyan);
  font-weight: 500;
  transition: color var(--duration-slow) var(--ease-smooth);
}
.footer-brand .footer-contact-lines a:hover {
  color: var(--accent-teal);
}
.footer-thanks { margin-top: 0.35rem; color: var(--text-muted); font-size: 0.75rem; }
.footer-tagline {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 42ch;
  justify-self: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.footer-links a {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--duration-slow) var(--ease-smooth), transform var(--duration) var(--ease);
}
.footer-links a:hover { color: var(--accent-teal); transform: translateX(2px); }
.footer-feedback p { margin: 0 0 0.2rem; font-size: 0.75rem; color: var(--text-secondary); }
.footer-feedback a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-cyan);
}
.footer-feedback a:hover { color: var(--accent-teal); }

.footer-legal {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  /* Keep the legal row clear of the fixed back-to-top control (bottom-right). */
  padding-right: max(0.75rem, calc(2.5rem + 1.5rem + 0.75rem));
  padding-bottom: 0.35rem;
}
@media (max-width: 640px) {
  .footer-legal {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.45rem;
    /* Symmetric inset: desktop uses extra padding-right for the fixed back-to-top control, which skews centered legal text on narrow screens. */
    padding-inline: 1rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }
  .footer-legal .copyright,
  .footer-legal .footer-legal-site-links {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  .footer-legal .footer-legal-site-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.15rem 0.35rem;
  }
}
.copyright { margin: 0; font-size: 0.75rem; color: var(--text-muted); }
.footer-legal a { font-size: 0.75rem; color: var(--text-secondary); }
.footer-legal .sep { color: var(--text-muted); margin: 0 0.2rem; }
.footer-legal-site-links { margin: 0; }
.footer-dodgemaxxer-legal {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.footer-dodgemaxxer-legal .sep { color: var(--text-muted); margin: 0 0.2rem; }
.footer-app-policies {
  position: relative;
  flex-shrink: 0;
  z-index: 96;
}
.footer-app-policies-btn {
  cursor: pointer;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: transparent;
  line-height: 1.3;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.footer-app-policies-btn:hover {
  color: var(--text-secondary);
  border-color: color-mix(in srgb, var(--border-subtle) 70%, var(--text-muted) 30%);
}
.footer-app-policies-btn[aria-expanded="true"] {
  color: var(--text-secondary);
}
.footer-app-policies-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 13.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
/* Class display:flex wins over the [hidden] attribute otherwise — panel must stay closed until opened. */
.footer-app-policies-panel[hidden] {
  display: none !important;
}
.footer-app-policies-panel a {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.footer-app-policies-panel a:hover {
  color: var(--accent-cyan);
}
@media (max-width: 640px) {
  .footer-app-policies {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-app-policies-panel {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
  }
  .footer-app-policies-panel a { white-space: normal; text-align: center; }
}

/* Logoly legal pages — minimal wayfinding (not a second site privacy callout) */
.logoly-legal-nav {
  padding: 0.65rem var(--container-pad, 1.25rem) 0;
  max-width: var(--container-max);
  margin-inline: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.logoly-legal-nav a { color: var(--text-muted); font-weight: 500; text-decoration: none; }
.logoly-legal-nav a:hover { color: var(--accent-cyan); }
.logoly-legal-nav-sep { color: var(--text-muted); margin: 0 0.3rem; opacity: 0.85; }
.logoly-legal-nav-label { font-weight: 500; color: var(--text-muted); }

main.logoly-legal {
  max-width: 42rem;
  padding-top: 1.25rem;
  padding-bottom: var(--section-padding);
  line-height: 1.55;
}
main.logoly-legal .scope {
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-card) 88%, var(--text-primary) 6%);
  color: var(--text-secondary);
}
main.logoly-legal .meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
main.logoly-legal h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  color: var(--text-primary);
}
main.logoly-legal .lead { margin: 0 0 2rem; color: var(--text-secondary); }
main.logoly-legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}
main.logoly-legal section:first-of-type h2 { margin-top: 0; }
/* Keep each numbered policy section visually distinct (e.g. §6 Analytics vs §7 Legal bases). */
main.logoly-legal section + section {
  margin-top: 1.5rem;
}
main.logoly-legal p { margin: 0 0 0.75rem; color: var(--text-secondary); }
main.logoly-legal ul {
  margin: 0 0 0.75rem 1.1rem;
  padding: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}
main.logoly-legal li { margin-bottom: 0.35rem; }
main.logoly-legal li:last-child { margin-bottom: 0; }
main.logoly-legal code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--bg-card) 85%, var(--text-primary) 8%);
  color: var(--text-primary);
}
main.logoly-legal a { color: var(--accent-cyan); }
main.logoly-legal a:hover { color: var(--accent-teal); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0.85rem 0.75rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}
.cookie-banner-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.cookie-banner-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.cookie-banner-text a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-text a:hover {
  color: var(--accent-teal);
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cookie-banner .btn {
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
}
@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Scroll-triggered reveal (entrance animations) ===== */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
  }
  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .reveal-on-scroll.is-visible .section-title {
    animation: revealChild 0.5s var(--ease) 0.12s backwards;
  }
  .reveal-on-scroll.is-visible .section-slogan {
    animation: revealChild 0.5s var(--ease) 0.2s backwards;
  }
  .reveal-on-scroll.is-visible .subscribe-copy {
    animation: revealChild 0.5s var(--ease) 0.18s backwards;
  }
  .reveal-on-scroll.is-visible .service-card {
    animation: revealChild 0.5s var(--ease) backwards;
  }
  .what-we-do.is-visible .service-card:nth-child(1) { animation-delay: 0.08s; }
  .what-we-do.is-visible .service-card:nth-child(2) { animation-delay: 0.18s; }
  .what-we-do.is-visible .service-card:nth-child(3) { animation-delay: 0.28s; }
  .reveal-on-scroll.is-visible .process-card {
    animation: revealChild 0.5s var(--ease) backwards;
  }
  .process.is-visible .process-card:nth-child(1) { animation-delay: 0.1s; }
  .process.is-visible .process-card:nth-child(2) { animation-delay: 0.2s; }
  .process.is-visible .process-card:nth-child(3) { animation-delay: 0.3s; }
  .process.is-visible .process-card:nth-child(4) { animation-delay: 0.4s; }
  .reveal-on-scroll.is-visible .testimonial-card {
    animation: revealChild 0.5s var(--ease) backwards;
  }
  .testimonials.is-visible .testimonial-card:nth-child(1) { animation-delay: 0.08s; }
  .testimonials.is-visible .testimonial-card:nth-child(2) { animation-delay: 0.18s; }
  .testimonials.is-visible .testimonial-card:nth-child(3) { animation-delay: 0.28s; }
  .reveal-on-scroll.is-visible .project-card {
    animation: revealChild 0.45s var(--ease) backwards;
  }
  .what-we-built.is-visible .project-card:nth-child(1) { animation-delay: 0.06s; }
  .what-we-built.is-visible .project-card:nth-child(2) { animation-delay: 0.14s; }
  .what-we-built.is-visible .project-card:nth-child(3) { animation-delay: 0.22s; }
  .what-we-built.is-visible .project-card:nth-child(4) { animation-delay: 0.30s; }
  .reveal-on-scroll.is-visible .pill { animation: revealChild 0.45s var(--ease) backwards; }
  .highlight.is-visible .pill:nth-child(1) { animation-delay: 0.05s; }
  .highlight.is-visible .pill:nth-child(2) { animation-delay: 0.12s; }
  .highlight.is-visible .pill:nth-child(3) { animation-delay: 0.19s; }
  .highlight.is-visible .pill:nth-child(4) { animation-delay: 0.26s; }
  .highlight.is-visible .pill:nth-child(5) { animation-delay: 0.33s; }
  .highlight.is-visible .pill:nth-child(6) { animation-delay: 0.4s; }
}
@keyframes revealChild {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 2.5rem;
  }

  .header-inner {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 3.25rem 0 2.75rem;
  }

  .service-card,
  .process-card,
  .project-card {
    padding: 1.3rem;
  }

  .section-title {
    margin-bottom: 1.2rem;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-form .btn {
    width: 100%;
  }
}
