/* ── Danilo Formosa — portfolio ─────────────────────────────── */
:root {
  --bg: #e7e5df;
  --ink: #31302b;
  --muted: #7b7a72;
  --title: #53544a;
  --line: #c9c7bf;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wordmark {
  font-family: 'Bitter', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #262521;
  white-space: nowrap;
}
.wordmark sup {
  font-size: 0.38em;
  font-weight: 400;
  vertical-align: super;
  margin-left: 2px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 42px;
  background: var(--bg);
}
.site-header .wordmark { font-size: 27px; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.site-nav a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #55544c;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.site-nav a:hover { color: #262521; }
.site-nav a.active { color: #262521; border-bottom-color: #262521; }

/* ── Home (splash) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.split-photo {
  position: relative;
  overflow: hidden;
  background: #222;
}
.split-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  position: relative;
}
.split-content .wordmark { font-size: clamp(30px, 3.4vw, 44px); }
.home-tagline {
  margin-top: 34px;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: #3c3b35;
}
.home-role {
  margin-top: 18px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--muted);
}
.btn {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 26px;
  border: 1px solid #262521;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: #262521;
  transition: background 0.3s, color 0.3s;
}
.btn:hover { background: #262521; color: var(--bg); }
.home-social {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}
.home-social a { opacity: 0.55; transition: opacity 0.3s; }
.home-social a:hover { opacity: 1; }

/* ── Grid pages (work / eventi) ── */
.tiles { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.tile {
  position: relative;
  display: block;
  height: 84vh;
  min-height: 420px;
  overflow: hidden;
  background: #1c1b18;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.6s;
}
.tile:hover img { transform: scale(1.045); }
.tile-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.tile-preview.playing { opacity: 1; }
.tile-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(24, 23, 19, 0.28);
  opacity: 0;
  transition: opacity 0.45s;
}
.tile:hover .tile-label { opacity: 1; }
.tile-label h2 {
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: #f2f1ec;
  text-align: center;
  padding: 0 20px;
}
.tile-label p {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  color: rgba(242, 241, 236, 0.8);
}

.page-intro {
  max-width: 760px;
  margin: 26px auto 34px;
  padding: 0 40px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.9;
  color: #4d4c45;
}

/* ── Project page ── */
.hero {
  height: 72vh;
  min-height: 380px;
  overflow: hidden;
  background: #1c1b18;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 42px; }

.project-head { padding: 54px 0 8px; }
.project-head h1 {
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--title);
}
.project-head .subtitle {
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-head .description {
  margin-top: 22px;
  max-width: 860px;
  font-size: 15px;
  line-height: 1.85;
  color: #45443e;
}

.videos { padding: 44px 0 90px; display: flex; flex-direction: column; gap: 54px; }
.video-item video {
  width: 100%;
  background: #000;
}
.video-item figcaption {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 22px;
}
.reel-grid .video-item video { aspect-ratio: 9 / 16; object-fit: cover; }

.back-link {
  display: inline-block;
  margin: 4px 0 60px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.back-link:hover { color: var(--ink); }

/* ── About / Contact ── */
.page-plain { max-width: 1160px; margin: 0 auto; padding: 40px 42px 100px; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}
.about-grid img { width: 100%; }
.about-text h1, .contact h1 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--title);
}
.about-text p {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.95;
  color: #45443e;
}
.contact {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact p {
  margin-top: 24px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.9;
  color: #45443e;
}

/* ── Footer ── */
.site-footer {
  padding: 60px 40px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.site-footer a { opacity: 0.55; transition: opacity 0.3s; }
.site-footer a:hover { opacity: 1; }
.site-footer small {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Mobile ── */
@media (max-width: 860px) {
  .site-header { flex-direction: column; gap: 16px; padding: 22px 20px 18px; }
  .site-nav { justify-content: center; gap: 14px 18px; }
  .split { grid-template-columns: 1fr; }
  .split-photo { height: 48vh; }
  .split-content { min-height: 52vh; padding: 48px 24px 90px; }
  .tile { height: 54vh; min-height: 300px; }
  .tile-label { opacity: 1; background: linear-gradient(to top, rgba(24,23,19,0.55), rgba(24,23,19,0.05) 55%); justify-content: flex-end; padding-bottom: 30px; }
  .hero { height: 44vh; min-height: 260px; }
  .container, .page-plain { padding-left: 22px; padding-right: 22px; }
  .reel-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
