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

:root {
  --bg: #050509;
  --bg-alt: #0b0612;
  --accent: #a855f7;
  --accent-soft: rgba(168, 85, 247, 0.22);
  --accent-strong: #7c3aed;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-glass: rgba(148, 163, 184, 0.35);
  --card-bg: rgba(15, 23, 42, 0.8);
  --card-bg-soft: rgba(15, 23, 42, 0.6);
  --nav-bg: rgba(3, 7, 18, 0.8);
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.65);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 180ms ease-out;
  --transition-med: 240ms ease;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.9), var(--bg));
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
}

/* APP SHELL */
.app-shell {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: linear-gradient(
    to bottom,
    rgba(3, 7, 18, 0.92),
    rgba(3, 7, 18, 0.7),
    transparent
  );
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, #ffffff, transparent 55%),
    radial-gradient(circle at 100% 100%, var(--accent), #000);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.9);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #e5e7eb;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  position: relative;
  font-size: 0.86rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast),
    transform 120ms ease-out;
}

.nav-link:hover {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid rgba(216, 180, 254, 0.5);
}

.nav-cta {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.3), transparent 50%),
    rgba(15, 23, 42, 0.9);
}

.nav-cta.active {
  border-color: rgba(216, 180, 254, 0.85);
}

/* NAV TOGGLE (MOBILE) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.22rem;
  background: transparent;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* PAGE LAYOUT */
.page {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* SECTIONS */
.section {
  margin-bottom: 2.5rem;
}

.section-header {
  margin-bottom: 1.4rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem;
}

.section-title.big {
  font-size: 2rem;
}

.section-subtitle {
  margin: 0;
  max-width: 560px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* HERO */
.hero {
  margin-top: 0.6rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.8rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.hero-title {
  font-size: 2.1rem;
  line-height: 1.18;
  margin: 0;
}

.hero-title span {
  background: linear-gradient(120deg, #ffffff, var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 26rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.7);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.meta-dot.purple {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.9);
}

/* HERO PHOTO */
.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.photo-frame {
  width: 260px;
  height: 260px;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 15rem;
}

/* OVERVIEW GRID */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.overview-card {
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1rem;
}

.card-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.mini-list {
  margin: 0.2rem 0 0.3rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mini-list li {
  margin-bottom: 0.15rem;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: none;
}

.card-link span {
  transform: translateY(1px);
}

/* WORKS PREVIEW */
.works-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  padding: 1rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-header h3 {
  margin: 0;
  font-size: 0.98rem;
}

.work-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.8);
}

.section-footer-link {
  margin-top: 1.1rem;
}

/* WORKS PAGE GRID AND FILTERS */
.filter-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
}

.filter-chip {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform 100ms ease-out;
}

.filter-chip:hover {
  background: rgba(148, 163, 184, 0.25);
  color: var(--text);
}

.filter-chip.active {
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid rgba(216, 180, 254, 0.8);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* STORY LAYOUT AND TIMELINE */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.4rem;
}

.story-intro {
  padding: 1.2rem 1.2rem 1rem;
}

.story-intro h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.story-intro p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.highlight {
  color: var(--accent);
}

/* TIMELINE */
.timeline {
  padding: 1.1rem 1.2rem 1rem;
}

.timeline-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.timeline-header p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-list {
  margin-top: 1rem;
  position: relative;
  padding-left: 0.5rem;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.45;
}

.timeline-item {
  position: relative;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  padding: 0.35rem 0.75rem 0.4rem 2.2rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
}

.timeline-item[open] {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.1),
    rgba(15, 23, 42, 0.95)
  );
  border-color: rgba(216, 180, 254, 0.7);
}

.timeline-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.timeline-item summary::-webkit-details-marker {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.9);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
}

.timeline-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.timeline-meta h3 {
  margin: 0;
  font-size: 0.9rem;
}

.timeline-body {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.timeline-footer {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* CONTACT LAYOUT */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 1.4rem;
}

.contact-card {
  padding: 1.3rem 1.3rem 1.1rem;
}

.contact-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

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

input,
textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0.55rem 0.65rem;
  font-size: 0.86rem;
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

input:focus,
textarea:focus {
  border-color: rgba(216, 180, 254, 0.9);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.6);
  background: rgba(15, 23, 42, 0.97);
}

textarea {
  resize: vertical;
}

/* CONTACT SIDE */
.contact-side {
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-side h3 {
  margin: 0 0 0.2rem;
  font-size: 0.96rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.6);
  font-size: 0.78rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.contact-link {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  text-decoration: none;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.85);
  transition: background var(--transition-fast), color var(--transition-fast),
    transform 120ms ease-out;
}

.contact-link:hover {
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-1px);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-med), border var(--transition-med),
    transform 120ms ease-out, box-shadow var(--transition-med);
}

.primary-btn {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #0b0612;
  border-color: rgba(250, 250, 250, 0.1);
  box-shadow: 0 18px 40px rgba(88, 28, 135, 0.85);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(88, 28, 135, 0.95);
}

.ghost-btn {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.6);
}

.ghost-btn:hover {
  background: rgba(15, 23, 42, 1);
}

.subtle-btn {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(148, 163, 184, 0.4);
}

.subtle-btn:hover {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text);
}

.full-width {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
}

.pill.accent {
  border-color: rgba(216, 180, 254, 0.9);
  background: var(--accent-soft);
  color: var(--text);
}

.pill.neutral {
  background: rgba(15, 23, 42, 0.9);
}

.pill.tiny {
  font-size: 0.72rem;
  padding: 0.22rem 0.55rem;
}

/* GLASS HELPERS */
.glass {
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.glass-soft {
  border-radius: var(--radius-lg);
  background: var(--card-bg-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(16px);
}

.glass-strong {
  border-radius: 32px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.24), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(248, 250, 252, 0.12);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 0.85rem 1.5rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* FADE ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 460ms ease-out, transform 460ms ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 80ms;
}

.delay-2 {
  transition-delay: 160ms;
}

.delay-3 {
  transition-delay: 240ms;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .page {
    padding-inline: 1.1rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr);
    padding: 1.4rem;
  }

  .hero-photo {
    order: -1;
  }

  .photo-frame {
    width: 220px;
    height: 220px;
  }

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

  .story-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    padding-inline: 1.1rem;
  }

  .nav-links {
    position: absolute;
    right: 1.1rem;
    top: 3.4rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem;
    border-radius: 16px;
    background: rgba(3, 7, 18, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    min-width: 9rem;
    transform-origin: top right;
    transform: scale(0.96) translateY(-6px);
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .overview-grid,
  .works-preview-grid,
  .works-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page {
    padding-inline: 1rem;
  }
}

@media (max-width: 480px) {
  .photo-frame {
    width: 190px;
    height: 190px;
  }

  .section {
    margin-bottom: 2rem;
  }

  .section-title.big {
    font-size: 1.6rem;
  }

  .hero-inner {
    padding: 1.1rem;
  }

  .overview-card,
  .work-card,
  .contact-card,
  .contact-side,
  .timeline,
  .story-intro {
    padding-inline: 0.95rem;
  }

  /* FORM-STATUS */
  .form-status {
    min-height: 1.1rem;
    font-size: 0.78rem;
    margin: 0.1rem 0 0.4rem;
    color: var(--text-muted);
  }

  .form-status.pending {
    color: #e5e7eb;
  }

.form-status.success {
    color: #4ade80;
  }

.form-status.error {
    color: #f97373;
  }
}
