:root {
  --bg: #0f0b18;
  --bg-soft: #f8f7fc;
  --bg-soft-2: #f0eef8;
  --text: #0d0a12;
  --text-soft: #403d4d;
  --text-light: #fcfbfe;
  --muted: #6b6478;
  --muted-2: #8b8698;
  --accent: #7c3aed;
  --accent-2: #6366f1;
  --accent-3: #2dd4bf;
  --line: #e5dff5;
  --line-strong: #d5cceb;
  --card: #ffffff;
  --shadow-1: 0 4px 12px rgba(20, 15, 40, 0.05), 0 1px 2px rgba(20, 15, 40, 0.03);
  --shadow-2: 0 12px 32px rgba(20, 15, 40, 0.1), 0 4px 8px rgba(20, 15, 40, 0.05);
  --shadow-lg: 0 20px 48px rgba(20, 15, 40, 0.15), 0 6px 16px rgba(20, 15, 40, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
}

[data-theme="dark"] {
  --bg-soft: #14131d;
  --bg-soft-2: #1c1a26;
  --text: #f4f2fa;
  --text-soft: #d5d0e6;
  --muted: #b4accb;
  --muted-2: #958faf;
  --line: #332f47;
  --line-strong: #4b4267;
  --card: #1d1b28;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(124, 58, 237, 0.5) var(--bg);
  scrollbar-width: thin;
}
html::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-track {
  background: var(--bg);
}
html::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.5);
  border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.7);
}
body {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-soft-2));
  line-height: 1.86;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: #111; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 1000; }

.text-muted { color: var(--muted); }
.link-arrow {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.link-arrow::after {
  content: " →";
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.link-arrow:hover {
  color: var(--accent);
}
.link-arrow:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.section {
  width: min(1140px, 90vw);
  margin: clamp(72px, 10vw, 108px) auto;
  scroll-margin-top: 110px;
}

.section-divider { position: relative; }
.section-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero {
  min-height: 95vh;
  color: var(--text-light);
  padding: var(--space-3) 6vw var(--space-8);
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.4), transparent 36%),
    radial-gradient(circle at 85% 18%, rgba(99, 102, 241, 0.35), transparent 40%),
    linear-gradient(120deg, #0a0612, #1a0f2e 55%, #120920);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -5% -5% 35%;
  background-image:
    linear-gradient(120deg, rgba(10, 6, 18, 0.72), rgba(10, 6, 18, 0.35) 45%, rgba(10, 6, 18, 0.72)),
    url("profile.jfif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  filter: blur(3px) saturate(1);
  transform: scale(1.06);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 0.5px, transparent 0.5px);
  background-size: 2px 2px;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px;
  padding: 10px 18px;
  margin-bottom: var(--space-4);
  animation: fadeInDown 800ms ease 200ms both;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-testimonial {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-top: var(--space-4);
  backdrop-filter: blur(12px);
}

.hero-testimonial p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  line-height: 1.6;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.1;
  margin: 0 0 var(--space-4);
  animation: fadeInDown 900ms ease 300ms both;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-3); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: var(--space-2); }

.hero-text {
  max-width: 68ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.74;
  animation: fadeInDown 1000ms ease 400ms both;
}

.hero-divider {
  width: 60px;
  height: 4px;
  border-radius: 999px;
  margin: var(--space-4) 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  animation: fadeInDown 1100ms ease 500ms both;
}

.nav {
  position: sticky;
  top: var(--space-2);
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--space-2);
  align-items: center;
  padding: 12px var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(15, 11, 24, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 10px;
  padding: 8px 16px;
  background: rgba(124, 58, 237, 0.08);
  transition: all 240ms ease;
  font-size: 0.95rem;
}

.logo:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.6);
  transform: translateY(-1px);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: var(--space-3);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 240ms ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.theme-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 240ms ease;
  font-size: 1.1rem;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-content {
  max-width: 920px;
  margin-top: clamp(56px, 8vw, 100px);
  position: relative;
  z-index: 1;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, rgba(11, 8, 20, 0.44), rgba(11, 8, 20, 0.12));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; margin: 0 0 var(--space-3); }
