:root {
  --paper: #f4f0e7;
  --paper-light: #fbf8f1;
  --paper-deep: #e8e0d2;
  --ink: #292825;
  --muted: #746f67;
  --line: rgba(63, 58, 50, .18);
  --shadow: rgba(66, 56, 44, .14);
  --blue: #7d94a2;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; overflow-x: clip; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 4%, rgba(255,255,255,.92), transparent 26rem),
    linear-gradient(118deg, rgba(255,255,255,.45), transparent 42%),
    var(--paper);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .26;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, input, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Iowan Old Style", "Songti SC", "STSong", serif; font-weight: 400; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.45rem 3.2vw;
  color: rgba(42,40,36,.7);
  font-size: .62rem;
  letter-spacing: .12em;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(244,240,231,.82), rgba(244,240,231,0));
}
.brand { font-size: .78rem; letter-spacing: .52em; text-decoration: none; color: var(--ink); }
.quiet-entry { justify-self: end; border-bottom: 1px solid rgba(41,40,37,.35); padding-bottom: .22rem; text-decoration: none; }

.section { position: relative; min-height: 100svh; padding: clamp(6.5rem, 12vh, 9rem) clamp(1.3rem, 6vw, 7.5rem); }
.hero { display: grid; grid-template-columns: minmax(320px, .84fr) minmax(560px, 1.16fr); align-items: center; gap: clamp(2rem, 5vw, 6rem); }
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.hero h1 { margin-bottom: 1.7rem; font-size: clamp(3rem, 5.25vw, 5.85rem); line-height: 1.12; letter-spacing: -.03em; }
.hero-copy > p { max-width: 36rem; margin-bottom: 2.2rem; color: #57524b; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.9; }
.primary-link, .primary-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 50px;
  border: 1px solid rgba(46,43,38,.35);
  padding: .85rem 1.25rem;
  background: rgba(255,253,247,.52);
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.primary-link svg { width: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.primary-link:hover, .primary-link:focus-visible, .primary-button:hover, .primary-button:focus-visible { transform: translateY(-2px); background: rgba(255,255,255,.86); box-shadow: 0 18px 42px rgba(66,56,44,.1); }

.life-arrangement { position: relative; min-height: min(72vh, 720px); isolation: isolate; }
.life-arrangement::before { content: ""; position: absolute; inset: 5% 2% 8%; z-index: -2; border: 1px solid rgba(78,72,63,.12); box-shadow: inset 0 0 0 8px rgba(207,203,194,.16); }
.life-piece { position: absolute; margin: 0; background: var(--paper-light); box-shadow: 0 28px 75px var(--shadow); }
.life-piece img { display: block; width: 100%; height: 100%; object-fit: cover; border: 10px solid rgba(252,249,242,.92); }
.piece-object { z-index: 3; right: 0; top: 5%; width: 62%; aspect-ratio: 1.35; transform: rotate(1.2deg); }
.piece-life { z-index: 2; left: 2%; bottom: 9%; width: 49%; aspect-ratio: 1.35; transform: rotate(-1.8deg); }
.piece-creation { z-index: 1; right: 9%; bottom: 2%; width: 48%; aspect-ratio: 1.35; transform: rotate(.5deg); opacity: .84; }
.life-light { position: absolute; z-index: -1; left: 18%; top: 20%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.96), rgba(255,250,231,.55) 40%, transparent 72%); filter: blur(20px); animation: breathe 8s ease-in-out infinite; }
.arrangement-note { position: absolute; z-index: 5; left: 4%; top: 12%; padding: 1.1rem 1.25rem; background: rgba(248,245,237,.72); box-shadow: 0 18px 50px rgba(66,56,44,.08); color: #5e5952; font-family: "Iowan Old Style", "Songti SC", serif; font-size: .86rem; line-height: 1.8; }
@keyframes breathe { 50% { opacity: .72; transform: scale(1.035); } }

.belief { display: grid; place-items: center; }
.belief::before { content: ""; position: absolute; inset: 14% 10%; background: radial-gradient(ellipse, rgba(255,255,255,.9), rgba(255,252,243,.35) 58%, transparent 76%); filter: blur(18px); }
.belief-paper { position: relative; width: min(1040px, 92vw); padding: clamp(3rem, 8vw, 7.5rem); background: rgba(250,247,240,.78); box-shadow: 0 35px 95px rgba(65,55,43,.13); }
.belief-paper h2 { max-width: 850px; margin-bottom: 2rem; font-size: clamp(2.8rem, 5.6vw, 5.6rem); line-height: 1.12; }
.belief-paper p { margin-bottom: 2rem; color: #4f4a43; font-family: "Iowan Old Style", "Songti SC", serif; font-size: clamp(1.45rem, 2.4vw, 2.25rem); line-height: 1.8; }
.belief-paper small { color: var(--muted); letter-spacing: .05em; }

.experience-door { display: grid; place-items: center; text-align: center; overflow: hidden; }
.door-light { position: absolute; width: min(62vw, 800px); aspect-ratio: 1.7; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.98), rgba(251,244,221,.58) 42%, transparent 72%); filter: blur(14px); }
.door-light::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 16%; height: 1px; background: linear-gradient(to right, transparent, rgba(94,114,126,.5), transparent); box-shadow: 0 -8px 30px rgba(139,164,178,.25); }
.door-copy { position: relative; z-index: 2; width: min(780px, 92vw); }
.door-copy h2 { margin-bottom: 1.4rem; font-size: clamp(3rem, 5vw, 5rem); line-height: 1.16; }
.door-copy p { max-width: 40rem; margin: 0 auto 2rem; color: #5a554e; font-size: 1.08rem; line-height: 1.9; }
.door-copy small { display: block; margin-top: 1.3rem; color: var(--muted); font-size: .68rem; }

.beyond { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(3rem, 8vw, 10rem); }
.beyond-heading h2 { margin-bottom: 1.4rem; font-size: clamp(3.2rem, 6vw, 6.2rem); }
.beyond-heading p { max-width: 31rem; color: #59544d; font-size: 1.04rem; line-height: 1.9; }
.beyond-field { position: relative; min-height: 650px; }
.beyond-field::before { content: ""; position: absolute; inset: 10% 7%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.92), rgba(255,251,240,.34) 54%, transparent 76%); filter: blur(12px); }
.beyond-path { position: absolute; width: 72%; padding: 2rem 2.3rem 2.4rem; border-top: 1px solid var(--line); background: linear-gradient(100deg, rgba(250,247,239,.9), rgba(250,247,239,.28)); }
.beyond-path span { color: var(--muted); font-size: .68rem; letter-spacing: .12em; }
.beyond-path h3 { margin: 1.1rem 0 0; font-size: clamp(1.75rem, 2.6vw, 2.75rem); line-height: 1.35; }
.path-remember { left: 1%; top: 5%; transform: rotate(-.6deg); }
.path-understand { right: 0; top: 36%; transform: rotate(.4deg); }
.path-act { left: 11%; bottom: 2%; transform: rotate(-.2deg); }

