:root{
  --paper: #FFFFFF;
  --ink: #232220;
  --ink-soft: #55534d;
  --ink-faint: #a6a297;
  --navy: #000F41;
  --seal: #a8322d;
  --hairline: #ddd8cc;
  --header-h: 72px;
}

*{ box-sizing: border-box; }


body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Serif SC', 'Cormorant Garamond', serif;
  overflow-x: hidden;
  position: relative;
}

/* faint rice-paper grain */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.brush{ font-family: 'Ma Shan Zheng', cursive; }
.en{ font-family: 'Cormorant Garamond', serif; }

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

/* ---------- header ---------- */
header{
  position: relative;
  z-index: 3;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
}

.logo-group{
  display: flex;
  align-items: center;
  gap: .6rem;
}

.logo-icon{
  width: 34px;
  height: auto;
  flex-shrink: 0;
}

.logo{
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.9rem;
  letter-spacing: .05em;
  color: var(--navy);
}

nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem clamp(1rem, 3vw, 2.6rem);
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

nav a{ position: relative; padding-bottom: .2rem; white-space: nowrap; transition: color .3s ease; }
nav a:hover{ color: var(--seal); }

/* ---------- shared pill button ---------- */
.pill-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .3s ease, background .3s ease, color .3s ease;
}
.pill-btn:hover{ opacity: .82; }
.pill-btn img{ width: 16px; height: 16px; }

.pill-btn.outline{
  background: rgba(0, 15, 65, 0);
  color: var(--navy);
}
.pill-btn.outline:hover{
  background: var(--navy);
  color: var(--paper);
  opacity: 1;
}

/* ---------- hero / intro ---------- */
.hero{
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-bg{
  display: block;
  width: 100%;
  height: auto;
}

.hero-text{
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  max-width: 820px;
  text-align: right;
  padding: 3rem clamp(1.5rem, 6vw, 5rem) clamp(3rem, 8vh, 5rem);
}

.hero-poem{ margin: 0 0 2.6rem; }

.hero-poem .line{ display: block; line-height: 1.05; }

.hero-poem .brush{
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: var(--navy);
}

.hero-poem .sm{
  font-family: 'Noto Serif SC', serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  color: var(--navy);
}

.hero-title-img{
  display: block;
  width: clamp(300px, 38vw, 560px);
  max-width: 100%;
  height: auto;
  margin: 0 0 2rem auto;
}

.hero-cta{ box-shadow: 5px 7px 13px 0 rgba(0,0,0,.15); }

/* ---------- journey / video ---------- */
.journey{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-areas:
    "media heading"
    "media actions";
  align-items: start;
  gap: clamp(2rem, 6vw, 4rem);
  padding: clamp(8rem, 20vh, 13rem) clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline);
}

.journey-media{
  grid-area: media;
  padding-left: clamp(1rem, 6vw, 4rem);
}

.journey-video{
  aspect-ratio: 16 / 9;
  max-width: 600px;
  border-radius: 32px;
  background: var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(2rem, 5vh, 3rem);
  overflow: hidden;
}

.journey-video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-video .placeholder-label{
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--ink-faint);
  text-align: center;
  padding: 0 1rem;
}

.journey-stats{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4rem);
  max-width: 600px;
  width: 100%;
}

.stat{ display: flex; flex-direction: column; gap: .5rem; }

.stat-label{
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--navy);
}

.stat-value{
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--navy);
}

.journey-duckie{
  width: clamp(52px, 6vw, 72px);
  height: auto;
  margin-top: 1.2rem;
}

.journey-heading{
  grid-area: heading;
  text-align: right;
  padding-right: clamp(1rem, 6vw, 4rem);
}

.journey-heading h2{
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.35;
  color: var(--navy);
  margin: 0;
}

.journey-actions{
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-right: clamp(1rem, 6vw, 4rem);
}

/* ---------- products slider ---------- */
.products{
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline);
}

.slider{
  position: relative;
  min-height: clamp(360px, 42vw, 500px);
  background: #F9F6F0;
  overflow: hidden;
}

.slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
.slide.is-active{ opacity: 1; pointer-events: auto; }

.slide-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.slide-bg--dim{ opacity: .35; }

.slide-inner{
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.4rem;
  padding: 2rem clamp(1.5rem, 6vw, 5rem) 2rem calc(clamp(1.5rem, 6vw, 5rem) + clamp(1rem, 6vw, 4rem));
}

.slide h3{
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--navy);
  margin: 0;
  line-height: 1;
}

.slide p{
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--navy);
  margin: 0;
}

.slide-duck{
  position: absolute;
  z-index: 1;
  right: clamp(1rem, 6vw, 5rem);
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
}

.slide-duck--packaged{
  right: 0;
  height: 115%;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-radius: 24px;
}