.eyebrow.dark { color: var(--muted); }
h1, h2, h3 { letter-spacing: 0.02em; margin: 0; }

.hero-art {
  position: absolute;
  right: 4%;
  top: 8%;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  animation: spin 18s linear infinite;
}

.hero-stamp {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(3px);
}

.hero-divider {
  width: 180px;
  height: 3px;
  border-radius: 999px;
  margin: var(--space-3) 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.hero-cta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
  animation: fadeInDown 1200ms ease 600ms both;
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 14px 28px;
  font-size: 0.95rem;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 240ms ease, background-color 240ms ease, color 240ms ease, border-color 240ms ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.hero-strengths { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-3); }
.hero-strengths span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  font-size: 0.85rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.section-kicker span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(99, 102, 241, 0.06));
  color: var(--accent);
}

.about { display: grid; grid-template-columns: 1.45fr 1fr; gap: var(--space-4); align-items: start; }
.about-copy { padding-top: var(--space-3); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.service-card {
  text-align: center;
  padding: var(--space-3);
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon {
  font-size: 2.4rem;
  display: block;
  margin: 0 auto var(--space-2);
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.15));
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--accent);
}

.experience-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-3);
}
.experience-layout::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), transparent 90%);
}
.timeline-item { position: relative; margin-left: var(--space-4); }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.skills-matrix,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-1);
  padding: var(--space-3);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms ease, border-color 240ms ease, background 240ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}

.card-large { padding: var(--space-4); }

.card-highlight {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.07), rgba(99, 102, 241, 0.03), var(--card));
  border-left: 3px solid var(--accent);
}

ul { margin: 0; padding-left: 20px; }
li { margin-bottom: 6px; }

.matrix-group p { color: var(--text-soft); margin: 0 0 var(--space-2); }
.meter { width: 100%; height: 8px; background: #e8e3f5; border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.menu-toggle {
  display: none;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-media {
  overflow: hidden;
  background: linear-gradient(135deg, #f0eef8, #e8e3f5);
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}

.featured-card:hover .featured-media img {
  transform: scale(1.04);
}

.featured-content {
  padding: var(--space-4);
}

.section-text { color: var(--muted); max-width: 60ch; margin-top: calc(var(--space-2) * -1); }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.lightbox[open] img {
  animation: lightboxZoom 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.photography-header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: var(--space-3);
  align-items: start;
  margin-bottom: var(--space-4);
}

.photography-summary {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.08), rgba(99, 102, 241, 0.04) 50%, var(--card));
}

.photography-summary p {
  margin: 0;
}

.photography-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 110px;
  gap: var(--space-3);
  grid-auto-flow: dense;
}

.photo-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-1);
  cursor: zoom-in;
}

.photo-card figure {
  margin: 0;
  height: 100%;
}

.photo-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 520ms ease, filter 520ms ease;
  filter: blur(8px) saturate(0.98) contrast(1.02);
}

.photo-card img.loaded { filter: blur(0); }
.photo-card:hover img { transform: scale(1.06); }

.photo-card figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(15, 11, 24, 0.05), rgba(15, 11, 24, 0.78));
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photography-grid > .photo-card:nth-child(6n + 1) {
  grid-column: span 6;
  grid-row: span 2;
}

.photography-grid > .photo-card:nth-child(6n + 2) {
  grid-column: span 3;
  grid-row: span 2;
}

.photography-grid > .photo-card:nth-child(6n + 3) {
  grid-column: span 3;
  grid-row: span 1;
}

.photography-grid > .photo-card:nth-child(6n + 4) {
  grid-column: span 4;
  grid-row: span 1;
}

.photography-grid > .photo-card:nth-child(6n + 5) {
  grid-column: span 4;
  grid-row: span 2;
}

.photography-grid > .photo-card:nth-child(6n + 6) {
  grid-column: span 4;
  grid-row: span 1;
}
.project-grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.testimonial-card {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.06), rgba(99, 102, 241, 0.03), var(--card));
}

