﻿/* =====================================================
   PORTFOLIO — style.css  ·  Warm Blush Edition
   ===================================================== */

/* ─── Design Tokens ─── */
:root {
  /* Palette */
  --bg:           #fdf8f5;
  --surface:      #ffffff;
  --surface-2:    #fef1eb;
  --accent:       #d4588a;
  --accent-light: #fde8f0;
  --accent-glow:  rgba(212, 88, 138, 0.15);
  --accent-hover: #c04478;
  --secondary:    #9b7ce0;
  --text:         #1e0f2c;
  --text-muted:   #7a6882;
  --text-faint:   #e2d5ea;
  --border:       rgba(30, 15, 44, 0.09);
  --border-hover: rgba(212, 88, 138, 0.45);

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(212, 88, 138, 0.07);
  --shadow-md:  0 8px 32px rgba(212, 88, 138, 0.12);
  --shadow-lg:  0 24px 64px rgba(212, 88, 138, 0.18);

  /* Spatial */
  --radius:      20px;
  --radius-sm:   10px;
  --radius-pill: 100px;
  --nav-h:       72px;

  /* Typography */
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ─── Skip Link (Accessibility) ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Section label ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ─── Sections ─── */
.section {
  padding: 120px 0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.btn--ghost:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  background: var(--accent-light);
}

.btn--lg {
  padding: 17px 40px;
  font-size: 1rem;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(253, 248, 245, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(30, 15, 44, 0.06);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--transition);
}

.nav__logo:hover {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}

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

.nav__links a:hover::after {
  width: 100%;
}

.nav__links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav__toggle:hover {
  background: var(--surface-2);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

/* Open state */
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero ─── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 32px 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Soft ambient blobs */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 25% 15%, rgba(212, 88, 138, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 78% 70%, rgba(155, 124, 224, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 85% 10%, rgba(255, 170, 130, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 10% 85%, rgba(212, 88, 138, 0.07) 0%, transparent 50%);
}

/* Subtle dot grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212, 88, 138, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroFadeUp 1s var(--ease) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero__name {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 11vw, 8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.15em;
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 52px;
  letter-spacing: 0.02em;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: heroFadeUp 1s 0.5s var(--ease) both;
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(30, 15, 44, 0.2), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  45%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  55%  { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ─── About ─── */
.about {
  background: var(--bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}

/* Photo column */
.about__photo-col {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.about__photo-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}

/* Decorative corner accent */
.about__photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(212, 88, 138, 0.18) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* Outline offset frame */
.about__photo-wrap::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid var(--accent);
  border-radius: 34px;
  opacity: 0.25;
  pointer-events: none;
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.about__photo-wrap:hover .about__photo {
  transform: scale(1.04);
}

/* Placeholder shown when image is missing/broken */
.about__photo[src="me.jpg"]::before,
.about__photo:not([src])::before {
  content: 'Add your photo here — name the file me.jpg and place it in the portfolio folder.';
}

.about__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 32px;
  background: var(--surface-2);
}

/* Text column */
.about__text-col {
  padding-top: 8px;
}

.about__heading {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--text);
}

.about__heading em {
  font-style: italic;
  color: var(--accent);
}

.about__body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.about__body:last-child {
  margin-bottom: 0;
}

/* Fun facts pills */
.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 36px;
}

.about__fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.about__fact:hover {
  background: var(--accent-light);
  border-color: var(--border-hover);
  color: var(--accent);
}

/* Stats */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.stat:hover {
  border-color: var(--border-hover);
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat__number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.stat__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Work ─── */
.work {
  background: var(--surface-2);
  padding: 120px 0;
}

.work__heading {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 52px;
  color: var(--text);
}

/* 4-col grid ─ 8 cards = 2 even rows */
.work__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.work__card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.work__card:hover,
.work__card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
  outline: none;
}

.work__card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Image wrapper */
.work__card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.work__card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.work__card:hover .work__card-img-wrap img {
  transform: scale(1.07);
}

/* Hover overlay */
.work__card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(212, 88, 138, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}

.work__card:hover .work__card-overlay,
.work__card:focus-visible .work__card-overlay {
  opacity: 1;
}

.work__card-view {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
}

/* Card info */
.work__card-info {
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.work__card-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.work__card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* ─── Contact ─── */
.contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, var(--accent-glow) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 20% 80%, rgba(155, 124, 224, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.contact__heading {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.contact__heading em {
  font-style: italic;
  color: var(--accent);
}

.contact__body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 44px;
}

/* ─── Footer ─── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

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

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 5, 18, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(12px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__stage {
  max-width: min(90vw, 1100px);
  max-height: 76vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
  transition: transform 0.3s var(--ease);
}

.lightbox__stage img {
  width: auto;
  height: auto;
  max-width: min(90vw, 1100px);
  max-height: 76vh;
  object-fit: contain;
  display: block;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox__caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* ─── Scroll-in animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* ─── Responsive — Tablet ─── */
@media (max-width: 960px) {
  .container {
    padding: 0 24px;
  }

  .section {
    padding: 88px 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__photo-col {
    position: static;
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
  }

  .about__photo-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }

  .about__photo-wrap::after {
    border-radius: 50%;
  }

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

  /* (no override needed — already 3 cols) */

  /* 2-col work grid on tablet */
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Responsive — Mobile ─── */
@media (max-width: 600px) {
  :root {
    --nav-h: 60px;
  }

  .nav {
    padding-top: 14px;
    height: calc(var(--nav-h) + 14px);
  }

  .container {
    padding: 0 18px;
  }

  .section {
    padding: 72px 0;
  }

  /* Mobile nav drawer */
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(253, 248, 245, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px 40px;
    gap: 32px;
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 99;
  }

  .nav__links.open {
    transform: translateY(0);
  }

  .nav__links a {
    font-size: 1.1rem;
    color: var(--text);
  }

  .nav__toggle {
    display: flex;
  }

  /* Hero */
  .hero__name {
    letter-spacing: -0.035em;
  }

  /* About stats: single col on very small screens */
  .about__stats {
    grid-template-columns: 1fr;
  }

  /* Work: single col */
  .work__grid {
    grid-template-columns: 1fr;
  }

  /* Lightbox */
  .lightbox {
    padding: 72px 12px 56px;
  }

  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }

  .lightbox__prev,
  .lightbox__next {
    width: 44px;
    height: 44px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ─── Project Modal Panel ─── */
.proj-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.proj-modal.active {
  pointer-events: all;
  opacity: 1;
}

.proj-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 15, 44, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.proj-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  overflow: hidden;
  box-shadow: -12px 0 60px rgba(30, 15, 44, 0.2);
}

.proj-modal.active .proj-modal__panel {
  transform: translateX(0);
}

/* Sticky header */
.proj-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.proj-modal__header-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proj-modal__tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.proj-modal__title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.proj-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.proj-modal__close:hover {
  background: var(--accent-light);
  border-color: var(--border-hover);
  color: var(--accent);
}

.proj-modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollable body */
.proj-modal__body {
  overflow-y: auto;
  flex: 1;
  padding: 40px 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  scroll-behavior: smooth;
}

/* Section sub-label */
.proj-modal__section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.proj-modal__section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Description */
.proj-modal__desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  white-space: pre-line;
}

.proj-modal__desc a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.proj-modal__desc a:hover {
  color: var(--secondary);
}

.proj-modal__desc.is-placeholder {
  font-style: italic;
  opacity: 0.5;
}

/* Image gallery grid */
.proj-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.proj-modal__img-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.proj-modal__img-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.proj-modal__img-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.proj-modal__img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PDF download links */
.proj-modal__pdfs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proj-modal__pdf-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.proj-modal__pdf-link:hover {
  border-color: var(--border-hover);
  background: var(--accent-light);
  color: var(--accent);
  transform: translateX(4px);
}

.proj-modal__pdf-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.proj-modal__pdf-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  border: 1px solid rgba(212, 88, 138, 0.2);
}

/* ─── Work card variants ─── */

/* Cards with no image use a gradient placeholder */
.work__card--no-image .work__card-img-wrap {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work__card--no-image .work__card-placeholder-icon {
  font-size: 2.8rem;
  opacity: 0.4;
  pointer-events: none;
}

/* Coming-soon card is dimmed and non-interactive */
.work__card--coming-soon {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ─── Responsive — proj-modal mobile ─── */
@media (max-width: 600px) {
  .proj-modal__panel {
    max-width: 100%;
  }

  .proj-modal__header {
    padding: 18px 20px;
  }

  .proj-modal__body {
    padding: 28px 20px 56px;
    gap: 32px;
  }

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