/* ═══════════════════════════════════════════════════════════
   دکتر محمدرضا نواب — قالب صفحه اصلی
   Premium Legal Personal Website
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy-deep: #0a1628;
  --navy: #122240;
  --navy-mid: #1a3358;
  --teal: #0d4a5a;
  --teal-light: #1a6b7a;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-glow: rgba(201, 168, 76, 0.25);
  --cream: #f8f6f1;
  --cream-dark: #ede9e0;
  --white: #ffffff;
  --text-primary: #0f1c2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --shadow-soft: 0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-medium: 0 8px 40px rgba(10, 22, 40, 0.12);
  --shadow-strong: 0 20px 60px rgba(10, 22, 40, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Vazirmatn', system-ui, sans-serif;
  --font-body: 'Vazirmatn', system-ui, sans-serif;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Decorative Pattern ─── */
.pattern-bg {
  position: relative;
}

.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M30 30c0-11.046 8.954-20 20-20v20H30zM10 30c0 11.046-8.954 20-20 20v-20h20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

body.menu-open .site-header {
  z-index: 1200;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.logo-mark {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  padding: 6px;
  transition: var(--transition);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-header.scrolled .logo-mark {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 6px;
}

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

.logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.logo-title {
  font-size: 0.7rem;
  color: var(--gold-light);
  opacity: 0.85;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-desktop a:hover {
  color: var(--gold-light);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), #b8943f);
  color: var(--navy-deep) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px var(--gold-glow);
  transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--gold-glow);
  color: var(--navy-deep) !important;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 1100;
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}

.nav-mobile a:hover {
  color: var(--gold);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url('../img/2026-07-11%2007.59.47.jpg') center center / cover no-repeat;
  opacity: 0.35;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg-image {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.7) 40%, rgba(10, 22, 40, 0.4) 100%),
    linear-gradient(to top, var(--navy-deep) 0%, transparent 30%);
}

.hero-ornament {
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 50%;
  top: 50%;
  left: -150px;
  transform: translateY(-50%);
  z-index: 1;
}

.hero-ornament::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: 50%;
}

.hero-ornament-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: 50%;
  bottom: -80px;
  right: -60px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 3rem) 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  order: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero-title .gold {
  color: var(--gold);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  max-width: 540px;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.credential-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8943f);
  color: var(--navy-deep);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.hero-visual {
  order: 1;
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-portrait-frame {
  position: relative;
  width: min(320px, 85vw);
  aspect-ratio: 3/4;
}

.hero-portrait-frame::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.4;
}

.hero-portrait-frame::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, var(--teal), var(--navy-mid));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.6;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  z-index: 3;
}

.hero-float-card.top {
  top: 10%;
  left: -10%;
  animation: float 4s ease-in-out infinite;
}

.hero-float-card.bottom {
  bottom: 8%;
  right: -8%;
  animation: float 4s 1s ease-in-out infinite;
}

.float-card-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.float-card-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  animation: fadeInUp 1s 0.6s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}

/* ─── Stats Bar ─── */
.stats-bar {
  background: var(--white);
  padding: 2.5rem 0;
  position: relative;
  z-index: 10;
  margin-top: -2rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--cream-dark);
}

.stat-number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.stat-number .gold {
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ─── Section Common ─── */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-dark {
  background: var(--navy-deep);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  order: -1;
}

/* ─── Contract Scene Animation ─── */
.contract-scene {
  --scene-duration: 14s;
  position: relative;
  aspect-ratio: 4/5;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, #faf7f0 0%, #f3ece0 40%, #ebe3d4 100%);
  box-shadow:
    0 20px 60px rgba(10, 22, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contract-scene:not(.is-playing) * {
  animation-play-state: paused !important;
}

.scene-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-warm-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 220, 150, 0.35) 0%, transparent 70%);
  animation: glowBreathe 6s ease-in-out infinite;
}

.scene-light-ray {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 248, 230, 0.5), transparent);
  transform-origin: top right;
}

.scene-light-ray-1 {
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  clip-path: polygon(100% 0, 40% 0, 0 100%, 100% 100%);
  opacity: 0.6;
}

.scene-light-ray-2 {
  top: 0;
  right: 20%;
  width: 30%;
  height: 80%;
  clip-path: polygon(100% 0, 60% 0, 0 100%, 80% 100%);
  opacity: 0.3;
  animation: glowBreathe 8s 2s ease-in-out infinite;
}

.scene-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  animation: particleDrift var(--scene-duration) ease-in-out infinite;
}

.scene-particle-1 { top: 15%; left: 20%; animation-delay: 0s; }
.scene-particle-2 { top: 30%; left: 70%; animation-delay: -2s; width: 2px; height: 2px; }
.scene-particle-3 { top: 50%; left: 40%; animation-delay: -5s; }
.scene-particle-4 { top: 65%; left: 80%; animation-delay: -8s; width: 2px; height: 2px; }
.scene-particle-5 { top: 25%; left: 55%; animation-delay: -11s; opacity: 0.6; }
.scene-particle-6 { top: 70%; left: 15%; animation-delay: -4s; width: 4px; height: 4px; opacity: 0.3; }