.testimonial-author {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.cta-band-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(45, 212, 191, 0.08), var(--card));
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-2);
}

.cta-band .section-text {
  margin: 0 auto var(--space-3);
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: none;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-1);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms ease, border-color 240ms ease;
  cursor: zoom-in;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.project-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0eef8, #e8e3f5);
}

.project-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transform: scale(1.02) translateY(var(--parallax, 0px));
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1), filter 520ms ease;
  filter: blur(8px);
}

.project-media img.loaded { filter: blur(0); }

.project-card:hover .project-media img {
  transform: scale(1.08) translateY(var(--parallax, 0px));
}

.project-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  background: rgba(8, 4, 18, 0.88);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
  transform: translateY(120%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}

.project-card:hover .project-overlay { transform: translateY(0); }
.project-card:active .project-overlay { transform: translateY(0); }

.project-body {
  padding: var(--space-4);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: var(--space-2);
  border-top: 2px solid var(--accent);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.meta-row .badge { margin-right: auto; }

.project-no {
  margin-left: var(--space-2);
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}

.badge {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(99, 102, 241, 0.1));
  color: var(--accent);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.year {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.project-body h3 {
  margin-bottom: var(--space-2);
  color: var(--text);
}

.project-body p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.project-body ul {
  margin: var(--space-2) 0 0;
  padding-left: 20px;
}

.project-body li {
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.tools span {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--muted);
  background: rgba(124, 58, 237, 0.04);
  font-weight: 500;
}

.quote { font-style: italic; font-family: "Playfair Display", Georgia, serif; color: var(--text-soft); }
.proof-grid .card:nth-child(2) {
  transform: translateY(10px);
}

.footer {
  margin-top: clamp(72px, 10vw, 140px);
  background: linear-gradient(135deg, #0a0612 0%, #16092a 50%, #0f0a1a 100%);
  color: #fff;
  padding: var(--space-8) var(--space-3);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.15), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.1), transparent 50%);
  pointer-events: none;
}

.footer-inner {
  width: min(900px, 90vw);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: var(--space-3);
}

.footer-text {
  max-width: 70ch;
  margin: var(--space-3) auto var(--space-5);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  transition: all 240ms ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.footer-contact a:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(45, 212, 191, 0.1));
  border-color: rgba(124, 58, 237, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}
.mini-form {
  margin: 0 auto;
  width: min(620px, 100%);
  display: grid;
  gap: var(--space-3);
  text-align: left;
}
.mini-form > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-form input,
.mini-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.mini-form input:focus,
.mini-form textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(255, 255, 255, 0.12);
}
.mini-form input[aria-invalid="true"],
.mini-form textarea[aria-invalid="true"] {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}
.mini-form label { color: #e6e2f4; font-size: 0.9rem; font-weight: 500; }
.mini-form .btn { margin-top: var(--space-2); justify-self: start; }

.form-hint {
  margin: 0;
  color: rgba(230, 226, 244, 0.7);
  font-size: 0.85rem;
}

.form-error {
  display: block;
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 4px;
  animation: slideIn 200ms ease;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius-sm);
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: 500;
  animation: successPop 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: var(--space-2);
}

.form-success::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
  animation: successCheckmark 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(8px);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes successCheckmark {
  0% {
    transform: scaleX(0);
  }
  50% {
    transform: scaleX(1.1);
  }
  100% {
    transform: scaleX(1);
  }
}

/* Premium micro-interactions */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Enhanced focus states for keyboard accessibility */
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Input field enhancement with glow effect */
.mini-form input,
.mini-form textarea {
  transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1),
              background-color 200ms ease,
              box-shadow 200ms ease;
  position: relative;
}

.mini-form input:focus,
.mini-form textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.8);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), inset 0 1px 2px rgba(99, 102, 241, 0.05);
}

/* Placeholder styling for better UX */
.mini-form input::placeholder,
.mini-form textarea::placeholder {
  color: rgba(230, 226, 244, 0.5);
}

