/* ========================================
   Base Styles & Design Tokens
   Defines the core color palette, typography, and layout utilities.
   ======================================== */
:root {
  --color-bg: #18303c;
  --color-surface: #1f2d37;
  --color-text: #edf1f4;
  --color-muted: #9fb3c1;
  --color-border: rgba(255, 255, 255, 0.14);
  --color-accent: #4d6b7d;
  --color-accent-strong: #3c5462;
  --shadow-lg: 0 30px 60px -30px rgba(4, 10, 16, 0.7);
  --shadow-md: 0 18px 40px -24px rgba(4, 10, 16, 0.55);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --header-height: 72px;
  --motion-duration-sm: 220ms;
  --motion-duration-md: 620ms;
  --motion-duration-lg: 1200ms;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #12222b;
    --color-surface: #152630;
    --color-text: #f7fafc;
    --color-muted: #92a8b6;
    --color-border: rgba(255, 255, 255, 0.18);
    --shadow-lg: 0 30px 60px -30px rgba(2, 6, 10, 0.75);
    --shadow-md: 0 18px 40px -24px rgba(2, 6, 10, 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

p {
  margin: 0 0 1rem 0;
  color: var(--color-muted);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem 0;
  font-family: "Poppins", "Inter", -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

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

/* ========================================
   Motion System
   Provides reusable animation utilities and reveal transitions.
   ======================================== */
.reveal-on-scroll {
  --reveal-x: 0px;
  --reveal-y: 18px;
  --reveal-scale: 0.98;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale));
  transition: opacity var(--motion-duration-md) var(--motion-ease),
    transform var(--motion-duration-md) var(--motion-ease);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

[data-animate='stagger'] > * {
  --reveal-x: 0px;
  --reveal-y: 18px;
  --reveal-scale: 0.98;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale));
  transition: opacity var(--motion-duration-md) var(--motion-ease),
    transform var(--motion-duration-md) var(--motion-ease);
  transition-delay: calc(var(--stagger-index, 0) * 90ms);
}

[data-animate='stagger'].is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

[data-reveal='fade-up'] {
  --reveal-y: 18px;
}

[data-reveal='fade-down'] {
  --reveal-y: -18px;
}

[data-reveal='slide-left'] {
  --reveal-x: -24px;
  --reveal-y: 0;
}

[data-reveal='slide-right'] {
  --reveal-x: 24px;
  --reveal-y: 0;
}

[data-reveal='zoom-in'] {
  --reveal-scale: 0.94;
  --reveal-y: 12px;
}

@keyframes gradientDrift {
  0% {
    transform: translate3d(-6%, -8%, 0) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(6%, -2%, 0) scale(1.1);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(-4%, 6%, 0) scale(1.05);
    opacity: 0.7;
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0.15deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(-0.35deg);
  }
}

@keyframes accentPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.05);
  }
}

@keyframes heroGlowDrift {
  0% {
    transform: translate3d(-2%, -3%, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.03);
    opacity: 0.65;
  }
  100% {
    transform: translate3d(-2%, -3%, 0) scale(1);
    opacity: 0.5;
  }
}

/* ========================================
   Intro Video Overlay
   Displays an optional splash video before revealing the site.
   ======================================== */
.intro-video {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: transparent;
  transition: opacity var(--motion-duration-sm) var(--motion-ease),
    visibility var(--motion-duration-sm) var(--motion-ease);
}

.intro-video[data-state='hidden'] {
  opacity: 0;
}

.intro-video__media {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  background: #000;
  opacity: 1;
  transition: opacity var(--motion-duration-sm) var(--motion-ease);
}

.intro-video__art {
  background: transparent;
}

.intro-video[data-state='hidden'] .intro-video__media {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .intro-video {
    display: none !important;
  }
}

:root[data-intro-hidden='true'] .intro-video {
  display: none !important;
}