.scene-desk-surface {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(139, 115, 85, 0.12), transparent);
}

.contract-paper {
  position: absolute;
  top: 14%;
  right: 10%;
  left: 10%;
  bottom: 22%;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow:
    0 4px 20px rgba(10, 22, 40, 0.08),
    0 1px 3px rgba(10, 22, 40, 0.04);
  padding: 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  animation: paperSettle var(--scene-duration) ease-in-out infinite;
}

.contract-paper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--cream-dark);
}

.contract-paper-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--navy);
}

.contract-clauses {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contract-clause {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(10, 22, 40, 0.04);
}

.contract-clause span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(18, 34, 64, 0.15), rgba(18, 34, 64, 0.25));
  border-radius: 3px;
  animation: clauseWrite var(--scene-duration) ease-out infinite;
}

.clause-1 span { animation-name: clauseWrite1; }
.clause-2 span { animation-name: clauseWrite2; }
.clause-3 span { animation-name: clauseWrite3; }
.clause-4 span { animation-name: clauseWrite4; }
.clause-5 span { animation-name: clauseWrite5; }
.clause-6 span { animation-name: clauseWrite6; }

.contract-divider {
  height: 1px;
  background: var(--cream-dark);
  margin: 0.75rem 0 0.5rem;
  transform: scaleX(0);
  transform-origin: right;
  animation: dividerShow var(--scene-duration) ease-out infinite;
}

.contract-sign-block {
  position: relative;
  min-height: 44px;
}

.contract-sign-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: signLabelShow var(--scene-duration) ease-out infinite;
}

.contract-signature {
  width: 100%;
  height: 36px;
  color: var(--navy-mid);
}

.signature-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: signDraw var(--scene-duration) ease-in-out infinite;
}

.contract-seal {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  width: 44px;
  height: 44px;
  color: var(--gold);
  opacity: 0;
  transform: scale(2);
  animation: sealStamp var(--scene-duration) cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.contract-seal svg {
  width: 100%;
  height: 100%;
}

.scene-pen {
  position: absolute;
  width: 20px;
  height: 40px;
  color: var(--navy);
  opacity: 0;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  animation: penMove var(--scene-duration) ease-in-out infinite;
}

.scene-pen svg {
  width: 100%;
  height: 100%;
}

.scene-peace {
  position: absolute;
  bottom: 10%;
  left: 8%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.15);
  opacity: 0;
  transform: translateY(10px);
  animation: peaceReveal var(--scene-duration) ease-out infinite;
}

.scene-peace-icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.scene-peace-icon svg {
  width: 100%;
  height: 100%;
}

.peace-check {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: peaceCheckDraw var(--scene-duration) ease-out infinite;
}

.scene-peace-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.scene-caption {
  position: absolute;
  bottom: 4%;
  right: 0;
  left: 0;
  text-align: center;
  height: 1.2rem;
}

.scene-caption-item {
  position: absolute;
  right: 0;
  left: 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0;
  animation: captionCycle var(--scene-duration) ease-in-out infinite;
}

.caption-1 { animation-name: captionCycle1; }
.caption-2 { animation-name: captionCycle2; }
.caption-3 { animation-name: captionCycle3; }

.scene-tea {
  position: absolute;
  top: 8%;
  left: 6%;
  width: 36px;
  height: 36px;
  color: rgba(139, 115, 85, 0.5);
  opacity: 0.7;
  animation: teaSteam var(--scene-duration) ease-in-out infinite;
}

.scene-tea svg {
  width: 100%;
  height: 100%;
}

.steam {
  animation: steamRise 3s ease-in-out infinite;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 1s; }
.steam-3 { animation-delay: 2s; }

/* Scene keyframes — 14s loop */
@keyframes glowBreathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes particleDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translate(-15px, -30px); opacity: 0.4; }
  90% { opacity: 0; }
}

@keyframes paperSettle {
  0%, 3% { transform: translateY(-8px); opacity: 0; }
  6%, 92% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-4px); opacity: 0; }
}

@keyframes clauseWrite1 {
  0%, 8% { width: 0; }
  14%, 92% { width: 85%; }
  100% { width: 0; }
}

@keyframes clauseWrite2 {
  0%, 12% { width: 0; }
  18%, 92% { width: 100%; }
  100% { width: 0; }
}

@keyframes clauseWrite3 {
  0%, 16% { width: 0; }
  22%, 92% { width: 70%; }
  100% { width: 0; }
}

@keyframes clauseWrite4 {
  0%, 20% { width: 0; }
  26%, 92% { width: 95%; }
  100% { width: 0; }
}

@keyframes clauseWrite5 {
  0%, 24% { width: 0; }
  30%, 92% { width: 60%; }
  100% { width: 0; }
}

