/* ==========================================================
   WebMigrate — Premium Design System
   Palette:
     #000000 (pure black)    #0A0A0A (soft black)
     #1A1A1A (card surface)  #EAEAEA (primary text)
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ── Reset & Base ────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --soft-black: #0a0a0a;
  --card: #1a1a1a;
  --primary: #eaeaea;
  --secondary: #a1a1a1;

  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 14px;
  --radius-sm: 10px;
  --bg-color: #000000;
  --nav-bg: rgba(0, 0, 0, 0.8);
  --nav-mobile-bg: rgba(0, 0, 0, 0.96);
  --hero-glow: rgba(0, 0, 0, 1);
  --hero-glow-mid: rgba(0, 0, 0, 0.95);
  --hero-glow-fade: rgba(0, 0, 0, 0.8);
  --cta-bg: rgba(255, 255, 255, 0.07);
  --cta-color: rgba(255, 255, 255, 0.9);
  --cta-border: rgba(255, 255, 255, 0.12);
  --cta-hover-bg: rgba(255, 255, 255, 0.12);
  --cta-hover-border: rgba(255, 255, 255, 0.22);
  --icon-bg: rgba(255, 255, 255, 0.04);
  --star-empty: rgba(255, 255, 255, 0.15);
  --star-filled: #ffd700;
  --input-bg: #0a0a0a;
  --toast-error-bg: #1a0a0a;
  --confirm-overlay: rgba(0, 0, 0, 0.75);
  --img-placeholder-start: #1a1a1a;
  --img-placeholder-end: #222222;
}

/* ── Light Theme ─────────────────────────────── */
[data-theme="light"] {
  --black: #ffffff;
  --soft-black: #f5f5f5;
  --card: #ffffff;
  --primary: #000000;
  --secondary: #555555;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --bg-color: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-mobile-bg: rgba(255, 255, 255, 0.96);
  --hero-glow: rgba(255, 255, 255, 1);
  --hero-glow-mid: rgba(255, 255, 255, 0.95);
  --hero-glow-fade: rgba(255, 255, 255, 0.8);
  --cta-bg: rgba(0, 0, 0, 0.06);
  --cta-color: #000000;
  --cta-border: rgba(0, 0, 0, 0.15);
  --cta-hover-bg: #000000;
  --cta-hover-border: #000000;
  --icon-bg: rgba(0, 0, 0, 0.05);
  --star-empty: rgba(0, 0, 0, 0.18);
  --star-filled: #111111;
  --input-bg: #f5f5f5;
  --toast-error-bg: #fff0f0;
  --confirm-overlay: rgba(255, 255, 255, 0.75);
  --img-placeholder-start: #f0f0f0;
  --img-placeholder-end: #e8e8e8;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--bg-color);
  color: var(--secondary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
  overflow-x: hidden;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Navigation ──────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.5s ease;
  border-bottom: 1px solid var(--border);
  padding: 0 3rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}

.nav-brand:hover {
  opacity: 1;
  color: var(--primary);
}

.nav-brand svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-home-icon {
  display: flex;
  align-items: center;
}

.nav-home-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--secondary);
  transition:
    transform var(--transition),
    opacity var(--transition);
}

