@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Parisienne&display=swap');

:root {
  --ink: #969696;
  --ink-strong: #1a1a1a;
  --bg: #ffffff;
  --hairline: #e6e6e6;
  --pill-bg: #f0f0f0;
  --accent: #b3352f;
  --accent-soft: #f7e9e7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

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

@media (pointer: fine) {
  body {
    cursor: none;
  }
}

/* ---- Custom cursor ---- */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.cursor-dot.visible {
  opacity: 1;
}

.cursor-dot.hover {
  width: 48px;
  height: 48px;
  background: rgba(179, 53, 47, 0.12);
  border: 1px solid var(--accent);
}

@media (pointer: coarse) {
  .cursor-dot {
    display: none;
  }
}

/* ---- Scroll reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cursor-dot {
    display: none;
  }
  body {
    cursor: auto;
  }
}

/* ---- Nav ---- */

.site-nav {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 50;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-nav ul {
  list-style: none;
}

.site-nav li {
  line-height: 1.7;
}

.site-nav a {
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* ---- Hero wordmark ---- */

.hero {
  padding: 220px 32px 80px;
}

.hero h1 {
  font-family: 'Parisienne', cursive;
  font-weight: 400;
  color: var(--accent);
  font-size: clamp(56px, 10vw, 140px);
  line-height: 1.15;
  letter-spacing: 0;
  max-width: 1400px;
}

.hero .sub {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink);
  max-width: 420px;
}

/* ---- Newsletter / contact pill ---- */

.pill {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 50;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 20px 34px;
  font-family: 'Courier Prime', monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(179, 53, 47, 0.28);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pill:hover {
  background: var(--ink-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

/* ---- Text CTA (secondary link) ---- */

.text-cta {
  display: inline-block;
  margin-top: 28px;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-cta:hover {
  color: var(--ink-strong);
  border-color: var(--ink-strong);
}

/* ---- Staggered project grid ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px;
  padding: 0 32px 160px;
}

.grid figure,
.gallery-grid figure {
  grid-column: span 5;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #ececec, #d8d6d2);
  overflow: hidden;
  position: relative;
}

.grid figure.wide {
  aspect-ratio: 16 / 9;
}

.grid figure img,
.gallery-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), filter 0.4s ease;
}

.grid figure:hover img,
.gallery-grid figure:hover img {
  transform: scale(1.06);
}

.grid figure::after,
.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.grid figure:hover::after,
.gallery-grid figure:hover::after {
  opacity: 0.14;
}

.grid figure figcaption,
.gallery-grid figure figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12px;
  color: var(--ink-strong);
  background: rgba(255,255,255,0.85);
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.grid figure:hover figcaption,
.gallery-grid figure:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.grid figure:nth-child(1) { grid-column: 1 / -1; margin-top: 0; }
.grid figure:nth-child(2) { grid-column: 2 / span 5; margin-top: 90px; }
.grid figure:nth-child(3) { grid-column: 7 / span 5; margin-top: 30px; }
.grid figure:nth-child(4) { grid-column: 2 / span 6; margin-top: 140px; }
.grid figure:nth-child(5) { grid-column: 9 / span 4; margin-top: 60px; }
.grid figure:nth-child(6) { grid-column: 3 / span 5; margin-top: 110px; }
.grid figure.wide { grid-column: 1 / -1; margin-top: 0; }

/* ---- Colour break ---- */

.color-break {
  background: var(--accent-soft);
  padding: 100px 32px;
  margin-bottom: 80px;
  text-align: center;
}

.color-break .title {
  font-family: 'Parisienne', cursive;
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 64px);
  line-height: 1.25;
  color: var(--accent);
  max-width: 900px;
  margin: 0 auto;
}

/* ---- Gallery grid (repeating 3-up rhythm) ---- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 0 32px 160px;
}

.gallery-grid figure:nth-child(3n+1) { grid-column: 1 / span 4; margin-top: 0; }
.gallery-grid figure:nth-child(3n+2) { grid-column: 5 / span 4; margin-top: 90px; }
.gallery-grid figure:nth-child(3n+3) { grid-column: 9 / span 4; margin-top: 30px; }

/* ---- Media label / credit ---- */

.media-label {
  font-family: 'Courier Prime', monospace;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin: 64px 0 24px;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.download-badge:hover {
  background: var(--accent);
  color: #fff;
}

.photo-credit {
  margin: 0 32px 160px;
  font-size: 11px;
  color: var(--ink);
  font-style: italic;
}

.secondary-cta-wrap {
  text-align: center;
  margin: -40px 32px 80px;
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: 'Courier Prime', monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.video-frame {
  margin: 0 32px 160px;
  max-width: 1200px;
  background: #000;
}

.video-frame video {
  width: 100%;
  display: block;
}

/* ---- Generic content pages (Biographie / Dates / Contact) ---- */

.page {
  padding: 220px 32px 160px;
  max-width: 900px;
}

.page h1 {
  font-family: 'Parisienne', cursive;
  font-weight: 400;
  color: var(--accent);
  font-size: clamp(42px, 7.5vw, 88px);
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 48px;
}

.page p {
  max-width: 620px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 14px;
}

.page p strong {
  color: var(--ink-strong);
  font-weight: 400;
  font-style: italic;
}

.page-photo {
  max-width: 640px;
  margin: 44px 0;
}

.page-photo img {
  width: 100%;
  display: block;
}

.page-photo figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink);
  font-style: italic;
}

/* ---- Audio tracks ---- */

.audio-list {
  max-width: 640px;
  margin: 40px 0 60px;
  border-top: 1px solid var(--hairline);
}

.audio-track {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.audio-track .track-title {
  display: block;
  color: var(--ink-strong);
  font-style: italic;
  margin-bottom: 10px;
}

.audio-track audio {
  width: 100%;
  height: 32px;
}

.audio-track audio::-webkit-media-controls-panel {
  background-color: var(--pill-bg);
}

/* ---- Dates list ---- */

.dates-list {
  border-top: 1px solid var(--hairline);
  max-width: 720px;
}

.dates-list li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  gap: 24px;
  transition: padding-left 0.25s ease, border-color 0.25s ease;
}

.dates-list li:hover {
  padding-left: 12px;
  border-bottom-color: var(--accent);
}

.dates-list .date {
  color: var(--ink-strong);
  min-width: 140px;
}

.dates-list .venue {
  flex: 1;
}

.dates-list .city {
  color: var(--ink);
}

/* ---- Visual date cards ---- */

.date-cards {
  border-top: 1px solid var(--hairline);
  max-width: 780px;
  list-style: none;
}

.date-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.25s ease, border-color 0.25s ease;
}

.date-card:hover {
  padding-left: 12px;
  border-bottom-color: var(--accent);
}

.date-card .date-block {
  flex-shrink: 0;
  width: 84px;
  text-align: center;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 14px 8px;
  color: var(--accent);
}

.date-card .date-block .day {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}

.date-card .date-block .month {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.date-card .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.date-card .info .weekday {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.date-card .info .event-title {
  color: var(--ink-strong);
  font-size: 16px;
}

.date-card .info .event-place {
  color: var(--ink);
  font-size: 13px;
}

.date-card .ics-btn {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 12px;
}

/* ---- Contact form ---- */

.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-style: italic;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 0;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: var(--ink-strong);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.contact-form button {
  align-self: flex-start;
  background: var(--pill-bg);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.contact-form button:hover {
  background: var(--accent);
  color: #fff;
}

.contact-info {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.contact-info a {
  color: var(--ink-strong);
  border-bottom: 1px solid var(--hairline);
}

.contact-info a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* ---- Site footer ---- */

.site-footer {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 48px 32px 140px;
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}

.site-footer a {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s ease;
}

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

/* ---- Tablet (galerie: 3-up becomes 2-up) ---- */

@media (min-width: 641px) and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 0 24px 120px;
  }
  .gallery-grid figure:nth-child(3n+1),
  .gallery-grid figure:nth-child(3n+2),
  .gallery-grid figure:nth-child(3n+3) {
    grid-column: unset;
    margin-top: 0;
  }
  .gallery-grid figure:nth-child(2n+1) { grid-column: 1 / span 6; }
  .gallery-grid figure:nth-child(2n+2) { grid-column: 7 / span 6; margin-top: 70px; }

  .grid {
    gap: 32px;
    padding: 0 24px 120px;
  }
  .hero {
    padding: 180px 24px 60px;
  }
  .page {
    padding: 180px 24px 120px;
  }
}

/* ---- Footer note (mobile nav spacing safeguard) ---- */

@media (max-width: 640px) {
  .site-nav {
    top: 20px;
    left: 20px;
  }
  .site-footer {
    padding: 40px 20px 140px;
    gap: 24px;
  }
  .hero {
    padding: 240px 20px 60px;
  }
  .page {
    padding: 240px 20px 120px;
  }
  .grid {
    grid-template-columns: 1fr;
    padding: 0 20px 120px;
  }
  .grid figure,
  .grid figure:nth-child(1),
  .grid figure:nth-child(2),
  .grid figure:nth-child(3),
  .grid figure:nth-child(4),
  .grid figure:nth-child(5),
  .grid figure:nth-child(6),
  .grid figure.wide,
  .gallery-grid figure,
  .gallery-grid figure:nth-child(3n+1),
  .gallery-grid figure:nth-child(3n+2),
  .gallery-grid figure:nth-child(3n+3) {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .grid figure.wide {
    aspect-ratio: 4 / 5;
  }
  .color-break {
    padding: 64px 20px;
    margin-bottom: 60px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 120px;
  }
  .media-label {
    margin: 48px 0 18px;
  }
  .photo-credit {
    margin: 0 20px 120px;
  }
  .video-frame {
    margin: 0 20px 120px;
  }
  .pill {
    bottom: 20px;
    left: 20px;
    padding: 16px 26px;
    font-size: 13px;
  }
  .dates-list li {
    flex-direction: column;
    gap: 6px;
  }
  .dates-list li:hover {
    padding-left: 0;
  }
  .date-card {
    flex-wrap: wrap;
    gap: 16px;
  }
  .date-card:hover {
    padding-left: 0;
  }
  .date-card .info {
    order: 1;
  }
  .date-card .ics-btn {
    order: 2;
    margin-left: 96px;
  }
}