/* ========================================
   Header & Navigation
   Provides a sticky site header with responsive navigation.
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: saturate(180%) blur(12px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--motion-duration-sm) var(--motion-ease),
    box-shadow var(--motion-duration-sm) var(--motion-ease),
    border-color var(--motion-duration-sm) var(--motion-ease);
}

.site-header[data-scrolled='false'],
.site-header:not([data-scrolled]) {
  background: rgba(24, 48, 60, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header[data-scrolled='true'] {
  background: rgba(17, 34, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: transparent;
  }

  .site-header[data-scrolled='false'],
  .site-header:not([data-scrolled]) {
    background: rgba(14, 29, 38, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-header[data-scrolled='true'] {
    background: rgba(10, 22, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.65);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.logo-img-wrapper {
  display: inline-flex;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 18px 32px -22px rgba(5, 12, 18, 0.65);
}

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

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
  transform-origin: center;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 600;
}

.nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 900;
  transform: translateX(100%);
  transition: transform 220ms ease;
  background: rgba(17, 34, 42, 0.96);
  padding: calc(var(--header-height) + 1rem) 2rem 2rem;
  max-width: 240px;
}

.nav[data-open="true"] {
  transform: translateX(0);
  background: transparent;
  box-shadow: none;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 200ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent);
}

.nav-toggle {
  position: relative;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  cursor: pointer;
  transition: all 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--color-accent);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform 200ms ease, opacity 200ms ease;
  content: "";
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
}

.nav-toggle-bar::before {
  transform: translateY(-6px);
}

.nav-toggle-bar::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: rotate(-90deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar,
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  background: #ffffff;
}

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: var(--color-accent);
  box-shadow: var(--shadow-md);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px -24px rgba(77, 107, 125, 0.6);
}

/* ========================================
   Hero Section
   Establishes the opening experience with CTA buttons.
   ======================================== */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(34, 56, 69, 0.6), rgba(17, 32, 41, 0.85)),
    linear-gradient(225deg, rgba(7, 12, 16, 0.9), rgba(7, 12, 16, 0.45));
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% 10%;
  background: radial-gradient(circle at 20% 20%, rgba(77, 107, 125, 0.45), rgba(5, 9, 12, 0));
  animation: heroGlowDrift 22s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 40% -20% -30%;
  background: radial-gradient(circle at 70% 50%, rgba(52, 82, 100, 0.35), rgba(5, 9, 12, 0));
  animation: heroGlowDrift 28s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

.hero-domain-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-domain-track {
  display: flex;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 14vw, 8rem);
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--color-accent);
  opacity: 0.12;
  animation: domainMarquee 24s linear infinite;
}

.hero-domain-track span {
  display: inline-flex;
  align-items: center;
  padding-right: 2.5rem;
}

.hero-domain-loop {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.hero-domain-track--reverse {
  animation-direction: reverse;
}

.hero-domain-track--alt {
  animation-direction: normal;
}

@keyframes domainMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.3333%);
  }
}


.hero-content {
  position: relative;
  display: grid;
  gap: 2.5rem;
  z-index: 2;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
}

.hero-text {
  font-size: 1.05rem;
  max-width: 540px;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.65rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-strong);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--color-text);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero-card {
  position: relative;
  padding: 1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(53, 83, 100, 0.45), rgba(12, 22, 28, 0.25));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle, rgba(77, 107, 125, 0.4), rgba(77, 107, 125, 0));
  animation: accentPulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-card-body {
  position: relative;
  padding: 2.5rem;
  border-radius: calc(var(--radius-lg) - 1px);
  background: rgba(23, 39, 48, 0.92);
  z-index: 1;
  backdrop-filter: blur(10px);
}

@media (prefers-color-scheme: dark) {
  .hero-card-body {
    background: rgba(17, 30, 38, 0.92);
  }
}

.hero-card-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.hero-card-text {
  color: var(--color-muted);
}

.hero-list {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--color-text);
  font-weight: 500;
}

/* ========================================
   About Section
   Highlights core value proposition and impact metrics.
   ======================================== */
.about {
  padding: 4.5rem 0;
}

.about-inner {
  display: grid;
  gap: 2rem;
}

.about-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.about-card p {
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}