/* ── Main Content Area ──────────────────────────── */
.main {
  padding-top: 64px;
  min-height: 100vh;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* ── Hero Section ────────────────────────────────── */
.hero {
  text-align: center;
  padding: 10rem 2rem 6rem;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  min-height: 85vh;
}

/* Large soft black radial shadow behind hero text for readability */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(
    ellipse at center,
    var(--hero-glow) 0%,
    var(--hero-glow-mid) 40%,
    var(--hero-glow-fade) 70%,
    transparent 85%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

@media (max-width: 768px) {
  .hero::before {
    width: 380px;
    height: 450px;
    filter: blur(40px);
  }
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--secondary);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.75;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--cta-bg);
  color: var(--cta-color);
  border: 1px solid var(--cta-border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: -0.2px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 20px rgba(100, 200, 100, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  margin-top: 15px;
  margin-left: 10px;
  overflow: hidden;
}

/* Inner highlight / reflection line */
.hero-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.hero-cta:hover {
  background: var(--cta-hover-bg);
  border-color: var(--cta-hover-border);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-cta:hover::before {
  left: 120%;
}

.hero-cta svg {
  transition: transform var(--transition);
}

.hero-cta:hover svg {
  transform: translateX(3px);
}

/* ── Section Titles ──────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.8px;
}

.section-subtitle {
  color: var(--secondary);
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 400;
}

/* ── Service Cards (Home) ────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 0;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  overflow: hidden;
  padding: 10px;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

[data-theme="light"] .service-icon img {
  filter: invert(1) brightness(0.2);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}

.service-card p {
  color: var(--secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Guarantee Page ──────────────────────────────── */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.guarantee-heading {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.2px;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.guarantee-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.guarantee-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.guarantee-card h3 {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.guarantee-card p {
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

.guarantee-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.guarantee-list li {
  color: var(--secondary);
  font-size: 0.9rem;
  padding: 0.9rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guarantee-list li::before {
  content: "×";
  color: #c0392b;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.guarantee-note {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}

.guarantee-note strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.guarantee-note p {
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.75;
}

@media (max-width: 600px) {
  .guarantee-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Contact / Feedback ──────────────────────────── */

.contact-section {
  max-width: 640px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.contact-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.contact-info h3 {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info p {
  color: var(--secondary);
  font-size: 1rem;
}

/* ── Reviews ─────────────────────────────────────── */
.review-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  margin-bottom: 3rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.review-form h3 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--soft-black);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Star Rating Input */
.star-rating {
  display: flex;
  gap: 4px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--star-empty);
  transition: color var(--transition);
  line-height: 1;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--star-filled);
}

/* Submit Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--black);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.08);
}

.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Review List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  transition: border-color var(--transition);
}

.review-card:hover {
  border-color: var(--border-hover);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.review-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--secondary);
}

.review-stars {
  font-size: 0.95rem;
  color: var(--star-filled);
}

.review-comment {
  color: var(--secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Works / Portfolio Cards ─────────────────────── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.work-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--soft-black);
}

.work-card-image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.3;
}

.work-card-body {
  padding: 1.5rem;
}

.work-card-body h3 {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.work-card-body p {
  color: var(--secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition);
}

.work-link:hover {
  color: var(--primary);
}

/* ── Admin Panel ─────────────────────────────────── */
.admin-login {
  max-width: 400px;
  margin: 4rem auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.admin-login h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.3px;
}

.admin-dashboard {
  display: none;
}

.admin-section {
  margin-bottom: 3rem;
}

.admin-section h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.admin-item-info h4 {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.admin-item-info p {
  color: var(--secondary);
  font-size: 0.8rem;
}

.btn-danger {
  padding: 6px 16px;
  background: transparent;
  border: 1px solid rgba(192, 57, 43, 0.4);
  color: #e74c3c;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover {
  background: rgba(192, 57, 43, 0.15);
  border-color: #c0392b;
  color: #ff6b5a;
}

/* ── Admin works list — thumbnail & status badges ── */
.admin-item {
  gap: 1rem;
  align-items: flex-start;
}

.admin-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.admin-thumb-placeholder {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--soft-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.admin-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-badge.ok {
  background: rgba(39, 174, 96, 0.12);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.25);
}

.admin-badge.broken {
  background: rgba(192, 57, 43, 0.12);
  color: #e74c3c;
  border: 1px solid rgba(192, 57, 43, 0.3);
}

/* ── Notification Toast ──────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--card);
  color: var(--primary);
  border: 1px solid var(--accent-dim);
}

.toast.error {
  background: var(--toast-error-bg);
  color: #e74c3c;
  border: 1px solid rgba(192, 57, 43, 0.4);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: 6rem;
  color: var(--secondary);
  font-size: 0.8rem;
}

/* ── Loading State ───────────────────────────────── */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--secondary);
}

.loading::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Empty State ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--secondary);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.2;
}

/* ── Custom Confirm Modal ────────────────────── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: var(--confirm-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.confirm-overlay.show {
  opacity: 1;
}

.confirm-box {
  background: var(--card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  transform: scale(0.95) translateY(8px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-overlay.show .confirm-box {
  transform: scale(1) translateY(0);
}

.confirm-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.confirm-box p {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.confirm-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.confirm-btn {
  padding: 10px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border-hover);
}

.confirm-btn.cancel {
  background: transparent;
  color: var(--secondary);
}

.confirm-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
}

.confirm-btn.danger {
  background: #c0392b;
  color: #ffffff;
  border-color: #c0392b;
}

.confirm-btn.danger:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.25);
}

/* ── Fade-in animation ───────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:nth-child(2) {
  animation-delay: 0.08s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.16s;
}

.fade-in:nth-child(4) {
  animation-delay: 0.24s;
}

.fade-in:nth-child(5) {
  animation-delay: 0.32s;
}

/* ── Theme Toggle ────────────────────────────── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  flex-shrink: 0;
  position: relative;
}

.theme-toggle img {
  width: 22px;
  height: 22px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--border-hover);
  background: var(--icon-bg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  filter: brightness(0) invert(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.service-icon img,
.contact-icon img {
  filter: brightness(0) invert(1);
}

[data-theme="light"] .service-icon img,
[data-theme="light"] .contact-icon img {
  filter: brightness(0) invert(0);
}

/* ── Hero Canvas Container ───────────────────── */
.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-bg-wrapper canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Light theme: add card shadow for visual separation */
[data-theme="light"] .service-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .service-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .review-form,
[data-theme="light"] .review-card,
[data-theme="light"] .contact-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-cta:hover {
  color: #ffffff;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 2rem;
    gap: 2.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.15rem;
    font-weight: 500;
    width: 100%;
    display: block;
    padding: 0.5rem 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding: 6rem 1.5rem 4rem;
  }

  .hero h1 {
    letter-spacing: -0.8px;
  }

  .container {
    padding: 3rem 1.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }

  .hero p {
    font-size: 0.95rem;
  }
}

/* ── Work Card — Clickable Image Link ──────────────── */
.work-card-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  line-height: 0;
}

.work-card-image-link .work-card-image,
.work-card-image-link .work-card-image-placeholder {
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card-image-link:hover .work-card-image,
.work-card-image-link:hover .work-card-image-placeholder {
  transform: scale(1.04);
  filter: brightness(0.55);
}

.work-card-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  pointer-events: none;
}

.work-card-image-link:hover .work-card-image-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ── Back Button ──────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.back-btn:hover {
  color: var(--primary);
  border-color: var(--border-hover);
  background: var(--icon-bg);
  transform: translateX(-3px);
}

.back-btn svg {
  flex-shrink: 0;
}

/* ── Case Page Layout ─────────────────────────────── */
.case-loading {
  padding: 4rem 0;
}

.case-article {
  animation: fadeIn 0.5s ease forwards;
}

/* Hero image */
.case-hero {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: var(--soft-black);
  border: 1px solid var(--border);
  line-height: 0;
}

.case-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.case-hero-placeholder {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.2;
  background: linear-gradient(
    135deg,
    var(--img-placeholder-start),
    var(--img-placeholder-end)
  );
}

/* Title & meta */
.case-header {
  margin-bottom: 2rem;
}

.case-title {
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.case-live-link {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Description card */
.case-description {
  margin-bottom: 3rem;
}

.case-desc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  color: var(--secondary);
  font-size: 0.975rem;
  line-height: 1.85;
}

/* ── Before / After Gallery ──────────────────────── */
.before-after-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .before-after-section {
    grid-template-columns: 1fr;
  }
}

.gallery-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

/* Single image → full width */
.gallery-grid:has(.case-image-card:only-child) {
  grid-template-columns: 1fr;
}

.case-image-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--soft-black);
  border: 1px solid var(--border);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.case-image-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.case-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-image-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.65);
}

