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

html, body {
  font-family: 'Lato', sans-serif;
}

body {
  background-color: #f2f2f2;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("assets/img/texture/texturedark.png");
  background-repeat: repeat;
  background-size: 640px 960px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(242,242,242,0.9);
  backdrop-filter: blur(6px);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111111;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #111111;
  text-decoration: none;
}


.nav-left {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: rgba(242,242,242,0.97);
  backdrop-filter: blur(8px);
  border: 1px solid #ddd;
  min-width: 160px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 200;
}

.dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111111;
  text-decoration: none;
  padding: 11px 20px;
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background: #111111;
  color: #f2f2f2;
}


.hero {
  position: relative;
  z-index: 1;
  height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #f2f2f2;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 11vw, 72px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #111111;
}

.hero-sub {
  font-family: 'Lato', sans-serif;
  font-size: clamp(13px, 3.8vw, 16px);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #111111;
  margin-top: 4px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.portfolio {
  position: relative;
  z-index: 1;
  padding: 80px 0 80px;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 52px;
}

.portfolio-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 4.2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #111111;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.portfolio-title svg {
  width: 10px;
  height: 10px;
  opacity: 0.6;
  transition: transform 0.35s ease;
}

.portfolio-title.collapsed svg {
  transform: rotate(-90deg);
}

.portfolio-content {
  overflow: hidden;
  max-height: 5000px;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 1;
}

.portfolio-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.cat-block {
  margin-bottom: 52px;
  padding: 0 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cat-label a {
  text-decoration: none;
}

.cat-label {
  text-align: center;
  margin-bottom: 14px;
}

.cat-label span {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.08em;
  color: #111111;
  border: 1px solid #111111;
  padding: 3px 14px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.cat-label span:hover {
  background: #111111;
  color: #f2f2f2;
}

.grid-single img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.grid-two img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.img-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.img-link img {
  transition: opacity 0.25s ease;
}

.img-link:hover img {
  opacity: 0.85;
}

.about-btn-wrap {
  text-align: center;
  padding: 20px 0 60px;
}

.about-btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #f2f2f2;
  background: #111111;
  border: 1px solid #111111;
  padding: 8px 24px;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.25s, color 0.25s;
}

.about-btn:hover {
  background: #f2f2f2;
  color: #111111;
}

.footer-bar {
  background: #111111;
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

@media (min-width: 768px) {
  .portfolio { padding: 100px 0 100px; }
  .cat-block { padding: 0 40px; max-width: 560px; margin-bottom: 64px; }
}

body {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.page-loaded {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}