:root {
  --ink: #0c1410;
  --ink-2: #15201a;
  --mist: #e8efe8;
  --fog: #b7c4b8;
  --amber: #d4a24a;
  --amber-soft: #f0d9a8;
  --line: rgba(232, 239, 232, 0.14);
  --font-display: "Instrument Serif", "Songti SC", "Noto Serif SC", serif;
  --font-body: "Outfit", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--mist);
  background: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--amber-soft); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: .5rem .8rem;
  z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

/* —— top —— */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.1rem, 4vw, 2.4rem);
  background: linear-gradient(180deg, rgba(12, 20, 16, 0.72), transparent);
  backdrop-filter: blur(2px);
}

.mark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a { opacity: 0.86; transition: opacity .2s ease, color .2s ease; }
.nav a:hover { opacity: 1; color: var(--amber-soft); }
.nav__cta {
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: 1 !important;
}

/* —— hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.1rem, 4vw, 2.4rem) clamp(2.4rem, 6vh, 3.5rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 20, 16, 0.35) 0%, rgba(12, 20, 16, 0.22) 38%, rgba(12, 20, 16, 0.88) 100%),
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(212, 162, 74, 0.12), transparent 60%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero__brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 14vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: #f4f7f2;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(18px);
}
.hero__line {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: var(--amber-soft);
  opacity: 0;
  transform: translateY(14px);
}
.hero__sub {
  margin: 0 0 1.4rem;
  max-width: 28rem;
  font-size: 1.02rem;
  color: var(--fog);
  opacity: 0;
  transform: translateY(12px);
}
.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  opacity: 0;
  transform: translateY(10px);
}

html.is-ready .hero__brand,
html.is-ready .hero__line,
html.is-ready .hero__sub,
html.is-ready .hero__acts {
  animation: rise 0.85s cubic-bezier(.2, .8, .2, 1) forwards;
}
html.is-ready .hero__line { animation-delay: 0.12s; }
html.is-ready .hero__sub { animation-delay: 0.22s; }
html.is-ready .hero__acts { animation-delay: 0.32s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes hero-drift {
  to { transform: scale(1.08) translate3d(-1.2%, 0.6%, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid {
  background: var(--amber);
  color: var(--ink);
}
.btn--solid:hover { background: #e0b35a; }
.btn--ghost {
  border: 1px solid rgba(232, 239, 232, 0.28);
  background: rgba(12, 20, 16, 0.28);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--amber-soft); color: var(--amber-soft); }

/* —— sections —— */
.works,
.about {
  padding: clamp(3.2rem, 8vh, 5rem) clamp(1.1rem, 4vw, 2.4rem);
  max-width: 72rem;
  margin: 0 auto;
}

.sec {
  margin-bottom: 1.6rem;
  max-width: 34rem;
}
.sec h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.sec p {
  margin: 0;
  color: var(--fog);
  font-size: 0.98rem;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.list li { border-bottom: 1px solid var(--line); }
.list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  padding: 1.05rem 0.15rem;
  transition: padding-left .2s ease, color .2s ease;
}
.list a:hover {
  padding-left: 0.45rem;
  color: var(--amber-soft);
}
.list__name {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.list__desc {
  font-size: 0.9rem;
  color: var(--fog);
  text-align: right;
}
.list a:hover .list__desc { color: inherit; }

.about {
  padding-bottom: clamp(4rem, 10vh, 6rem);
}
.about__body {
  margin: 0;
  max-width: 36rem;
  font-size: 1.08rem;
  color: #c9d4ca;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.1rem, 4vw, 2.4rem) 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: 0.86rem;
}
.foot a:hover { color: var(--amber-soft); }

@media (max-width: 640px) {
  .nav a:not(.nav__cta) { display: none; }
  .list a {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .list__desc { text-align: left; }
  .hero__media img { object-position: 62% 35%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img { animation: none; }
  html.is-ready .hero__brand,
  html.is-ready .hero__line,
  html.is-ready .hero__sub,
  html.is-ready .hero__acts {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
