/* ==========================================================================
   Bocco Security Kft. — Stylesheet
   ========================================================================== */

:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-muted: #5a5a5e;
  --text-soft: #8e8e93;
  --border: #e5e5e7;
  --border-soft: #efeff0;
  --accent: #1d1d1f;
  --accent-hover: #1c1c1e;

  --dark-bg: #1d1d1f;
  --dark-text: #f5f5f7;
  --dark-text-muted: #a1a1a6;
  --dark-border: rgba(255, 255, 255, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.splash-active,
body.menu-open { overflow: hidden; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.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;
}

/* ==========================================================================
   Splash screen
   ========================================================================== */
#splash {
  position: fixed;
  inset: 0;
  background: #1d1d1f;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashOut 0.5s cubic-bezier(0.7, 0, 0.84, 0) 2.2s forwards;
}

.splash-inner {
  text-align: center;
  position: relative;
}

.splash-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  animation: splashGlow 2s ease forwards;
}

.splash-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: splashLogoIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.splash-shield-svg {
  width: 130px;
  height: 143px;
  display: block;
  flex-shrink: 0;
}

.splash-shield { fill: #fafaf8; }
.splash-check  { stroke: #1d1d1f; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.splash-text {
  text-align: left;
  line-height: 1;
}

.splash-bocco {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #fafaf8;
  line-height: 1;
}

.splash-sec {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
}

.splash-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  margin: 26px auto 16px;
  width: 0;
  animation: splashLineGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.splash-tag {
  font-size: 11px;
  letter-spacing: 0.45em;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: splashTagIn 0.5s ease 1.2s forwards;
}

@keyframes splashLogoIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes splashLineGrow { to { width: 320px; } }
@keyframes splashTagIn { to { opacity: 1; } }
@keyframes splashGlow {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0.6; }
}
@keyframes splashOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); visibility: hidden; }
}

/* ==========================================================================
   Header — scroll-aware
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(251, 251, 249, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.site-header.scrolled {
  background: rgba(29, 29, 31, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header.scrolled .nav-list a { color: rgba(255, 255, 255, 0.6); }
.site-header.scrolled .nav-list a:hover { color: #fff; }
.site-header.scrolled .menu-toggle { color: #fff; }

.site-header.scrolled .logo-shield { fill: #fafaf8; }
.site-header.scrolled .logo-check  { stroke: #1d1d1f; }
.site-header.scrolled .logo-bocco  { color: #fafaf8; }
.site-header.scrolled .logo-sec    { color: rgba(255, 255, 255, 0.7); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  height: 36px;
  flex-shrink: 0;
}

.logo-shield-svg {
  height: 36px;
  width: 33px;
  display: block;
  flex-shrink: 0;
}

.logo-shield { fill: #1d1d1f; transition: fill 0.4s ease; }
.logo-check  { stroke: #fafaf8; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s ease; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-bocco {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #1d1d1f;
  transition: color 0.4s ease;
}

.logo-sec {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: rgba(29, 29, 31, 0.7);
  margin-top: 3px;
  transition: color 0.4s ease;
}

.nav-list {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  transition: color 0.4s ease;
}

.nav-list a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  transition: color 0.4s ease;
}

/* ==========================================================================
   Mobile bottom sheet menu
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
}

.mobile-menu.open .mobile-backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mobile-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  padding: 14px 24px 36px;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.18);
  max-height: 86vh;
  overflow-y: auto;
}

.mobile-menu.open .mobile-sheet { transform: translateY(0); }

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  margin: 0 auto 24px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 8px;
}

.sheet-title {
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sheet-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
}

.sheet-nav { display: flex; flex-direction: column; }

.sheet-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease;
}

.mobile-menu.open .sheet-nav a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .sheet-nav a:nth-child(1) { transition-delay: 0.18s; }
.mobile-menu.open .sheet-nav a:nth-child(2) { transition-delay: 0.24s; }
.mobile-menu.open .sheet-nav a:nth-child(3) { transition-delay: 0.30s; }
.mobile-menu.open .sheet-nav a:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu.open .sheet-nav a:nth-child(5) { transition-delay: 0.42s; }

.sheet-nav a span.num {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.sheet-nav a:active { color: var(--text-muted); }

.sheet-cta {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.5s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.mobile-menu.open .sheet-cta {
  opacity: 1;
  transform: translateY(0);
}

.sheet-meta {
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 20px;
  line-height: 1.8;
}

/* ==========================================================================
   Sections + typography
   ========================================================================== */
