:root {
  color-scheme: dark;
  --bg: #050719;
  --surface: rgba(15, 24, 46, 0.9);
  --surface-strong: rgba(10, 14, 27, 0.95);
  --text: #f8fafc;
  --muted: #a5b4fc;
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.15);
  --border: rgba(148, 163, 184, 0.18);
  font-family: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, rgba(88, 80, 236, 0.14), transparent 30%),
    linear-gradient(180deg, #03050d 0%, #070a16 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button, a {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background-image: url('https://www.idiap.ch/~spano/AboutPageAssets/images/vincent-spano-land-art.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 17, 0.01), rgba(4, 6, 17, 0.9));
}

.hero__content {
  position: relative;
  max-width: 900px;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 0.85rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
}

.hero__subtitle {
  margin: 1.5rem auto 2rem;
  max-width: 720px;
  color: #d1d5db;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}

.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section__label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.section h2,
.section h3 {
  margin: 0 0 1rem;
  line-height: 1.1;
}

.section p {
  margin: 0 0 1rem;
  color: #cbd5e1;
  line-height: 1.75;
}

.section--split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 25px 80px rgba(4, 7, 20, 0.2);
}

.profile-photo {
  width: 100%;
  border-radius: 24px;
  margin-bottom: 1.5rem;
}

.card__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.card li {
  padding-left: 1rem;
  position: relative;
  color: #e2e8f0;
}

.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.section--info {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
}

.section--projects {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.projects-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.project-slider {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 620px;
}

.slider-track {
  position: relative;
  min-height: 620px;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 620px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(4, 7, 20, 0.28);
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  opacity: 0;
  visibility: hidden;
}

.slide.active,
.slide.prev,
.slide.next {
  opacity: 1;
  visibility: visible;
}

.slide.active {
  z-index: 2;
}

.slide.prev,
.slide.next {
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 100%;
  background: #0b1221;
  filter: saturate(1.05) contrast(1.02);
}

.slide__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 9, 26, 0.95) 70%);
}

.slide__eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-size: 0.75rem;
}

.slide h3 {
  margin: 0 0 0.75rem;
  color: #fff;
}

.slider__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider__button:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(124, 58, 237, 0.95);
}

.slider__button--prev {
  left: 1rem;
}

.slider__button--next {
  right: 1rem;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  padding: 1.75rem;
}

.contact-card__title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: #f8fafc;
}

.section--large {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: #8b95b8;
}

@media (max-width: 900px) {
  .section--split,
  .section--info,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 1rem;
    background-attachment: scroll;
  }

  .hero__subtitle {
    font-size: 1rem;
  }
}