.slider-dots{
  position: absolute;
  z-index: 3;
  bottom: clamp(1.2rem, 4vh, 2.4rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .7rem;
}

.dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .3s ease;
}
.dot.is-active{ background: var(--navy); }

.slider-arrow{
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: .85;
  transition: opacity .3s ease;
}
.slider-arrow:hover{ opacity: 1; }
.slider-arrow img{ width: 16px; height: 16px; }

.slider-arrow--prev{ left: clamp(1rem, 4vw, 2rem); }
.slider-arrow--prev img{ transform: rotate(180deg); }
.slider-arrow--next{ right: clamp(1rem, 4vw, 2rem); }

/* ---------- gallery ---------- */
.gallery{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 9vh, 6rem) 0;
  border-top: 1px solid var(--hairline);
}

.gallery-head{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(3rem, 8vh, 6rem);
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
}

.gallery-head h2{
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--navy);
  margin: 0;
  text-align: center;
}

.gallery-head .en{
  font-style: italic;
  color: var(--ink-faint);
  font-size: 1.1rem;
  letter-spacing: .05em;
}

.origin-cards{
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  scroll-padding: 0 clamp(1.5rem, 6vw, 5rem);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.origin-cards::-webkit-scrollbar{ display: none; }
.origin-cards.is-dragging{
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.origin-cards.is-dragging img{ pointer-events: none; }

.origin-cards-track{
  display: flex;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  width: max-content;
}

.origin-card{
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100vw - 2 * clamp(1.5rem, 6vw, 5rem) - clamp(1.6rem, 4vw, 2.6rem)) / 2);
  scroll-snap-align: start;
}

.origin-card .frame{
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 40px;
  overflow: hidden;
  background: var(--hairline);
  margin-bottom: 1rem;
}

.origin-card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.origin-card .card-caption{
  position: absolute;
  z-index: 2;
  left: 1.3rem;
  bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.origin-card .badge{
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font-family: 'Alkatra', serif;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.origin-card h3{
  margin: 0;
  color: var(--paper);
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.origin-card .en{
  display: block;
  font-style: italic;
  color: var(--ink-faint);
  font-size: .95rem;
}

/* ---------- footer ---------- */
footer{
  position: relative;
  z-index: 2;
  background: var(--navy);
  color: var(--paper);
  border-radius: 48px 48px 0 0;
  box-shadow: 0 -14px 35px rgba(0,0,0,.15);
  padding: clamp(3rem, 8vh, 5rem) clamp(1.5rem, 6vw, 5rem) 2.4rem;
}

.footer-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 10vh, 6rem);
}

.footer-address{ margin: 0; display: flex; flex-direction: column; gap: .5rem; }

.footer-address .label{
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.footer-address .value{
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(249, 246, 240, .6);
}

.footer-icons{ display: flex; gap: 1.1rem; }

.footer-icons a{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(249, 246, 240, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}
.footer-icons a:hover{ background: rgba(249, 246, 240, .18); }

.footer-icons img{ width: 24px; height: 24px; }

.footer-copy{
  margin: 0;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(249, 246, 240, .15);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: .08em;
  font-size: .85rem;
  color: rgba(249, 246, 240, .75);
}

@media (max-width: 640px){
  header{ justify-content: center; text-align: center; }
  nav{ width: 100%; font-size: .8rem; letter-spacing: .12em; }
}

@media (max-width: 480px){
  nav{ flex-direction: column; align-items: center; gap: .6rem; }
}

@media (max-width: 860px){
  .hero{ min-height: 70vh; }
  .hero-bg{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-text{
    top: 0;
    left: 50%;
    right: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateX(-50%);
    text-align: center;
    max-width: 92%;
    padding: 3rem clamp(1.5rem, 6vw, 5rem);
  }
  .hero-title-img{ margin: auto auto 0; width: clamp(200px, 55vw, 340px); }

  .journey{
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "media"
      "actions";
  }
  .journey-media{ padding-left: 0; }
  .journey-heading{ text-align: center; padding-right: 0; }
  .journey-actions{ align-items: center; text-align: center; padding-right: 0; }
  .journey-video{ max-width: 100%; }
  .journey-duckie{ width: clamp(38px, 10vw, 52px); }
  .journey-stats{ justify-content: center; }

  .slide-inner{ text-align: center; align-items: center; margin: 0 auto; padding-left: clamp(1.5rem, 6vw, 5rem); }
  .slide-duck{
    opacity: 1;
    height: 34%;
    right: .8rem;
    bottom: .8rem;
    top: auto;
    transform: none;
  }
  .slide-duck--packaged{
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    object-fit: cover;
    border-radius: 0;
    opacity: .35;
  }

  .origin-cards-track{ gap: 1rem; }
  .origin-card{ flex-basis: calc(50vw - 1.5rem); }

  .footer-top{ flex-direction: column; align-items: center; text-align: center; }
}