section { padding: 120px 0; position: relative; }

.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

h1 {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 780px;
  color: var(--text);
}

h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 720px;
  color: var(--text);
}

h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}

.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.55;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: 180px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(29, 29, 31, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { z-index: 2; }
.hero-content { position: relative; z-index: 2; }

.hero-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.hero-shield {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 18px 32px rgba(29, 29, 31, 0.22));
  opacity: 0;
  animation:
    shieldEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.7s both,
    shieldPulse 3.6s ease-in-out 3.9s infinite;
  transform-origin: center;
}

@keyframes shieldEnter {
  0%   { opacity: 0; transform: translateY(20px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Subtle steady pulse — reflects an active security system rhythm */
@keyframes shieldPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(0) scale(1.025); }
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}

/* ==========================================================================
   Stats + counter ring
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-top: 72px;
  position: relative;
  z-index: 2;
}

.stat-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.stat-label { font-size: 13px; color: var(--text-muted); }

.stat-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 4px;
}

.stat-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stat-ring .ring-bg {
  fill: none;
  stroke: rgba(29, 29, 31, 0.08);
  stroke-width: 3;
}

.stat-ring .ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-ring.active .ring-progress { stroke-dashoffset: 0; }

.stat-ring .ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   About + matte-black feature cards
   ========================================================================== */
.about {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.feature {
  padding: 28px;
  background: linear-gradient(160deg, #2c2c2e 0%, #1d1d1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s ease,
              border-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.feature::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.feature:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.feature h3 { color: #f5f5f7; }
.feature p  { color: rgba(255, 255, 255, 0.6); font-size: 14px; }

.feature-icon {
  width: 28px;
  height: 28px;
  color: #f5f5f7;
  margin-bottom: 16px;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.service {
  background: linear-gradient(160deg, #2c2c2e 0%, #1d1d1f 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s ease,
              border-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.service::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.service:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.service h3 { color: #f5f5f7; }

.service-num {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.service-icon {
  width: 28px;
  height: 28px;
  color: #f5f5f7;
  margin-bottom: 18px;
}

.service ul { list-style: none; margin-top: 18px; }

.service li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0 6px 18px;
  position: relative;
}

.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Clients
   ========================================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.client {
  padding: 28px 22px;
  background: linear-gradient(160deg, #2c2c2e 0%, #1d1d1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  text-align: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s ease,
              border-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.client::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.client:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.client-num {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.client-icon {
  width: 24px;
  height: 24px;
  color: #f5f5f7;
  margin-bottom: 16px;
}

.client p {
  font-size: 14px;
  color: #f5f5f7;
  font-weight: 500;
}

/* ==========================================================================
   Process — dark island
   ========================================================================== */
.process {
  background: var(--dark-bg);
  color: var(--dark-text);
  border-radius: 32px;
  margin: 80px 32px;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.process .section-label { color: rgba(255, 255, 255, 0.5); }

.process h2 {
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process .lead { color: var(--dark-text-muted); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--dark-border);
}

.step-num {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.step h3 { color: var(--dark-text); }

.step p {
  font-size: 14px;
  color: var(--dark-text-muted);
  margin-top: 8px;
}

/* ==========================================================================
   Contact + form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  margin-top: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-item-label {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}

.contact-item-value {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item-value:hover { color: var(--accent); }

form { display: grid; gap: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text-muted);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text { font-size: 12px; color: rgba(255, 255, 255, 0.5); }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--dark-text); }

/* ==========================================================================
   Scroll-reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

.hero-title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title-word.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Mobile breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .container { padding: 0 22px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .lead { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding-top: 130px; padding-bottom: 50px; }
  .nav-list { display: none; }
  .menu-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-value { font-size: 26px; }
  .features,
  .services-grid,
  .clients-grid,
  .process-steps { grid-template-columns: 1fr; }
  .process { margin: 48px 16px; padding: 64px 0; border-radius: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; align-items: flex-start; }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-visual {
    max-width: 220px;
    order: 0;
  }

  @keyframes splashLineGrow { to { width: 220px; } }
  .stat-ring { width: 64px; height: 64px; }
  .stat-ring .ring-text { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero-visual { max-width: 180px; }
}

/* ==========================================================================
   Reduced motion preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
