:root {
  --ink: #2f241d;
  --muted: #78675b;
  --paper: #f5ecdf;
  --cream: #fffaf2;
  --sand: #e6d6c5;
  --wood: #72482e;
  --copper: #a8663f;
  --line: rgba(114, 72, 46, 0.2);
  --shadow: 0 28px 80px rgba(47, 36, 29, 0.14);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 9%, rgba(168, 102, 63, 0.11), transparent 26rem),
    linear-gradient(180deg, var(--cream), var(--paper) 58%, var(--cream));
  font-size: 0.92rem;
  line-height: 1.6;
}

body.is-opening {
  overflow: hidden;
}

[data-en] {
  display: none;
}

html[lang="en"] [data-en] {
  display: inline;
}

html[lang="en"] [data-zh] {
  display: none;
}

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

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

.seal-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: #eadccc;
  perspective: 1400px;
  transition: opacity 780ms ease, transform 780ms ease;
}

.seal-screen.is-open {
  opacity: 0;
  transform: scale(1.018);
  pointer-events: none;
}

.seal-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(47, 36, 29, 0.16), rgba(245, 236, 223, 0.72)),
    url("assets/images/environment/lounge-wide.png") center / cover no-repeat;
  filter: saturate(0.86) contrast(0.94);
}

.seal-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 250, 242, 0.24), transparent 22rem),
    rgba(255, 250, 242, 0.54);
  backdrop-filter: blur(3px);
}

.envelope-wrap {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px, calc((100vh - 142px) * 1.72));
  text-align: center;
  transform-style: preserve-3d;
}

