:root {
  color-scheme: light;
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-soft: #f1eee8;
  --text: #181818;
  --muted: #666666;
  --subtle: #9a948b;
  --line: rgba(24, 24, 24, 0.1);
  --accent: #c8b08b;
  --accent-dark: #9f855f;
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --page-x: clamp(24px, 6vw, 120px);
  --section-y: clamp(96px, 13vw, 180px);
  --shadow: 0 24px 80px rgba(24, 24, 24, 0.08);
  --font: Inter, Geist, "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.is-focus {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px var(--page-x);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 0.4s ease, background 0.4s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-soft);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

.brand-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.navbar a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.45s ease, background 0.45s ease, transform 0.45s ease;
}

.navbar a:hover,
.navbar a.active {
  color: var(--text);
  background: var(--surface-soft);
}

.page {
  padding: 0 var(--page-x);
}

.section {
  padding: var(--section-y) 0;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: center;
  padding: clamp(72px, 9vw, 120px) 0 var(--section-y);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display {
  max-width: 980px;
  margin: 0;
  font-size: clamp(46px, 8vw, 112px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.06;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.75;
}

.muted {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.45s ease, background 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 1px 0 rgba(24, 24, 24, 0.02);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 64%, var(--line));
  box-shadow: var(--shadow);
}

.image-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.image-frame img,
.tone-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(0.96) brightness(1.03);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.image-frame:hover img {
  transform: scale(1.035);
  filter: saturate(0.78) contrast(0.98) brightness(1.03);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 48px var(--page-x);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-footer a:hover {
  color: var(--text);
  border-color: var(--accent-dark);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(18px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1120px, 100%);
  max-height: 84vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  filter: saturate(0.72) contrast(0.96) brightness(1.03);
  box-shadow: var(--shadow);
}

.lightbox button {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

@media (max-width: 920px) {
  :root {
    --page-x: 22px;
    --section-y: 96px;
  }

  .site-header {
    align-items: flex-start;
    gap: 18px;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .brand-note {
    display: none;
  }

  .navbar {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .navbar::-webkit-scrollbar {
    display: none;
  }

  .navbar a {
    min-height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