.about-stats dt {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.about-stats dd {
  margin: 0;
  color: var(--color-muted);
}

/* ========================================
   Business Highlight
   Mirrors the about card but anchors it to the right.
   ======================================== */
.business-highlight {
  padding: 3rem 0 4.5rem;
}

.business-highlight-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.business-highlight-card {
  max-width: 520px;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.business-highlight-card p {
  font-size: 1.05rem;
}

.business-stats {
  margin: 0;
  max-width: 520px;
}

.business-stats dt {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ========================================
   Business Slider
   Highlights case studies with a simple carousel.
   ======================================== */
.business-slider {
  padding: 0 0 5rem;
}

.business-slider-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.business-slider-heading h3 {
  margin-bottom: 0;
  max-width: 520px;
}

.slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 0;
  will-change: transform;
  transition: transform var(--motion-duration-md) var(--motion-ease);
}

.slider-slide {
  flex: 0 0 100%;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.slide-copy h4 {
  margin-top: 0;
}

.slide-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.8rem;
}

.slide-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  max-height: 280px;
  position: relative;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-media--zoom img {
  transform: scale(1.15);
}

.slide-media--zoom-strong img {
  transform: scale(1.45);
}

.slide-media-shadow {
  position: absolute;
  top: 16px;
  left: -24px;
  width: 90%;
  height: auto;
  opacity: 0.5;
  transform: scale(1.05);
  filter: blur(1px);
  pointer-events: none;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.slider-btn:hover,
.slider-btn:focus-visible {
  background: var(--color-accent);
  color: #fff;
}

.slider-progress {
  font-weight: 600;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.slider-progress span:first-child {
  color: var(--color-text);
}

.slider-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .slider-slide {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  .business-highlight-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }

  .business-stats,
  .business-highlight-card {
    flex: 1;
  }

  .business-highlight-card {
    margin-left: auto;
  }
}

/* ========================================
   Work Section
   Displays the project grid with simple filtering.
   ======================================== */
.work {
  padding: 6rem 0;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.work-filters {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--color-muted);
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-btn.is-active {
  border-color: transparent;
  background: rgba(77, 107, 125, 0.18);
  color: var(--color-accent);
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.work-grid {
  display: grid;
  gap: 1.75rem;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px -34px rgba(20, 32, 40, 0.65);
}

.project-figure {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(53, 83, 100, 0.35), transparent);
}

.project-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 1.75rem;
  display: grid;
  gap: 0.65rem;
}

.project-content p {
  margin: 0;
  font-size: 0.98rem;
}

.project-tags {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(77, 107, 125, 0.85);
}

.project-card[hidden] {
  display: none;
}

/* ========================================
   Contact Section
   Encourages collaboration and gathers inquiries via mailto form.
   ======================================== */
.contact {
  padding: 6rem 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/websites.svg');
  background-size: 120%;
  background-position: -20% center;
  background-repeat: no-repeat;
  background-color: transparent;
  opacity: 0.15;
  filter: saturate(0.7);
  transform: translateX(-8%) rotate(0deg) scale(0.85);
  transform-origin: center;
  z-index: -1;
}

.contact-inner {
  display: grid;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.contact-links {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-links a {
  font-weight: 500;
  color: var(--color-accent);
}

.contact-email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.contact-email[data-copied='true']::after {
  content: 'Copied!';
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(17, 30, 38, 0.45);
  white-space: nowrap;
}

.social-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background: rgba(19, 33, 41, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(7, 12, 16, 0.45);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 26px rgba(4, 7, 10, 0.5);
}

.social-link--linkedin {
  background: linear-gradient(135deg, rgba(30, 54, 65, 0.95), rgba(19, 36, 45, 0.95));
  color: #d8e8f1;
}

.social-link--instagram {
  background: linear-gradient(135deg, rgba(38, 30, 39, 0.95), rgba(30, 24, 34, 0.9));
  color: #f0dacf;
}

.contact-form {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.5rem;
}

.form-field {
  display: grid;
  gap: 0.65rem;
}

.form-field label {
  font-weight: 600;
  color: var(--color-text);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--color-muted);
}

.checkbox-group input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: rgba(19, 33, 41, 0.85);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(77, 107, 125, 0.25);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #f43f5e;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.08);
}

.form-field.has-error label {
  color: #f43f5e;
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  margin: 0;
}

.form-status[data-state='success'] {
  color: #16a34a;
}

.form-status[data-state='error'] {
  color: #f43f5e;
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(53, 83, 100, 0.3);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge.quote {
  background: rgba(9, 16, 22, 0.4);
  color: var(--color-text);
  font-style: italic;
}

.email-shortcuts {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.email-shortcuts a {
  color: var(--color-muted);
  text-decoration: underline;
}

.email-shortcuts a:hover {
  color: var(--color-accent);
}

/* ========================================
   Footer
   Closes the experience with utility navigation.
   ======================================== */
.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer p {
  margin: 0;
  color: var(--color-text);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-accent);
}

.back-to-top::after {
  content: "↑";
  font-size: 0.85rem;
}

/* ========================================
   Layout Enhancements
   Responsive grid adjustments for larger viewports.
   ======================================== */
@media (min-width: 640px) {
  .hero-content {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }

  .hero-card-body {
    padding: 3rem;
  }

  .about-inner {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
  }

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

  .contact-inner {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }
}

@media (min-width: 900px) {
  .site-header {
    background: rgba(24, 48, 60, 0.85);
  }

  .nav {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    max-width: none;
  }

  .nav-list {
    flex-direction: row;
    gap: 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero {
    padding-top: 8rem;
  }

  .section-heading {
    margin-bottom: 3rem;
  }

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

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ========================================
   Accessibility & Motion
   Respects user settings for reduced motion.
   ======================================== */
@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;
  }
  .reveal-on-scroll,
  [data-animate='stagger'] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