.seal-kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.envelope {
  position: relative;
  aspect-ratio: 1.72 / 1;
  border: 1px solid rgba(114, 72, 46, 0.22);
  border-radius: 5px;
  background:
    linear-gradient(145deg, #fffaf2, #eadcc9),
    repeating-linear-gradient(90deg, transparent, transparent 36px, rgba(114, 72, 46, 0.022) 37px);
  box-shadow:
    0 36px 110px rgba(47, 36, 29, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 900ms cubic-bezier(.2, .8, .2, 1);
}

.envelope::before,
.envelope::after,
.envelope-flap {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.envelope::before,
.envelope::after {
  z-index: 5;
}

.envelope-flap {
  z-index: 7;
  transform-origin: 50% 0%;
  backface-visibility: visible;
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  background:
    linear-gradient(180deg, #fffaf2, #e5d3bf);
  filter: drop-shadow(0 1px 0 rgba(114, 72, 46, 0.18));
  transition:
    transform 900ms cubic-bezier(.2, .78, .18, 1),
    filter 900ms ease;
}

.envelope::before {
  clip-path: polygon(0 100%, 0 31%, 50% 58%);
  background: linear-gradient(35deg, #eadbc8, #fff7ed);
  border-right: 1px solid rgba(114, 72, 46, 0.12);
}

.envelope::after {
  clip-path: polygon(100% 100%, 100% 31%, 50% 58%);
  background: linear-gradient(-35deg, #eadbc8, #fff7ed);
  border-left: 1px solid rgba(114, 72, 46, 0.12);
}

.envelope-pocket {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 58%;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.24), transparent 16%),
    linear-gradient(145deg, #eadbc8, #fff7ed 52%, #e7d5c2);
  clip-path: polygon(0 0, 50% 42%, 100% 0, 100% 100%, 0 100%);
  border-top: 1px solid rgba(114, 72, 46, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 -12px 28px rgba(47, 36, 29, 0.05);
}

.envelope-paper {
  position: absolute;
  inset: 17% 18% 16%;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 72, 46, 0.1);
  border-radius: 4px;
  background: #fffaf2;
  box-shadow: 0 12px 40px rgba(47, 36, 29, 0.06);
  transform-origin: 50% 100%;
  opacity: 0;
  transform: translateY(0) scale(0.94);
  transition:
    inset 1050ms cubic-bezier(.18, .82, .18, 1) 520ms,
    transform 1050ms cubic-bezier(.18, .82, .18, 1) 520ms,
    opacity 620ms ease 420ms,
    border-radius 1050ms ease 520ms;
}

.envelope-paper img {
  width: clamp(110px, 16vw, 156px);
}

.wax-button {
  position: absolute;
  left: 50%;
  top: 60%;
  z-index: 9;
  width: clamp(152px, 21vw, 190px);
  height: clamp(144px, 20vw, 180px);
  border: 0;
  border-radius: 50%;
  color: var(--cream);
  background: transparent url("assets/wax-seal-premium-brown.png") center / contain no-repeat;
  box-shadow: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  font: 500 1.08rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.18em;
  transition:
    transform 260ms ease,
    opacity 520ms ease,
    filter 260ms ease;
}

.wax-button span {
  position: relative;
  z-index: 1;
  display: none;
  max-width: none;
  margin: 0 auto;
  color: rgba(255, 250, 242, 0.94);
  text-shadow:
    0 1px 1px rgba(49, 28, 18, 0.38),
    0 0 10px rgba(255, 238, 218, 0.2);
}

.wax-button [data-en] {
  display: block;
}

.wax-button [data-zh] {
  display: none;
}

.wax-button:hover {
  transform: translate(-50%, -50%) scale(1.035) rotate(-1deg);
  filter: saturate(1.04) brightness(1.03);
}

.seal-screen.is-unsealing .seal-kicker {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.seal-screen.is-unsealing .wax-button {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.68) rotate(-8deg);
  pointer-events: none;
}

.seal-screen.is-unsealing .envelope {
  transform: translateY(12px) scale(1.025);
  overflow: visible;
}

.seal-screen.is-unfolding .envelope {
  overflow: visible;
}

.seal-screen.is-unsealing .envelope-flap {
  transform: rotateX(164deg) translateY(-3px);
  filter: drop-shadow(0 -18px 24px rgba(47, 36, 29, 0.12));
}

.seal-screen.is-unsealing .envelope-paper {
  inset: 10% 13% 14%;
  z-index: 3;
  border-radius: 8px;
  opacity: 1;
  transform: translateY(-3%) scale(1);
  box-shadow: 0 18px 56px rgba(47, 36, 29, 0.14);
}

.seal-screen.is-unfolding .envelope-paper {
  inset: -68% -20% -58%;
  z-index: 8;
  transform: translateY(-2%) scale(1.22);
  opacity: 1;
  box-shadow: 0 36px 110px rgba(47, 36, 29, 0.22);
}

.page-shell {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(.2, .82, .2, 1);
}

body.invitation-opened .page-shell {
  opacity: 1;
  transform: none;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 860ms ease,
    transform 860ms cubic-bezier(.2, .82, .2, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(18px);
}

.landing-header img {
  width: 156px;
  height: 84px;
  object-fit: contain;
  object-position: left center;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.lang-btn {
  min-width: 46px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.lang-btn.active {
  color: var(--cream);
  background: var(--wood);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 108px));
  display: flex;
  align-items: flex-end;
  padding: clamp(84px, 12vw, 150px) clamp(22px, 7vw, 104px) clamp(72px, 8vw, 118px);
  overflow: hidden;
  color: var(--cream);
  background: #6d5745 url("assets/images/team-visit-hero.jpg") center 42% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(47, 36, 29, 0.66), rgba(47, 36, 29, 0.2) 52%, rgba(47, 36, 29, 0.03)),
    linear-gradient(180deg, rgba(47, 36, 29, 0.08), rgba(47, 36, 29, 0.24));
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero .eyebrow {
  color: rgba(255, 250, 242, 0.84);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--wood);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.07;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 4.4vw, 4.5rem);
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(255, 250, 242, 0.9);
  font-size: clamp(0.98rem, 1.35vw, 1.15rem);
}

.note-section,
.experience-section,
.location-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(66px, 8vw, 110px) 0;
}

.section-intro {
  max-width: 790px;
  margin-bottom: clamp(30px, 4vw, 54px);
}

.section-intro h2,
.experience-copy h2,
.closing-section h2 {
  font-size: clamp(1.75rem, 3.15vw, 3rem);
}

.note-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(245, 236, 223, 0.76)),
    url("assets/images/environment/logo-plant.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.note-card {
  position: relative;
  min-height: 335px;
  padding: clamp(22px, 2.4vw, 30px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.56);
  backdrop-filter: blur(12px);
}

.note-mark {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--copper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.note-icon-frame {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 0 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 72, 46, 0.18);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.58);
  overflow: hidden;
}

.note-icon-frame img {
  position: absolute;
  left: 0;
  top: 0;
  width: 158px;
  height: 158px;
  max-width: none;
  object-fit: contain;
  filter: sepia(0.5) saturate(0.7) contrast(1.08) brightness(1.08);
  mix-blend-mode: multiply;
  opacity: 0.82;
}

.note-icon-frame .note-clock {
  transform: translate(-10px, -8px);
}

.note-icon-frame .note-face {
  transform: translate(-85px, -9px);
}

.note-icon-frame .note-lenses {
  transform: translate(-7px, -85px);
}

.note-icon-frame .note-social {
  transform: translate(-84px, -84px);
}

.note-icon-frame .note-whatsapp {
  position: static;
  width: 38px;
  height: 38px;
  max-width: 38px;
  opacity: 0.9;
  filter: none;
  mix-blend-mode: normal;
  transform: none;
}

.note-card h3 {
  font-size: clamp(1.08rem, 1.45vw, 1.46rem);
}

.note-card p,
.location-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.experience-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.experience-image {
  position: relative;
}

.experience-image::before {
  content: "";
  position: absolute;
  inset: 28px -18px -18px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.experience-image img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.expect-grid article {
  position: relative;
  min-height: 150px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.5);
}

.step-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.expect-grid img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 18px;
}

.expect-grid strong {
  display: block;
  color: var(--wood);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 1.55vw, 1.42rem);
  line-height: 1.14;
}

