/* Arman Mahmoudi — black background, Times serif, gold accents.
   Home: the artwork is the full-screen background, name set large and
   static over it (no typing effect). */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #000; color: #ddd;
  font-family: "Times New Roman", Times, serif;
  min-height: 100%;
}
a { color: #555; text-decoration: none; transition: color .2s; }
a:hover { color: #FFC; }

/* ---------- home ---------- */
body.home {
  background: #000 url("Background.png") center center / cover no-repeat fixed;
  min-height: 100dvh;
}
.scrim {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.84) 0%, rgba(0,0,0,.58) 42%, rgba(0,0,0,.18) 74%, rgba(0,0,0,.38) 100%);
}
#container {
  position: relative; z-index: 1;
  width: 100%; max-width: 1280px; margin: 0 auto;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: 48px 6vw;
}
.home-left { text-align: left; }
.name-block { text-align: left; }
.name-block .artist { margin: 0; font-weight: normal; }
.name-block .artist span {
  display: block;
  color: #D9A45B;
  font-size: clamp(38px, 6.5vw, 68px);
  letter-spacing: .28em; line-height: 1.14;
  text-shadow: 0 2px 26px rgba(0,0,0,.85);
}
.name-block .rule {
  width: 72px; height: 1px; background: #D9A45B; opacity: .85;
  margin: 28px 0 18px 4px;
}
.name-block .role {
  color: #E8C88A; font-size: 15px; letter-spacing: .55em;
  text-shadow: 0 1px 14px rgba(0,0,0,.85);
}
.menu { margin-top: 58px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { margin: 0 0 17px 0; font-size: 15px; letter-spacing: .35em; }
.menu a { color: #D5D5D5; text-shadow: 0 1px 12px rgba(0,0,0,.9); }
.menu a:hover { color: #FFC; }
.menu .badge {
  color: #FC6; font-size: 10px; letter-spacing: 2px;
  border: 1px solid #94662D; padding: 2px 6px; margin-left: 12px;
  vertical-align: middle;
}

/* ---------- sub pages ---------- */
nav {
  border-bottom: 1px solid #222;
  padding: 22px 0 14px 0; text-align: center;
}
nav .brand {
  display: block; color: #94662D; font-size: 22px; letter-spacing: 2px; margin-bottom: 12px;
}
nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 30px; padding: 0; margin: 0; }
nav li { font-size: 15px; letter-spacing: 2px; }
nav a { color: #555; }
nav li.active a, nav a:hover { color: #e2b16a; }
.page { max-width: 900px; margin: 0 auto; padding: 44px 22px 60px 22px; }
.page h1 {
  color: #BC823A; font-weight: normal; font-size: 30px;
  letter-spacing: 3px; margin: 0 0 26px 0;
}
.page p { font-size: 18px; line-height: 1.7; color: #ccc; }
.page .muted { color: #777; }

/* ---------- works ---------- */
.works-section { margin-bottom: 56px; }
.works-section h2 {
  color: #BC823A; font-weight: normal; font-size: 22px;
  letter-spacing: 3px; margin: 0 0 6px 0;
}
.works-section .yr { color: #777; letter-spacing: 2px; font-size: 15px; margin-bottom: 20px; }
.works-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px;
}
.works-grid figure { margin: 0; }
.works-grid img {
  width: 100%; height: 300px; object-fit: contain; display: block;
  border: 1px solid #333; cursor: pointer; background: #0a0a0a;
}
.works-grid figcaption {
  color: #999; letter-spacing: 2px; font-size: 13px; margin-top: 8px; text-align: center;
}
.works-single { text-align: center; }
.works-single img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border: 1px solid #333; cursor: pointer; background: #0a0a0a;
}
.works-single .cap { color: #999; letter-spacing: 2px; margin-top: 14px; font-size: 15px; }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.94); cursor: zoom-out;
}
.lightbox img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  max-width: 94%; max-height: 94%; object-fit: contain;
}

footer { text-align: center; color: #555; font-size: 14px; padding: 26px 0 20px 0; letter-spacing: 1px; }

@media (max-width: 700px) {
  html, body { overflow-x: hidden; }

  /* home on mobile: background fills the screen, name and menu over it */
  body.home { background-attachment: scroll; }
  .scrim {
    background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.38) 45%, rgba(0,0,0,.78) 100%);
  }
  #container {
    min-height: 100dvh; align-items: center; justify-content: center;
    padding: 44px 20px 36px 20px; text-align: center;
  }
  .home-left { width: 100%; text-align: center; }
  .name-block { text-align: center; }
  .name-block .artist span {
    font-size: clamp(30px, 9.5vw, 42px);
    letter-spacing: .22em; padding-left: .22em;
  }
  .name-block .rule { margin: 24px auto 16px auto; }
  .name-block .role { font-size: 12px; letter-spacing: .45em; padding-left: .45em; }
  .menu { margin-top: 46px; text-align: center; }
  .menu li { margin: 0 0 15px 0; font-size: 14px; letter-spacing: .3em; }

  /* sub pages on mobile ONLY: menu moves to the bottom of the page,
     desktop keeps the menu at the top */
  body:not(.home) { display: flex; flex-direction: column; min-height: 100dvh; }
  .page { order: 1; width: 100%; padding: 36px 20px 40px 20px; }
  .page h1 { font-size: 26px; letter-spacing: 2px; }
  nav {
    order: 2; margin-top: auto; width: 100%;
    border-bottom: none; border-top: 1px solid #222;
    padding: 18px 10px 14px 10px;
  }
  footer { order: 3; }
  nav .brand { font-size: 19px; letter-spacing: 1px; margin-bottom: 14px; }
  nav ul { gap: 10px 16px; padding: 0 2px; }
  nav li { font-size: 13px; letter-spacing: 1px; white-space: nowrap; }

  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .works-grid img { height: 210px; }
}
