:root {
  --paper: #f5f0e6;
  --paper-2: #ebe4d5;
  --ink: #1c1a17;
  --ink-2: #5c574e;
  --line: rgba(28, 26, 23, 0.16);
  --accent: #a8322a;
  --cream: #fff8ec;
  --night: #0d1826;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, .nav__brand, .contact__phone {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

.label {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--accent);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 56px);
  color: var(--cream);
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.nav.is-solid {
  background: rgba(13, 24, 38, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav__brand { font-size: 22px; }
.nav__links { display: flex; gap: 34px; font-size: 15px; }
.nav__links a { opacity: 0.86; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__phone { justify-self: end; font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--night);
  color: var(--cream);
}
.hero__img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 62% center;
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.04);
  animation: hero-zoom 2.4s var(--ease) both;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 24, 0.86) 0%, rgba(8, 14, 24, 0.5) 42%, rgba(8, 14, 24, 0) 72%),
    linear-gradient(0deg, rgba(8, 14, 24, 0.55) 0%, rgba(8, 14, 24, 0) 40%);
}
.hero__inner {
  position: relative;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 56px) clamp(56px, 10vh, 110px);
}
.hero__eyebrow, .hero__lead, .hero__sub, .hero__actions, .hero__title {
  animation: rise 1.1s var(--ease) both;
}
.hero__eyebrow { animation-delay: 0.15s; margin: 0 0 18px; font-size: 13px; letter-spacing: 0.32em; opacity: 0; }
.hero__title {
  animation-delay: 0.3s;
  font-size: clamp(60px, 10.5vw, 150px);
  line-height: 1.05;
  letter-spacing: 0.04em;
}
.hero__lead { animation-delay: 0.5s; margin: 22px 0 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.3; }
.hero__sub { animation-delay: 0.65s; margin: 12px 0 0; font-size: 17px; opacity: 0; letter-spacing: 0.08em; }
.hero__actions { animation-delay: 0.8s; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 30px;
  font-size: 16px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--cream); color: var(--ink); }
.btn--solid:hover { background: #fff; }
.btn--ghost { border: 1px solid rgba(255, 248, 236, 0.6); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(255, 248, 236, 0.1); }

@keyframes hero-zoom { from { transform: translate3d(0, var(--parallax, 0px), 0) scale(1.12); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.sections { padding: clamp(84px, 12vw, 150px) 0 clamp(40px, 6vw, 80px); }
.sections__head h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.2; }
.sections__head { margin-bottom: clamp(36px, 6vw, 72px); }

.entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry__index {
  align-self: start;
  padding-top: 8px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.entry__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 540px;
  background: var(--paper-2);
}
.entry__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.entry__media--top img { object-position: 50% 22%; }
.entry:hover .entry__media img,
.entry:focus-visible .entry__media img { transform: scale(1.05); }
.entry__body h3 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.2; margin-bottom: 16px; }
.entry__body p { margin: 0 0 28px; max-width: 32em; color: var(--ink-2); }
.entry__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-size: 17px;
  letter-spacing: 0.06em;
}
.entry__link span { transition: transform 0.4s var(--ease); }
.entry:hover .entry__link { color: var(--accent); border-color: var(--accent); }
.entry:hover .entry__link span { transform: translateX(8px); }

/* ---------- contact ---------- */
.contact { background: var(--paper-2); padding: clamp(84px, 12vw, 150px) 0; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.contact__text h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.2; }
.contact__text p { margin: 18px 0 0; color: var(--ink-2); max-width: 26em; }
.contact__phone {
  display: inline-block;
  margin-top: 36px;
  font-size: clamp(30px, 4.2vw, 52px);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.contact__phone:hover { color: var(--accent); border-color: var(--accent); }
.contact__qr { margin: 0; justify-self: center; text-align: center; }
.contact__qr img { width: min(280px, 68vw); padding: 16px; background: #fff; box-shadow: 0 20px 50px rgba(28, 26, 23, 0.14); }
.contact__qr figcaption { margin-top: 16px; font-size: 15px; color: var(--ink-2); letter-spacing: 0.12em; }

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 26px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--accent); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .entry { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; }
  .entry__index { grid-column: 1; grid-row: 1 / span 2; }
  .entry__media { grid-column: 2; aspect-ratio: 16 / 10; max-height: none; }
  .entry__body { grid-column: 2; }
  .entry__media img { object-position: 50% 35%; }
  .entry__media--top img { object-position: 50% 20%; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__qr { justify-self: start; text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .hero__img { object-position: 72% center; }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(8, 14, 24, 0.9) 0%, rgba(8, 14, 24, 0.35) 60%, rgba(8, 14, 24, 0.2) 100%);
  }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__img { transform: none !important; }
}