/* Text selection styling for premium feel */
::selection {
  background-color: rgba(124, 58, 237, 0.3);
  color: var(--text-light);
}

/* Card entrance animations */
[data-animate-item] {
  animation: fadeInScale 600ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

[data-animate-item]:nth-child(1) { animation-delay: 0ms; }
[data-animate-item]:nth-child(2) { animation-delay: 120ms; }
[data-animate-item]:nth-child(3) { animation-delay: 240ms; }
[data-animate-item]:nth-child(4) { animation-delay: 360ms; }
[data-animate-item]:nth-child(5) { animation-delay: 480ms; }

/* Text reveal animations when in viewport */
.section h2,
.section h3 {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1) 100ms,
              transform 600ms cubic-bezier(0.4, 0, 0.2, 1) 100ms;
}

.section.in-view h2,
.section.in-view h3 {
  opacity: 1;
  transform: translateY(0);
}

.section p:first-of-type {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1) 200ms,
              transform 600ms cubic-bezier(0.4, 0, 0.2, 1) 200ms;
}

.section.in-view p:first-of-type {
  opacity: 1;
  transform: translateY(0);
}

/* Active button state with premium feel */
.btn:active {
  transform: scale(0.98);
}

/* Loading state animation with smooth pulse */
[aria-busy="true"] {
  animation: pulse 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0.8;
}

@keyframes buttonGlow {
  0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

.btn:not([aria-busy="true"]):active {
  animation: buttonGlow 0.6s ease-out;
}

.signature {
  margin: var(--space-4) 0 var(--space-2);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #d9d3ec;
}

/* Enhanced hover state for interactive elements */
a:not(.btn):hover {
  transition: color 200ms ease;
  color: var(--accent);
}

/* Text selection styling */
::selection {
  background-color: var(--accent);
  color: var(--bg-soft);
}

/* Loading animation for images */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

img:not(.loaded) {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite;
}

img.loaded {
  animation: fadeIn 300ms ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scroll-top {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.scroll-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

.lightbox {
  width: min(1000px, 95vw);
  max-width: 95vw;
  max-height: 92vh;
  border: none;
  padding: 0;
  background: transparent;
  position: relative;
  margin: 0;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lightbox::backdrop {
  background: rgba(8, 6, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox img {
  width: auto;
  max-width: min(1000px, 95vw);
  max-height: 88vh;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}
.lightbox-close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.75);
}
.lightbox-close:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
}

[data-animate] { opacity: 0.5; transform: translateY(20px); transition: opacity 560ms ease, transform 560ms ease; }
[data-animate].in-view { opacity: 1; transform: translateY(0); }
[data-animate-item] { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease, transform 520ms ease; }
[data-animate-item].in-view { opacity: 1; transform: translateY(0); }

a, button, .project-card { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .service-grid, .skills-matrix, .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: 1fr; }
  .photography-header { grid-template-columns: 1fr; }
  .photography-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .featured-card, .about, .experience-layout { grid-template-columns: 1fr; }
  .experience-layout::before { display: none; }
  .timeline-item { margin-left: 0; }
  .timeline-item::before { display: none; }
  .hero-art { display: none; }
  .proof-grid .card:nth-child(2) { transform: none; }
}

@media (max-width: 768px) {
  .nav { grid-template-columns: auto auto auto; border-radius: 16px; }
  .menu-toggle {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    border-radius: 10px;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
  }
  .menu-toggle span { width: 18px; height: 2px; background: #fff; transition: transform 240ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    background: rgba(20, 16, 30, 0.95);
    border-radius: 12px;
    padding: var(--space-2);
  }
  .nav-links.open { display: flex; }
  h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .project-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .photography-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .photography-grid > .photo-card {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 4 / 5;
  }
  .project-body { padding: 28px; }
  .hero-cta .btn { width: min(100%, 320px); }
  .hero::before {
    inset: 8% -28% -10% 28%;
    opacity: 0.4;
    filter: blur(4px) saturate(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
