@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --page-bg: #080b12;
  --surface: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text-main: #f4f1ea;
  --text-muted: #b5bcc8;
  --text-soft: #7f8896;
  --accent: #e6be78;
  --font-body: 'Manrope', sans-serif;
  --font-display: 'Playfair Display', serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(230, 190, 120, 0.14), transparent 35%),
    linear-gradient(180deg, #090c14 0%, #080b12 100%);
}

.font-display {
  font-family: var(--font-display);
}

.page-shell {
  isolation: isolate;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

.bg-orb-one {
  top: 8rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(230, 190, 120, 0.22);
}

.bg-orb-two {
  top: 30rem;
  right: -6rem;
  width: 20rem;
  height: 20rem;
  background: rgba(114, 140, 255, 0.16);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.glass-card,
.glass-panel,
.service-card,
.work-card,
.contact-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.glass-card {
  border-radius: 1.5rem;
  padding: 1.1rem;
}

.stat-value {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.section-shell {
  margin: 0 auto;
  max-width: 80rem;
  padding: 0 1.5rem 5rem;
}

.about-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, 6rem);
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/background.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 42%;
  opacity: 0.76;
  filter: saturate(1.02) brightness(1.12) contrast(1.01);
}

.about-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 18, 0.28), rgba(8, 11, 18, 0.18)),
    radial-gradient(circle at top, rgba(230, 190, 120, 0.02), transparent 45%);
}

.about-section > * {
  position: relative;
  z-index: 1;
}

.about-section .work-card,
.about-section .service-card {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  color: #fff;
}

.section-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.glass-panel,
.service-card,
.contact-card {
  border-radius: 1.75rem;
  padding: 1.5rem;
}

.contact-form {
  max-width: 44rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-soft);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(230, 190, 120, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(230, 190, 120, 0.12);
}

.media-trigger {
  position: relative;
  display: block;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.media-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 190, 120, 0.35);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.media-trigger video,
.media-trigger img {
  display: block;
}

.media-trigger video.video-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 6, 11, 0.72);
  backdrop-filter: blur(14px);
}

.media-modal.is-open {
  display: flex;
}

.media-modal__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.media-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1200px);
  max-height: 92vh;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.75rem;
  background: rgba(10, 14, 22, 0.95);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.media-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.media-modal__content {
  width: 100%;
  height: 100%;
  max-height: 92vh;
  background: #05070c;
}

.media-modal__content img,
.media-modal__content video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 92vh;
  object-fit: contain;
  background: #05070c;
}

.works-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.works-shell {
	max-width: 112rem;
	padding-inline: clamp(1.5rem, 3vw, 3rem);
}

.works-filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.works-filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 190, 120, 0.35);
  color: #fff;
}

.works-filter-btn.is-active {
  border-color: rgba(230, 190, 120, 0.6);
  background: linear-gradient(135deg, rgba(230, 190, 120, 0.3), rgba(114, 140, 255, 0.18));
  color: #fff;
}


.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.works-item {
  width: 100%;
}

.works-item.is-hidden {
  display: none;
}

.works-mini-grid,
.works-mini-grid,
.works-photo-grid,
.works-small-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.works-mini-grid--tight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.works-small-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.works-graphic-group {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .works-small-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .works-small-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.works-graphic-group-title {
  margin-bottom: 1rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Inline toast for contact form submissions */
.form-toast {
  position: fixed;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(230,190,120,0.95), rgba(114,140,255,0.95));
  color: #000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  font-weight: 700;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.form-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Footer improvements */
.site-footer {
  margin-top: 4rem;
}
.footer-social .social-link {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.03);
  transition: background 160ms ease, transform 160ms ease;
}
.footer-social .social-link:hover {
  background: rgba(230,190,120,0.12);
  transform: translateY(-3px);
}
.back-to-top {
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.back-to-top:hover {
  background: rgba(255,255,255,0.03);
}

.works-gallery-group {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
}

@media (min-width: 768px) {
  .works-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .works-item--graphics {
    grid-column: span 7;
  }
  .works-item--videos {
    grid-column: span 5;
  }
  .works-item--photos {
    grid-column: 1 / -1;
  }
  .works-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .works-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .works-item--graphics {
    grid-column: span 6;
  }
  .works-item--videos {
    grid-column: span 6;
  }
  .works-item--photos {
    grid-column: 1 / -1;
  }
  .works-photo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.works-shell.is-filtered .works-grid {
  grid-template-columns: 1fr;
}

.works-shell.is-filtered .works-item {
  grid-column: 1 / -1 !important;
}

.works-shell.is-filtered .works-item--photos .works-photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.school-name {
  color: #fff;
  font-weight: 700;
}

.work-card {
  min-height: 18rem;
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(230, 190, 120, 0.18), transparent 42%);
}

.work-card-large {
  min-height: 24rem;
}

.skill-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(230, 190, 120, 0.22), rgba(114, 140, 255, 0.14));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.skill-pill:nth-child(12n + 1) { background: linear-gradient(135deg, rgba(230, 190, 120, 0.35), rgba(255, 138, 92, 0.18)); }
.skill-pill:nth-child(12n + 2) { background: linear-gradient(135deg, rgba(114, 140, 255, 0.34), rgba(93, 214, 183, 0.18)); }
.skill-pill:nth-child(12n + 3) { background: linear-gradient(135deg, rgba(255, 116, 145, 0.34), rgba(230, 190, 120, 0.16)); }
.skill-pill:nth-child(12n + 4) { background: linear-gradient(135deg, rgba(93, 214, 183, 0.32), rgba(114, 140, 255, 0.16)); }
.skill-pill:nth-child(12n + 5) { background: linear-gradient(135deg, rgba(255, 174, 86, 0.34), rgba(255, 116, 145, 0.16)); }
.skill-pill:nth-child(12n + 6) { background: linear-gradient(135deg, rgba(162, 123, 255, 0.34), rgba(230, 190, 120, 0.18)); }
.skill-pill:nth-child(12n + 7) { background: linear-gradient(135deg, rgba(255, 198, 88, 0.35), rgba(93, 214, 183, 0.16)); }
.skill-pill:nth-child(12n + 8) { background: linear-gradient(135deg, rgba(92, 159, 255, 0.34), rgba(255, 116, 145, 0.16)); }
.skill-pill:nth-child(12n + 9) { background: linear-gradient(135deg, rgba(255, 145, 77, 0.34), rgba(162, 123, 255, 0.16)); }
.skill-pill:nth-child(12n + 10) { background: linear-gradient(135deg, rgba(93, 214, 183, 0.28), rgba(230, 190, 120, 0.2)); }
.skill-pill:nth-child(12n + 11) { background: linear-gradient(135deg, rgba(255, 116, 145, 0.3), rgba(92, 159, 255, 0.16)); }
.skill-pill:nth-child(12n + 12) { background: linear-gradient(135deg, rgba(230, 190, 120, 0.3), rgba(114, 140, 255, 0.18)); }

@media (max-width: 1023px) {
  .nav-panel {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: rgba(9, 12, 20, 0.95);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  }

  .nav-panel.is-open {
    display: flex;
  }
}