.invitation { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(3rem, 9vw, 11rem); }
.invitation-copy h2 { margin-bottom: 1.4rem; font-size: clamp(3rem, 5vw, 5.2rem); line-height: 1.16; }
.invitation-copy > p { max-width: 34rem; color: #57524b; font-size: 1.04rem; line-height: 1.85; }
.privacy-copy { font-size: .78rem !important; color: var(--muted) !important; }
.invitation-form, .local-note { width: min(680px, 100%); padding: clamp(2rem, 5vw, 4.5rem); background: rgba(250,247,240,.83); box-shadow: 0 32px 90px rgba(67,57,44,.13); }
.invitation-form { display: grid; }
.invitation-form > label:not(.consent-row) { margin-top: 1.35rem; color: var(--muted); font-size: .74rem; letter-spacing: .05em; }
.invitation-form > label:first-child { margin-top: 0; }
.invitation-form input[type="text"], .invitation-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(51,47,41,.28); border-radius: 0; padding: .75rem 0; background: transparent; outline: 0; resize: vertical; }
.invitation-form input:focus, .invitation-form textarea:focus { border-bottom-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.consent-row { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; margin-top: 1.5rem; color: #5c574f; font-size: .78rem; line-height: 1.65; }
.consent-row input { margin-top: .25rem; accent-color: #738b99; }
.field-error { min-height: 1.2rem; margin: .35rem 0 0; color: #7f4f45; font-size: .72rem; }
.invitation-form .primary-button { justify-self: start; margin-top: 1rem; }
.local-note { outline: 0; }
.local-note > span { color: var(--muted); font-size: .68rem; letter-spacing: .12em; }
.local-note h3 { margin: 1.2rem 0 1.4rem; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.18; }
.local-note p { color: #5a554e; line-height: 1.85; }
.text-button { border: 0; border-bottom: 1px solid rgba(42,40,36,.3); padding: .45rem 0; background: transparent; cursor: pointer; }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 3.2vw; border-top: 1px solid var(--line); color: rgba(57,53,46,.5); font-size: .6rem; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.75,.25,1); }
.reveal.is-visible { opacity: 1; transform: none; }
[hidden] { display: none !important; }

@media (max-width: 1040px) {
  .hero, .beyond, .invitation { grid-template-columns: 1fr; }
  .hero { align-content: center; padding-top: 8rem; }
  .hero-copy { max-width: 780px; }
  .life-arrangement { min-height: 620px; }
  .beyond-heading { max-width: 650px; }
  .beyond-field { width: min(800px, 100%); margin: 0 auto; }
  .invitation-copy { max-width: 680px; }
  .invitation-form, .local-note { justify-self: center; }
}

@media (max-width: 600px) {
  .site-header { grid-template-columns: 1fr auto; padding: 1.05rem 1.1rem; }
  .site-header > span { display: none; }
  .section { min-height: auto; padding: 7rem 1.2rem 5rem; }
  .hero { min-height: 100svh; gap: 2rem; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.65rem); }
  .hero-copy > p { font-size: .98rem; }
  .life-arrangement { min-height: 400px; }
  .piece-object { width: 68%; }
  .piece-life { width: 54%; }
  .piece-creation { width: 53%; }
  .arrangement-note { top: 8%; left: 0; max-width: 13rem; font-size: .72rem; }
  .belief-paper { width: 100%; padding: 2rem 1.5rem; }
  .belief-paper h2 { font-size: 2.65rem; }
  .belief-paper p { font-size: 1.32rem; }
  .experience-door { min-height: 78svh; }
  .door-light { width: 110vw; }
  .door-copy h2 { font-size: 2.8rem; }
  .beyond-heading h2, .invitation-copy h2 { font-size: 3rem; }
  .beyond-field { min-height: auto; display: flex; flex-direction: column; gap: 1.5rem; }
  .beyond-field::before { inset: 0; }
  .beyond-path, .path-remember, .path-understand, .path-act { position: relative; inset: auto; width: 94%; transform: none; }
  .path-understand { align-self: flex-end; }
  .invitation { gap: 2.4rem; }
  .invitation-form, .local-note { padding: 1.6rem; }
  footer { flex-direction: column; padding: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
