/* ==========================================================================
   Base
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
}

/* ==========================================================================
   Section backgrounds — warm/cool alternation for visual rhythm
   ========================================================================== */

.bg-hero {
  background: #ffffff;
}

.bg-services {
  background: #fdf9f0;
}

.bg-projects {
  background: #f0f3f8;
}

/* Subtle grain texture for tactile depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ==========================================================================
   Typography — fluid sizing
   ========================================================================== */

.text-hero-name {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.text-hero-role {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.text-hero-bio {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.text-section-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

/* ==========================================================================
   Scroll-triggered reveal animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }

/* ==========================================================================
   Card — elevated surface
   ========================================================================== */

.card {
  background: #ffffff;
  border: 1px solid rgba(8, 28, 62, 0.06);
  box-shadow: 0 1px 3px rgba(8, 28, 62, 0.04);
}

.card:hover {
  border-color: rgba(8, 28, 62, 0.1);
  box-shadow: 0 8px 30px rgba(8, 28, 62, 0.06);
}

/* ==========================================================================
   Card lift on hover
   ========================================================================== */

.card-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
}

/* ==========================================================================
   Social icons
   ========================================================================== */

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   CTA button
   ========================================================================== */

.cta-glow {
  position: relative;
  overflow: visible;
}

.cta-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #d4a017, #b8860b);
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.cta-glow:hover::before {
  opacity: 0.35;
}

/* ==========================================================================
   Photo frame
   ========================================================================== */

.photo-frame {
  position: relative;
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, #081c3e, #d4a017);
  opacity: 0.25;
  filter: blur(10px);
  z-index: -1;
}

/* ==========================================================================
   Project card arrow
   ========================================================================== */

.arrow-move {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .arrow-move {
  transform: translateX(6px);
}

/* ==========================================================================
   Divider
   ========================================================================== */

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(8, 28, 62, 0.08), transparent);
}

/* ==========================================================================
   Accent line under section headings
   ========================================================================== */

.accent-line {
  position: relative;
  display: inline-block;
}

.accent-line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 48px;
  height: 2px;
  background: #d4a017;
  border-radius: 2px;
}

/* ==========================================================================
   Service icon container
   ========================================================================== */

.icon-box {
  background: rgba(8, 28, 62, 0.04);
  border: 1px solid rgba(8, 28, 62, 0.06);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-bg {
  background: #081c3e;
}

/* ==========================================================================
   Accessibility — reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card-lift {
    transition: none;
  }

  .card-lift:hover {
    transform: none;
  }

  .social-icon {
    transition: color 0.25s ease;
  }

  .social-icon:hover {
    transform: none;
  }

  .arrow-move {
    transition: none;
  }

  .cta-glow::before {
    transition: none;
  }
}