.case-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.case-image-card:hover .case-image-overlay {
  opacity: 1;
}

/* ── Lightbox ────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 0.18s ease;
}

.lightbox-content img.lb-fade {
  opacity: 0;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
  z-index: 20001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.1);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
  z-index: 20001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox-prev {
  left: 1.25rem;
}
.lightbox-next {
  right: 1.25rem;
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-2px);
}
.lightbox-next:hover {
  transform: translateY(-50%) translateX(2px);
}

/* -- Header Mobile Navigation -- */
.mobile-top-nav {
  display: none;
  width: 100%;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem;
  transition: color var(--transition);
}

.mobile-nav-item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  transition: transform var(--transition);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item:hover svg,
.mobile-nav-item.active svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .mobile-top-nav {
    display: flex;
  }

  /* Hide top nav links on mobile */
  .nav-links,
  .nav-toggle {
    display: none !important;
  }


}

/* -- Contact Buttons -- */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.25rem;
  padding: 8px 16px;
  background: var(--soft-black);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}

.contact-btn:hover {
  background: var(--primary);
  color: var(--black);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .contact-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
/* inva — monochrome visual system */
:root {
  --bg-color: #111112;
  --card: #1d1d1e;
  --primary: #f3f3f1;
  --secondary: #adadae;
  --border: rgba(255, 255, 255, 0.16);
  --dot: rgba(255, 255, 255, 0.12);
  --star-filled: #f3f3f1;
  --nav-bg: rgba(17, 17, 18, 0.9);
  --radius: 24px;
}
[data-theme="light"] {
  --bg-color: #f6f6f4;
  --card: #fff;
  --primary: #242424;
  --secondary: #636363;
  --border: rgba(0, 0, 0, 0.16);
  --dot: rgba(0, 0, 0, 0.16);
  --nav-bg: rgba(246, 246, 244, 0.9);
}
body {
  background-image: radial-gradient(var(--dot) 0.7px, transparent 0.8px);
  background-size: 9px 9px;
}
h1,
h2,
h3 {
  color: var(--primary);
}
.navbar {
  height: 88px;
  padding: 0 max(28px, calc((100vw - 1200px) / 2));
  gap: 32px;
}
.nav-links {
  gap: 25px;
}
.nav-links a {
  font-size: 13px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-project {
  color: var(--primary);
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 10px 17px;
  border-radius: 30px;
  white-space: nowrap;
}
.theme-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 15px;
}
.brand-crop {
  display: block;
  position: relative;
  width: 93px;
  height: 40px;
  overflow: hidden;
  mix-blend-mode: screen;
}
.brand-crop img {
  position: absolute;
  width: 156.65%;
  max-width: none;
  height: auto;
  left: -27.3%;
  top: 50%;
  transform: translateY(-46.2%);
}
[data-theme="light"] .brand-crop {
  mix-blend-mode: multiply;
}
[data-theme="light"] .brand-crop img {
  filter: invert(1);
}
.main {
  padding-top: 88px;
}
.container {
  max-width: 1200px;
  padding: 65px 28px;
}
section[id] {
  scroll-margin-top: 105px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--secondary);
  display: block;
}
.inva-hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 70px 24px 110px;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 8px 13px;
  background: var(--bg-color);
}
.status-dot {
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
}
.inva-hero h1 {
  font-size: clamp(42px, 5.8vw, 82px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -4px;
  margin: 27px 0 23px;
}
.inva-hero h1 span {
  color: var(--secondary);
}
.inva-hero p {
  font-size: 16px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: var(--primary);
  color: var(--bg-color);
  padding: 16px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  min-height: 54px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.primary-action:hover {
  color: var(--bg-color);
  transform: translateY(-3px);
  opacity: 0.85;
}
.primary-action span {
  font-size: 22px;
  line-height: 1;
}
.text-action {
  font-size: 13px;
  color: var(--primary);
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-height: 44px;
}
.hero-chips {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 31px;
  font-size: 10px;
  color: var(--secondary);
}
.hero-chips span:before {
  content: "✓";
  margin-right: 7px;
}
.scroll-note {
  position: absolute;
  bottom: 28px;
  font-size: 9px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.scroll-note span {
  font-size: 18px;
}
.hero-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  mask-image: linear-gradient(
    90deg,
    #000,
    transparent 35%,
    transparent 65%,
    #000
  );
}
.hero-waves svg {
  height: 100%;
  width: 100%;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 8px var(--primary));
}
.hero-waves path:nth-child(2) {
  opacity: 0.5;
}
.hero-waves path:nth-child(3) {
  opacity: 0.3;
}
.inva-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    var(--bg-color) 25%,
    transparent 75%
  );
}
.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}
.section-intro h2,
.assurance-panel h2,
.contact-panel h2 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -1.7px;
  margin: 15px 0 0;
}
.section-intro > p {
  font-size: 13px;
  margin-bottom: 3px;
  line-height: 1.8;
}
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.offer-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 25px;
  padding: 28px;
  transition:
    transform 0.25s,
    border-color 0.25s;
  overflow: hidden;
}
.offer-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.circle-arrow {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--bg-color);
  font-size: 23px;
  font-weight: 300;
}
.offer-card h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 25px 0 10px;
}
.offer-card p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 430px;
  color: var(--secondary);
}
.offer-tags {
  display: flex;
  gap: 8px;
  margin-top: 25px;
}
.offer-tags span {
  font-size: 10px;
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: 20px;
}
.browser-sketch {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 27px auto 0;
  max-width: 350px;
  transform: rotate(-3deg);
  background: var(--bg-color);
  height: 174px;
  overflow: hidden;
}
.sketch-bar {
  border-bottom: 1px solid var(--border);
  font-size: 7px;
  letter-spacing: 2px;
  padding: 9px 12px;
}
.sketch-bar span {
  float: right;
  letter-spacing: 0;
}
.sketch-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 23px;
}
.sketch-body b {
  font-size: 22px;
  line-height: 1.1;
  display: block;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: -1px;
}
.sketch-body em {
  display: inline-block;
  font-size: 7px;
  font-style: normal;
  background: var(--primary);
  color: var(--bg-color);
  padding: 5px 12px;
  border-radius: 15px;
  margin-top: 14px;
}
.sketch-orbit {
  font-size: 90px;
  line-height: 1;
  color: var(--primary);
  font-weight: 200;
}
.migration-sketch {
  height: 174px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 27px;
}
.platform-stack {
  display: grid;
  gap: 7px;
  transform: rotate(-5deg);
}
.platform-stack span {
  border: 1px solid var(--border);
  background: var(--bg-color);
  border-radius: 10px;
  font-size: 11px;
  padding: 9px 19px;
}
.migration-arrow {
  font-size: 30px;
}
.own-site {
  background: var(--primary);
  color: var(--bg-color);
  width: 108px;
  height: 112px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  line-height: 1.2;
  transform: rotate(5deg);
}
.own-site small {
  font-size: 12px;
}
.support-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 23px 28px;
  margin-top: 18px;
}
.support-symbol {
  font-size: 37px;
  color: var(--primary);
}
.support-strip h3 {
  font-size: 16px;
  font-weight: 500;
}
.support-strip p {
  font-size: 12px;
  margin-top: 4px;
}
.support-strip .circle-arrow {
  margin-left: auto;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.process-grid article {
  border-top: 1px solid var(--border);
  padding-top: 23px;
}
.step-number {
  font-size: 11px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
}
.process-grid h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 20px 0 12px;
}
.process-grid p {
  font-size: 13px;
  line-height: 1.8;
}
.assurance-panel {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 42px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.assurance-panel .text-action {
  margin-top: 28px;
}
.assurance-items article {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.assurance-items article:last-child {
  border: 0;
}
.assurance-items article > span {
  color: var(--primary);
}
.assurance-items h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}
.assurance-items p {
  font-size: 12px;
  line-height: 1.7;
}
.explore-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 0;
  padding-bottom: 0;
}
.explore-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 25px;
}
.explore-card h3 {
  font-size: 21px;
  font-weight: 500;
  margin-top: 5px;
}
.explore-card .circle-arrow {
  position: absolute;
  right: 25px;
  top: 30px;
}
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
}
.contact-panel h2 {
  font-size: 50px;
}
.contact-panel p {
  font-size: 14px;
  margin: 22px 0 27px;
}
.contact-panel small {
  display: block;
  font-size: 10px;
  margin-top: 15px;
}
.contact-mark {
  font-size: 220px;
  color: var(--primary);
  line-height: 1;
  padding: 0 20px;
  font-weight: 200;
}
.footer {
  max-width: 1144px;
  margin: auto;
  padding: 25px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  background: transparent;
  border-top: 1px solid var(--border);
}
.footer p {
  font-size: 11px;
}
.footer-brand {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--primary);
}
.footer span {
  font-size: 10px;
}
.section-title {
  font-weight: 500;
  letter-spacing: -1.5px;
}
.review-form,
.review-card,
.work-card,
.guarantee-card,
.guarantee-note {
  border: 1px solid var(--border);
  border-radius: 22px;
}
.empty-state {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  grid-column: 1/-1;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 2000;
  background: var(--primary);
  color: var(--bg-color);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 5px;
}
.mobile-top-nav {
  background: var(--nav-bg);
}
@media (min-width: 1600px) {
  .inva-hero {
    min-height: 770px;
  }
}
@media (max-width: 1000px) {
  .nav-links {
    gap: 15px;
  }
  .nav-project {
    display: none;
  }
  .inva-hero h1 {
    letter-spacing: -2.7px;
  }
  .contact-mark {
    font-size: 160px;
  }
  .section-intro h2,
  .assurance-panel h2 {
    font-size: 36px;
  }
}
@media (max-width: 700px) {
  .navbar {
    height: 74px;
    padding: 0 22px;
  }
  .main {
    padding-top: 74px;
  }
  .brand-crop {
    width: 82px;
    height: 35px;
  }
  .container {
    padding: 40px 20px;
  }
  .inva-hero {
    min-height: 640px;
    padding: 58px 20px 95px;
    align-items: flex-start;
  }
  .hero-label {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .inva-hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
    margin-top: 30px;
  }
  .inva-hero p {
    font-size: 14px;
    max-width: 340px;
    margin: auto;
  }
  .desktop-break {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 26px;
  }
  .primary-action {
    font-size: 13px;
    padding: 15px 22px;
  }
  .hero-chips {
    flex-wrap: wrap;
    gap: 6px 13px;
    max-width: 300px;
    margin: 24px auto 0;
    font-size: 9px;
  }
  .scroll-note {
    bottom: 27px;
  }
  .section-intro {
    display: block;
    margin-bottom: 25px;
  }
  .section-intro h2,
  .assurance-panel h2 {
    font-size: 32px;
    letter-spacing: -1.1px;
  }
  .section-intro > p {
    margin-top: 17px;
    font-size: 12px;
  }
  .offer-grid,
  .process-grid,
  .assurance-panel,
  .explore-section {
    grid-template-columns: 1fr;
  }
  .offer-card {
    padding: 22px;
  }
  .offer-card h3 {
    font-size: 23px;
  }
  .offer-top .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .support-strip {
    padding: 20px;
    gap: 12px;
  }
  .support-symbol {
    display: none;
  }
  .support-strip h3 {
    font-size: 14px;
  }
  .support-strip p {
    font-size: 11px;
  }
  .process-grid {
    gap: 28px;
  }
  .process-grid h3 {
    margin: 12px 0 8px;
  }
  .assurance-panel {
    padding: 27px;
    gap: 10px;
  }
  .explore-section {
    padding-top: 0;
    padding-bottom: 0;
    gap: 12px;
  }
  .contact-panel {
    padding: 30px 25px;
  }
  .contact-panel h2 {
    font-size: 35px;
    letter-spacing: -1.2px;
  }
  .contact-panel p {
    font-size: 12px;
  }
  .contact-mark {
    display: none;
  }
  .footer {
    margin: 0 20px;
    padding: 23px 0 8px;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .footer p {
    order: 3;
    width: 100%;
    text-align: left;
  }
  .footer span {
    margin-left: auto;
  }
  .hero-waves {
    opacity: 0.15;
    mask-image: linear-gradient(0deg, #000, transparent 75%);
  }
  .circle-arrow {
    min-width: 44px;
    min-height: 44px;
  }
  .nav-links {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Motion: staggered section reveals and a gently flowing hero. */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    translate: 0 28px;
    transition:
      opacity 750ms ease var(--reveal-delay, 0ms),
      translate 850ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      transform 250ms ease,
      border-color 250ms ease;
    animation: none;
  }
  .scroll-reveal.is-revealed,
  .scroll-reveal:focus-within {
    opacity: 1;
    translate: 0 0;
  }
  .hero-content > * {
    animation: hero-enter 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-content h1 {
    animation-delay: 100ms;
  }
  .hero-content > p {
    animation-delay: 180ms;
  }
  .hero-content .hero-actions {
    animation-delay: 260ms;
  }
  .hero-content .hero-chips {
    animation-delay: 340ms;
  }
  .scroll-note span {
    animation: scroll-nudge 3s ease-in-out infinite;
  }
}
.hero-waves {
  opacity: 0.48;
}
.hero-waves svg {
  stroke-width: 1.5;
}
.hero-waves path {
  vector-effect: non-scaling-stroke;
}
[data-theme="light"] .hero-waves {
  opacity: 0.27;
}
@keyframes hero-enter {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes scroll-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}
@media (max-width: 700px) {
  .hero-waves {
    opacity: 0.32;
  }
  [data-theme="light"] .hero-waves {
    opacity: 0.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    translate: none;
  }
}

/* Compact hero spacing after removing the lower scroll prompts. */
[data-page="home"] .inva-hero,
[data-page="development"] .inva-hero { min-height: 0; padding-bottom: 36px; }
[data-page="home"] .inva-hero + .container,
[data-page="development"] .inva-hero + .container { padding-top: 24px; }

/* Development services and inline portfolio. */
.development-intro { max-width: 850px; margin-bottom: 35px; }
.development-intro h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; font-weight: 500; letter-spacing: -1.5px; margin: 0 0 20px; }
.development-intro > p { max-width: 680px; font-size: 15px; line-height: 1.8; }
.development-intro .development-scope { font-size: 13px; margin-top: 12px; }
.development-intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 24px; }
.service-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.service-jumps a { font-size: 12px; color: var(--primary); border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; }
.service-jumps a:hover { border-color: var(--primary); }
.offer-card[id] { scroll-margin-top: 100px; }
@media (max-width: 700px) {
  [data-page="development"] .services-section { padding-top: 28px; }
  .development-intro h1 { font-size: 30px; letter-spacing: -1px; }
  .development-intro > p { font-size: 13px; }
  .development-intro .development-scope { font-size: 12px; }
  .service-jumps { gap: 7px; margin-top: 22px; }
  .service-jumps a { font-size: 11px; padding: 8px 12px; }
  .services-section .browser-sketch, .services-section .migration-sketch, .services-section .telegram-sketch { display: none; }
  .services-section .offer-card h3 { margin-top: 18px; }
  .services-section .offer-top .circle-arrow { min-width: 34px; min-height: 34px; width: 34px; height: 34px; }
}
.telegram-sketch { min-height: 230px; margin: 26px 0; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-color); color: var(--primary); }
.telegram-sketch-header { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 18px; font-size: 16px; }
.telegram-sketch-header span { font-size: 12px; flex: 1; }
.telegram-sketch-header small { font-size: 10px; color: var(--secondary); }
.bot-bubble { width: fit-content; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px 14px 14px 3px; font-size: 12px; }
.bot-options { display: flex; gap: 8px; margin: 10px 0; font-size: 10px; }
.bot-options span { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.bot-reply { margin-left: auto; background: var(--primary); color: var(--bg-color); border: 0; border-radius: 14px 14px 3px 14px; }
.miniapp-heading { font-size: 19px; line-height: 1.3; letter-spacing: -.5px; }
.miniapp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.miniapp-tiles > span { display: flex; flex-direction: column; gap: 5px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; font-size: 20px; }
.miniapp-tiles small { font-size: 9px; color: var(--secondary); }
.miniapp-action { background: var(--primary); color: var(--bg-color); border-radius: 8px; padding: 9px; text-align: center; font-size: 10px; }
.development-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.development-work-grid .scroll-work { width: 100%; max-width: none; margin: 0; }
.development-work-grid .scroll-work-stage { border-radius: 22px 22px 0 0; }
.portfolio-more { margin-top: 25px; }
@media (min-width: 1000px) {
  .development-portfolio .section-intro h2 { white-space: nowrap; }
}
@media (max-width: 700px) {
  .development-work-grid { grid-template-columns: 1fr; }
  .telegram-sketch { padding: 16px; }
}

/* Drawn product icons replace the generic star motif. */
.community-icon svg { display: block; width: 48px; height: 48px; }
.mission-mark svg { display: block; width: min(100%, 140px); height: auto; margin: auto; }
.contact-mark svg { display: block; width: 180px; height: 180px; }
.support-symbol svg { display: block; width: 36px; height: 36px; }
.sketch-orbit svg { width: 64px; height: 64px; }
@media (max-width: 700px) {
  .mission-mark svg { width: 70px; margin: 0; }
}

/* Telegram destinations shared by all public pages. */
.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.community-card { display: flex; flex-direction: column; padding: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; color: var(--primary); transition: transform .25s, border-color .25s; }
.community-card:hover { transform: translateY(-5px); border-color: var(--primary); color: var(--primary); }
.community-icon { display: block; font-size: 48px; line-height: 1; margin: 30px 0; }
.community-card h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.7px; margin-bottom: 14px; }
.community-card p { color: var(--secondary); font-size: 13px; line-height: 1.8; margin-bottom: 28px; }
.community-handle { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; }
.community-handle > span { font-size: 22px; }
.community-support { display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid var(--border); background: var(--card); border-radius: 24px; padding: 24px 28px; margin-top: 20px; }
.community-support h3 { font-size: 18px; margin-bottom: 4px; }
.community-support p { font-size: 13px; color: var(--secondary); }
.community-support .text-action { white-space: nowrap; }
@media (max-width: 700px) {
  .community-grid { grid-template-columns: 1fr; gap: 14px; }
  .community-card { padding: 25px; }
  .community-icon { margin: 22px 0; }
  .community-support { align-items: flex-start; flex-direction: column; gap: 8px; padding: 25px; }
}