.expect-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.52;
}

.inline-link {
  color: var(--copper);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.location-section {
  border-top: 1px solid var(--line);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.location-card {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.8), rgba(245, 236, 223, 0.72)),
    url("assets/images/environment/plant-detail.png") center / cover no-repeat;
  box-shadow: 0 18px 46px rgba(47, 36, 29, 0.08);
}

.location-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.82), rgba(245, 236, 223, 0.74)),
    url("assets/images/environment/logo-plant.png") center / cover no-repeat;
}

.location-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.18rem;
  border: 1px solid var(--wood);
  border-radius: 999px;
  cursor: pointer;
  font: 800 0.86rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
}

.button.primary {
  color: var(--cream);
  background: var(--wood);
}

.button.secondary {
  color: var(--wood);
  background: rgba(255, 250, 242, 0.72);
}

.sound-toggle {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 12;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(114, 72, 46, 0.24);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 14px 38px rgba(47, 36, 29, 0.16);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.sound-toggle[hidden] {
  display: none;
}

.sound-icon {
  position: absolute;
  left: 15px;
  top: 15px;
  width: 13px;
  height: 18px;
  background: var(--wood);
  clip-path: polygon(0 32%, 38% 32%, 100% 0, 100% 100%, 38% 68%, 0 68%);
}

.sound-icon::before,
.sound-icon::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  border: 2px solid var(--wood);
  border-left: 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: translateY(-50%);
}

.sound-icon::before {
  width: 10px;
  height: 14px;
}

.sound-icon::after {
  width: 16px;
  height: 22px;
  opacity: 0.62;
}

.sound-toggle.is-muted .sound-icon::before,
.sound-toggle.is-muted .sound-icon::after {
  display: none;
}

.sound-toggle.is-muted::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 23px;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--wood);
  transform: rotate(-42deg);
}

.video-panel[hidden] {
  display: none;
}

.video-panel video {
  width: min(100%, 360px);
  max-height: 540px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  box-shadow: 0 18px 44px rgba(47, 36, 29, 0.16);
}

.closing-section {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: clamp(74px, 10vw, 132px) 22px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(245, 236, 223, 0.88), rgba(255, 250, 242, 0.9)),
    url("assets/images/environment/lounge-chair.png") center / cover no-repeat;
}

.closing-section > * {
  max-width: 780px;
}

.closing-section p:last-child {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.closing-message {
  margin: 30px 0 0;
  color: var(--wood);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.55vw, 1.36rem);
  line-height: 1.85;
}

@media (max-width: 1120px) {
  .note-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .note-list,
  .experience-section,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 0.88rem;
  }

  .landing-header {
    padding: 12px 16px;
  }

  .landing-header img {
    width: 112px;
    height: 62px;
  }

  .lang-btn {
    min-width: 40px;
    padding: 6px 8px;
    font-size: 0.84rem;
  }

  .seal-screen {
    padding: 16px;
  }

  .envelope-wrap {
    width: min(94vw, calc((100vh - 112px) * 1.72));
  }

  .wax-button {
    width: clamp(126px, 34vw, 156px);
    height: clamp(120px, 32vw, 148px);
  }

  .hero {
    min-height: 560px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 58px;
  }

  .hero h1,
  .section-intro h2,
  .experience-copy h2,
  .closing-section h2 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .note-section,
  .experience-section,
  .location-section {
    width: min(100% - 28px, 1180px);
    padding: 58px 0;
  }

  .note-card {
    min-height: auto;
    padding: 22px;
  }

  .note-mark {
    margin-bottom: 18px;
  }

  .note-icon-frame {
    margin-bottom: 22px;
  }

  .expect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .expect-grid article {
    min-height: 168px;
    padding: 18px 14px;
  }

  .expect-grid img {
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
  }

  .expect-grid strong {
    font-size: 1.02rem;
  }

  .expect-grid p {
    font-size: 0.78rem;
    line-height: 1.42;
    margin-top: 9px;
  }

  .location-actions {
    flex-direction: column;
  }

  .button,
  .video-panel video {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