@keyframes clauseWrite6 {
  0%, 28% { width: 0; }
  34%, 92% { width: 80%; }
  100% { width: 0; }
}

@keyframes dividerShow {
  0%, 34% { transform: scaleX(0); }
  38%, 92% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@keyframes signLabelShow {
  0%, 36% { opacity: 0; }
  40%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes penMove {
  0%, 38% { opacity: 0; top: 30%; left: 75%; transform: rotate(-30deg); }
  42% { opacity: 1; top: 55%; left: 55%; transform: rotate(-45deg); }
  48% { top: 68%; left: 25%; transform: rotate(-50deg); }
  54%, 92% { opacity: 0; top: 75%; left: 15%; transform: rotate(-55deg); }
  100% { opacity: 0; }
}

@keyframes signDraw {
  0%, 44% { stroke-dashoffset: 200; }
  54%, 92% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 200; }
}

@keyframes sealStamp {
  0%, 54% { opacity: 0; transform: scale(2.5); }
  58% { opacity: 1; transform: scale(0.9); }
  62%, 92% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}

@keyframes peaceReveal {
  0%, 62% { opacity: 0; transform: translateY(10px); }
  68%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(6px); }
}

@keyframes peaceCheckDraw {
  0%, 66% { stroke-dashoffset: 30; }
  72%, 92% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 30; }
}

@keyframes captionCycle1 {
  0%, 6% { opacity: 0; transform: translateY(4px); }
  10%, 30% { opacity: 1; transform: translateY(0); }
  34%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes captionCycle2 {
  0%, 34% { opacity: 0; transform: translateY(4px); }
  38%, 58% { opacity: 1; transform: translateY(0); }
  62%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes captionCycle3 {
  0%, 62% { opacity: 0; transform: translateY(4px); }
  66%, 90% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes teaSteam {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

@keyframes steamRise {
  0%, 100% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(-4px); opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .contract-scene *,
  .contract-scene *::before,
  .contract-scene *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .contract-clause span { width: 80% !important; }
  .signature-path { stroke-dashoffset: 0 !important; }
  .contract-seal { opacity: 0.85 !important; transform: scale(1) !important; }
  .scene-peace { opacity: 1 !important; transform: none !important; }
  .scene-pen { display: none; }
  .caption-3 { opacity: 1 !important; }
}

.about-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about-pillars {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.about-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--teal-light));
  transition: height var(--transition);
}

.about-pillar:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateX(-4px);
}

.about-pillar:hover::before {
  height: 100%;
}

.about-pillar-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.about-pillar-icon svg {
  width: 28px;
  height: 28px;
}

.about-pillar-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--navy);
}

.about-pillar-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Services ─── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
}

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

.service-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(201, 168, 76, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition);
}

.service-link:hover {
  gap: 0.75rem;
}

/* ─── Articles ─── */
.articles-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.article-card.featured {
  grid-column: span 1;
}

.article-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.article-card.featured .article-image {
  aspect-ratio: unset;
  height: 280px;
  flex: none;
}

.article-card.featured .article-body {
  padding: 1.5rem;
}

.article-card.featured .article-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.article-card.featured .article-body p {
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.85;
}

.article-image img,
.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s ease;
}

.article-img--featured {
  object-position: center 32%;
}

.article-img--law {
  object-position: center 18%;
}

.article-img--deed {
  object-position: center 22%;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
}

.article-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  transition: color var(--transition);
}

.article-card:hover .article-body h3 {
  color: var(--teal);
}

.article-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 1rem;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.articles-grid .article-card .article-image {
  aspect-ratio: unset;
  height: 180px;
}

/* ─── News ─── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: var(--transition);
  align-items: flex-start;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateX(-4px);
}

.news-date {
  min-width: 64px;
  text-align: center;
  background: rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
}

.news-date-day {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.news-date-month {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

.news-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.news-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.news-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

/* ─── Contact CTA ─── */
.contact-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 1.5rem;
}

.contact-cta::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 50%;
  top: -200px;
  left: -100px;
}

.contact-cta::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: 50%;
  bottom: -150px;
  right: -80px;
}

.contact-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-info-item h4 {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  font-size: 0.95rem;
  color: var(--white);
  margin: 0;
  font-weight: 600;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-name {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
}

.footer-bottom .gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ─── Responsive: Tablet ─── */
@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: block;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Responsive: Desktop ─── */
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero-text {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-portrait-frame {
    width: 380px;
  }

  .hero-float-card.top {
    left: -20%;
  }

  .hero-float-card.bottom {
    right: -15%;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .about-visual {
    order: 0;
  }

  .contract-scene {
    max-width: none;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .articles-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  .article-card.featured {
    display: flex;
    flex-direction: column;
  }

  .article-card.featured .article-image {
    height: 340px;
  }

  .articles-grid .article-card .article-image {
    height: 200px;
  }

  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

@media (min-width: 1280px) {
  .hero-portrait-frame {
    width: 420px;
  }
}
