:root {
  --ink: #172018;
  --muted: #647064;
  --paper: #f6f7f2;
  --white: #ffffff;
  --forest: #244b31;
  --forest-deep: #102b1b;
  --line: rgba(23, 32, 24, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 64px);
  color: white;
  background: linear-gradient(to bottom, rgba(0,0,0,.38), transparent);
  transition: background .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(16,43,27,.86);
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { color: #8eafd8; font-size: 12px; box-shadow: 7px 0 0 #667da8, 14px 0 0 #b5c3db; border-radius: 50%; margin-right: 12px; }
.nav { display: flex; gap: 26px; font-size: 14px; font-weight: 700; }
.nav a { opacity: .86; }
.nav a:hover { opacity: 1; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0f291b;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,24,14,.72) 0%, rgba(7,24,14,.42) 40%, rgba(7,24,14,.08) 72%),
    linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 42%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 88vw);
  margin: 0 0 clamp(80px, 13vh, 140px) clamp(24px, 7vw, 112px);
  color: white;
}
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}
.eyebrow { color: rgba(255,255,255,.72); }
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 7.2vw, 98px);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero-copy {
  margin: 28px 0 34px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.8;
  color: rgba(255,255,255,.84);
}
.hero-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: .2s ease;
}
.hero-button:hover { background: white; color: var(--forest-deep); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.music-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: white;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: .2s ease;
}
.music-button:hover { background: rgba(255,255,255,.24); }
.music-button[aria-pressed="true"] { background: rgba(255,255,255,.92); color: var(--forest-deep); }
.music-button > span:first-child { font-size: 18px; line-height: 1; }
.scroll-cue {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: 32px;
  z-index: 2;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
}
.section-kicker { color: #748074; }
.intro h2, .gallery-heading h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.intro-copy {
  align-self: end;
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.95;
}

.gallery-section { padding: clamp(74px, 9vw, 132px) clamp(16px, 4vw, 64px) clamp(90px, 10vw, 150px); }
.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto 38px;
  max-width: 1500px;
}
.gallery-heading p:last-child { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.gallery-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: #dfe5dc;
  border-radius: 2px;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.48), transparent 46%);
  opacity: .75;
  transition: opacity .25s ease;
}
.gallery-item span {
  position: absolute;
  left: 18px;
  bottom: 15px;
  z-index: 2;
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.gallery-item:hover img { transform: scale(1.035); filter: saturate(1.04); }
.gallery-item:hover::after { opacity: 1; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(24px, 7vw, 112px);
  background: var(--forest-deep);
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.site-footer p { margin: 0; font-weight: 800; }
.site-footer a { opacity: .72; }

.lightbox {
  width: min(94vw, 1400px);
  max-width: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(6,12,8,.92); backdrop-filter: blur(5px); }
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 94vw;
  max-height: 82vh;
  margin: auto;
  object-fit: contain;
}
.lightbox p { margin: 14px auto 0; max-width: 94vw; text-align: center; font-size: 13px; color: rgba(255,255,255,.72); }
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(0,0,0,.22);
  color: white;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 220px; }
  .gallery-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 600px) {
  .site-header { padding: 17px 18px; }
  .brand { font-size: 14px; }
  .nav { gap: 15px; font-size: 12px; }
  .hero-content { margin-left: 20px; margin-bottom: 78px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(7,24,14,.74), rgba(7,24,14,.26)), linear-gradient(0deg, rgba(0,0,0,.42), transparent 50%); }
  .hero h1 { font-size: clamp(42px, 14vw, 64px); }
  .hero-copy br { display: none; }
  .scroll-cue { display: none; }
  .intro { padding-left: 22px; padding-right: 22px; }
  .gallery-section { padding-left: 10px; padding-right: 10px; }
  .gallery-heading { padding: 0 10px; }
  .gallery-grid { gap: 8px; grid-auto-rows: 180px; }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; }
  .site-footer { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { display: none; }
  .hero { background: url('assets/farm_aerial_poster.jpg') center/cover no-repeat; }
  .gallery-item img { transition: none; }
}