/* Screenshot portfolio preview: animation runs only while visible. */
.scroll-work { max-width: 640px; margin: 0 auto 2rem; }
.scroll-work-stage { padding: 28px 16px; background: radial-gradient(ellipse at top, #30302a, #121212 75%); }
.scroll-work-screen { width: min(100%, 300px); height: 520px; margin: auto; overflow: hidden; border: 6px solid #303030; border-radius: 30px; background: #171717; box-shadow: 0 18px 48px #0008; }
.scroll-work-screen img { display: block; width: 100%; height: auto; animation: portfolio-scroll 65s linear infinite; animation-play-state: paused; }
.scroll-work.is-playing img { animation-play-state: running; }
.scroll-work .work-card-body h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.scroll-work-toggle { font: inherit; font-size: .85rem; color: var(--primary); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: .65rem 1rem; cursor: pointer; }
.scroll-work-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#worksList[hidden] { display: none; }
@keyframes portfolio-scroll {
  0% { transform: translateY(0); }
  82%, 93% { transform: translateY(calc(-100% + 508px)); }
  100% { transform: translateY(0); }
}

/* Compact mobile header: brand, navigation and theme share one row. */
@media (max-width: 768px) {
  .navbar { height: 74px; padding: 0 12px; flex-wrap: nowrap; gap: 10px; }
  .nav-brand { flex: 0 0 auto; }
  .navbar .brand-crop { width: 72px; height: 32px; }
  .mobile-top-nav { order: 2; flex: 1 1 auto; width: auto; min-width: 0; background: transparent; }
  .nav-actions { display: none; }
  .mobile-nav-item { flex: 1; min-width: 0; gap: 3px; padding: 5px 1px; font-size: 10px; white-space: nowrap; }
  .mobile-nav-item svg { width: 20px; height: 20px; }
  .navbar .theme-toggle { width: 38px; height: 38px; }
  .main { padding-top: 74px; }
  html { scroll-padding-top: 86px; }
}
@media (max-width: 380px) {
  .navbar { padding-inline: 8px; gap: 6px; }
  .navbar .brand-crop { width: 64px; height: 29px; }
  .mobile-nav-item { font-size: 9px; }
  .navbar .theme-toggle { width: 34px; height: 34px; }
}
[data-theme="light"] .scroll-work-stage { background: radial-gradient(ellipse at top, #ffffff, #e9ece6 85%); }
[data-theme="light"] .scroll-work-screen { border-color: #d5d8d2; background: #fff; box-shadow: 0 18px 38px rgba(30, 40, 25, .16); }
[data-theme="light"] .scroll-work:hover { box-shadow: 0 12px 32px rgba(30, 40, 25, .1); }

@media (prefers-reduced-motion: no-preference) {
  .primary-action > span,.text-action > span,.community-handle > span { display:inline-block; transition:translate .3s ease,rotate .3s ease; }
  .primary-action { position:relative; isolation:isolate; overflow:hidden; }
  .primary-action::after { content:''; position:absolute; inset:-60% auto -60% -65%; width:35%; pointer-events:none; background:linear-gradient(90deg,transparent,#ffffff45,transparent); transform:skewX(-22deg); transition:left .65s ease; }
  .offer-card,.process-grid article,.explore-card { transition:translate .35s,box-shadow .35s,border-color .35s; }
}
@media (hover:hover) and (prefers-reduced-motion: no-preference) {
  .primary-action:hover::after { left:135%; }
  .primary-action:hover > span,.text-action:hover > span,.community-card:hover .community-handle > span { translate:3px -3px; }
  .offer-card:hover,.process-grid article:hover,.explore-card:hover { translate:0 -5px; box-shadow:0 16px 35px #0002; }
}

/* A second layer of motion: service demos, card accents and responsive controls. */
@media (prefers-reduced-motion: no-preference) {
  .motion-visible .sketch-orbit { animation: service-code-float 5s ease-in-out infinite; }
  .motion-visible .migration-arrow { animation: service-transfer 2.5s ease-in-out infinite; }
  .motion-visible .bot-bubble { animation: message-arrive 5s ease-in-out infinite; }
  .motion-visible .bot-reply { animation-delay: 1s; }
  .motion-visible .miniapp-tiles > span { animation: tile-lift 5s ease-in-out infinite; }
  .motion-visible .miniapp-tiles > span:nth-child(2) { animation-delay: .4s; }
  .motion-visible .miniapp-tiles > span:nth-child(3) { animation-delay: .8s; }
  .motion-visible .offer-top .circle-arrow { animation: service-arrow-nudge 4s ease-in-out infinite; }
  .motion-visible.community-card .community-icon { animation: service-code-float 6s ease-in-out infinite; }
  .motion-visible .bridge-window { animation: window-drift 8s ease-in-out infinite; }
  .motion-visible .mission-mark { animation: mission-turn 16s ease-in-out infinite; }
  .motion-visible .step-number { animation: step-emphasis 5s ease-in-out infinite; }
  .primary-action:active, .offer-card:active, .community-card:active { scale: .98; }
  .primary-action, .offer-card, .community-card { transition: scale .2s ease, transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
  .nav-links a { position: relative; }
  .nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
  .ambient-paused .motion-visible * { animation-play-state: paused !important; }
}
@keyframes service-code-float { 50% { translate: 0 -7px; rotate: -5deg; } }
@keyframes service-transfer { 0%,100% { translate: -4px 0; opacity: .5; } 50% { translate: 5px 0; opacity: 1; } }
@keyframes message-arrive { 0%,75%,100% { translate: 0 0; opacity: 1; } 82% { translate: 0 5px; opacity: .55; } }
@keyframes tile-lift { 0%,60%,100% { translate: 0 0; } 30% { translate: 0 -5px; border-color: var(--primary); } }
@keyframes service-arrow-nudge { 0%,65%,100% { translate: 0 0; } 78% { translate: 3px -3px; } }
@keyframes window-drift { 50% { translate: 0 -9px; rotate: 2deg; } }
@keyframes mission-turn { 0%,70%,100% { rotate: 0deg; } 85% { rotate: 12deg; } }
@keyframes step-emphasis { 50% { opacity: .5; } }

.reading-progress { position: fixed; inset: 0 auto auto 0; width: 100%; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; z-index: 1100; pointer-events: none; }

/* Keep the header attached to document scrolling on mobile browsers. */
html, body { overflow-x: clip; }
.navbar { position: sticky; top: 0; }
.main { padding-top: 0; }

/* Touch-first motion: entrances, living illustrations and viewport-driven accents. */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.reveal-from-left { translate: -14px 32px; }
  .scroll-reveal.reveal-from-right { translate: 14px 32px; }
  .scroll-reveal.reveal-from-left.is-revealed,
  .scroll-reveal.reveal-from-right.is-revealed,
  .scroll-reveal:focus-within { translate: 0 0; }

  .motion-visible.primary-action::after { animation: touch-button-sheen 6s ease-in-out infinite; }
  .motion-visible.text-action > span[aria-hidden],
  .motion-visible .community-handle > span { animation: touch-arrow-invite 5s ease-in-out infinite; }
  .motion-visible.community-card:nth-child(2) .community-icon { animation-delay: -2s; }
  .motion-visible.community-card:nth-child(3) .community-icon { animation-delay: -4s; }
  .motion-visible.community-support .text-action > span { animation: touch-arrow-invite 5s ease-in-out infinite; }

  .motion-visible .principle-mark { animation: touch-symbol-turn 8s ease-in-out infinite; }
  .motion-visible:nth-child(2) .principle-mark { animation-delay: -2.6s; }
  .motion-visible:nth-child(3) .principle-mark { animation-delay: -5.2s; }
  .motion-visible .support-symbol { animation: touch-compass 7s ease-in-out infinite; }
  .motion-visible .story-symbol > span { animation: touch-code-float 6s ease-in-out infinite; }
  .motion-visible .symbol-orbit { animation-play-state: running; }
  .about-story:not(.motion-visible) .symbol-orbit,
  .about-story:not(.motion-visible) .story-symbol > span { animation-play-state: paused !important; }

  .motion-visible .assurance-items > article > span { animation: touch-check 6s ease-in-out infinite; }
  .motion-visible .assurance-items > article:nth-child(2) > span { animation-delay: 1s; }
  .motion-visible .assurance-items > article:nth-child(3) > span { animation-delay: 2s; }
  .motion-visible .pitch-benefits > span::before { display: inline-block; animation: touch-check 7s ease-in-out infinite; }
  .motion-visible .pitch-benefits > span:nth-child(2)::before { animation-delay: .6s; }
  .motion-visible .pitch-benefits > span:nth-child(3)::before { animation-delay: 1.2s; }

  .motion-visible .platform-stack > span { animation: touch-stack 5s ease-in-out infinite; }
  .motion-visible .platform-stack > span:nth-child(2) { animation-delay: .3s; }
  .motion-visible .platform-stack > span:nth-child(3) { animation-delay: .6s; }
  .motion-visible .own-site { animation: touch-site-land 5s ease-in-out infinite; }
  .motion-visible .bot-options > span { animation: touch-option 5s ease-in-out infinite; }
  .motion-visible .bot-options > span:nth-child(2) { animation-delay: .4s; }
  .motion-visible .miniapp-action { animation: touch-option 5s ease-in-out 1s infinite; }

  .motion-visible .contact-mark { animation: touch-contact-float 7s ease-in-out infinite; }
  .contact-panel:not(.motion-visible) .contact-mark { animation-play-state: paused; }
  .ambient-paused .motion-visible,
  .ambient-paused .motion-visible *,
  .ambient-paused .motion-visible *::before,
  .ambient-paused .motion-visible::after { animation-play-state: paused !important; }
}
@keyframes touch-button-sheen {
  0%, 65% { transform: translateX(0) skewX(-22deg); opacity: 0; }
  68% { opacity: 1; }
  88%, 100% { transform: translateX(650%) skewX(-22deg); opacity: 0; }
}
@keyframes touch-arrow-invite {
  0%, 65%, 100% { translate: 0 0; }
  76% { translate: 4px -4px; }
  86% { translate: 1px -1px; }
}
@keyframes touch-symbol-turn {
  0%, 55%, 100% { rotate: 0deg; scale: 1; }
  72% { rotate: 16deg; scale: 1.08; }
  86% { rotate: -5deg; }
}
@keyframes touch-compass { 0%, 55%, 100% { rotate: 0deg; } 70% { rotate: 35deg; } 85% { rotate: -12deg; } }
@keyframes touch-code-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: -4deg; } }
@keyframes touch-check { 0%, 65%, 100% { scale: 1; } 78% { scale: 1.25; } 88% { scale: .95; } }
@keyframes touch-stack { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 6px 0; } }
@keyframes touch-site-land { 0%, 60%, 100% { scale: 1; } 35% { scale: 1.04; } }
@keyframes touch-option { 0%, 65%, 100% { scale: 1; } 78% { scale: .96; } 87% { scale: 1.02; } }
@keyframes touch-contact-float { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -10px; rotate: 5deg; } }

/* Mobile entrances are owned by one controller. Text never pulses or scales. */
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .scroll-reveal, .scroll-reveal.reveal-from-left, .scroll-reveal.reveal-from-right,
  .scroll-reveal.is-revealed, .fade-in {
    opacity: 1;
    translate: none;
    transform: none;
    animation: none;
    transition: border-color .2s ease;
  }
  .offer-card, .community-card, .principles article, .process-grid article,
  .primary-action, .text-action, .work-card, .mobile-nav-item {
    scale: 1;
  }
  .offer-card *, .community-card *, .principles article *, .process-grid article *,
  .development-pitch *, .assurance-panel *, .contact-panel *, .support-strip *,
  .about-story *, .primary-action, .text-action { animation: none !important; }
  .primary-action::after { content: none; }
  .pitch-benefits > span::before { animation: none !important; }
  .offer-card:hover, .community-card:hover, .principles article:hover {
    transform: none;
    translate: none;
  }
  .mobile-motion-item { transition: border-color .2s ease; }
  .mobile-motion-item:focus-within { clip-path: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  @media (max-width: 700px), (hover: none) and (pointer: coarse) {
    .mobile-motion-item.mobile-enter-pending { opacity: 0; }
    .mobile-motion-item.mobile-enter-pending:focus-within { opacity: 1; }
    .community-card .community-icon,
    .principles .principle-mark,
    .about-story .story-symbol > span,
    .development-pitch .bridge-window {
      translate: 0 var(--mobile-drift, 0px);
      rotate: var(--mobile-turn, 0deg);
    }
    .principles .principle-mark { transform-origin: center; }
  }
}
