:root {
  --white: #fafafa;
  --black: #111;
  --gray: #666;
  --light-gray: #e8e8e8;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --max-width-sm: 920px;
  --max-width-xs: 820px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background-color: #fafafa;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.container--sm { max-width: var(--max-width-sm); }
.container--xs { max-width: var(--max-width-xs); }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 48px 16px 24px;
  transition: background 0.3s;
}

.nav--scrolled {
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(10px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav__logo {
  width: 76px;
  height: auto;
}

.nav__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link,
.nav__cta {
  font-size: 20px;
  font-weight: 400;
  color: var(--black);
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.nav__link:hover,
.nav__cta:hover {
  background: rgba(0, 0, 0, 0.1);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  height: 100vh;
  position: relative;
  overflow: visible;
}

.hero__hover-zone {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100vh;
  z-index: 5;
  cursor: default;
}

.hero__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  transform: scale(1.1);
}

.hero__image img.hero__img-hover {
  object-position: center top;
  opacity: 0;
}

.hero.is-hovered .hero__img-hover {
  opacity: 1 !important;
  transform: scale(1.1);
}

.hero.is-hovered .hero__img-default {
  animation: none;
  opacity: 0 !important;
  transform: scale(1.1);
}

.hero__text {
  position: absolute;
  z-index: 2;
  bottom: 80px;
  left: 0;
  padding: 0 48px;
  width: 100%;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(100px, 14vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--black);
  position: relative;
  z-index: 2;
}

.hero__title span {
  display: block;
}

.hero__title .hero__title-intro {
  font-size: 0.3em;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-style: italic;
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 0 20px white, 0 0 40px white, 0 0 60px white;
}

.hero__title .hero__title-name {
  display: block;
  position: relative;
  z-index: 3;
  text-shadow: 0 0 20px white, 0 0 40px white, 0 0 60px white;
}

.hero__subtitle {
  margin-top: 40px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 300;
  color: var(--gray);
  max-width: 500px;
  line-height: 1.5;
}

.hero__scroll {
  margin-top: 56px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--gray);
  animation: pulse 2s ease-in-out infinite;
}

.hero__indicator {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  z-index: 4;
}

.hero__flower {
  position: absolute;
  bottom: 50px;
  left: -100px;
  width: 550px;
  height: auto;
  z-index: 0;
  opacity: 0.35;
  transform: rotate(35deg);
}

/* Work Section */
.work {
  position: relative;
  z-index: 2;
  padding: 120px 48px 80px;
  margin-top: 80px;
}

.work__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 80px;
}

.work__label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.work__count {
  font-size: 12px;
  color: var(--gray);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.work__item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  background: var(--light-gray);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: block;
}

.work__item:hover {
  transform: scale(0.98);
}

.work__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work__item:hover img {
  transform: scale(1.05);
}

.work__item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
}

.work__item-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.work__item-category {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.8;
}

/* About Section */
.about-section {
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 70vh;
}

.about-section__image {
  height: 70vh;
  overflow: hidden;
  border-radius: 4px;
}

.about-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
}

.about-section__text {
  max-width: 500px;
}

.about-section__label {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
}

.about-section__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 32px;
}

.about-section__desc {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 16px;
}

/* Footer */
.footer {
  padding: 60px 48px;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.footer__link {
  font-size: 16px;
  color: var(--gray);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--black);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__title span {
  opacity: 0;
  transform: translateY(60px);
  animation: titleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__title .hero__title-intro { animation-delay: 0.2s; }
.hero__title .hero__title-name { animation-delay: 0.4s; }

.hero__subtitle {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}

.hero__scroll {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.hero__image .hero__img-default {
  opacity: 0;
  transform: translateY(30px) scale(1.1);
  animation: heroImgIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero.loaded .hero__img-default {
  animation: none;
  opacity: 1;
  transform: scale(1.1);
}

@keyframes heroImgIn {
  to { opacity: 1; transform: translateY(0) scale(1.1); }
}

@keyframes titleReveal {
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50% { opacity: 0.5; transform: scaleX(0.7); }
}

/* Responsive */
@media (max-width: 991px) {
  .nav { padding: 20px 24px; }
  .container { padding: 0 24px; }
  .work { padding: 80px 24px; }
  .work__grid { grid-template-columns: 1fr 1fr; }

  .about-section { grid-template-columns: 1fr; padding: 80px 24px; gap: 40px; }
  .about-section__image { height: 50vh; }
}

@media (max-width: 767px) {
  .hero__image {
    width: 100%;
    height: 50vh;
    position: relative;
  }

  .hero__hover-zone {
    width: 100%;
    height: 50vh;
  }

  .hero__text {
    max-width: 100%;
    padding: 0 24px 60px;
    position: relative;
    bottom: auto;
  }

  .hero__title {
    font-size: 56px;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
  }

  .hero__indicator { display: none; }
  .hero__flower { display: none; }

  .work__grid { grid-template-columns: 1fr; }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav__menu--open {
    transform: translateX(0);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle--open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
