/* ============================================
   Anita 水晶手串設計師 — Landing Page Styles
   ============================================ */

/* ---- Tokens ---- */
:root {
  /* 主色調 Primary */
  --misty-white: #F7F4EF;
  --milk-tea:    #EFE8DE;
  --oat:         #E5D9C7;
  --warm-brown:  #CBB49A;
  --wood-brown:  #9E866A;
  --deep-cocoa:  #6F5A45;
  --misty-gold:  #BFA98A;

  /* 輔助色 Secondary */
  --warm-apricot: #FDECE2;
  --rice-apricot: #EADFCF;
  --sand:         #D9CCB6;
  --mist-brown:   #B8A38C;
  --smoke-brown:  #A68F7A;
  --misty-mint:   #DDE5E1;
  --misty-grey:   #E7E1D9;

  /* 金屬色 Metals */
  --champagne-gold: #C9A876;
  --rose-gold:      #C99E86;
  --foggy-gold:     #B8A37C;

  /* 字體色 Text */
  --text-primary:   #3A2F26;
  --text-secondary: #6B5B4E;
  --text-tertiary:  #8D7C6A;
  --text-faint:     #B7AA9C;

  /* Surfaces */
  --bg-base:    #F7F4EF;
  --bg-soft:    #EFE8DE;
  --bg-card:    #FBF9F5;
  --border-soft:#E3DACD;

  /* Type */
  --font-serif-tc: 'Noto Serif TC', 'Songti TC', '宋體', serif;
  --font-display:  'Cormorant Garamond', 'Noto Serif TC', serif;

  /* Spacing */
  --section-pad-desktop: 120px;
  --section-pad-mobile:  72px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Shadow */
  --shadow-soft: 0 8px 30px -12px rgba(110, 90, 69, 0.12);
  --shadow-card: 0 14px 40px -18px rgba(110, 90, 69, 0.18);

  /* Motion */
  --ease-gentle: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-slow: 1.1s;
  --dur-mid:  0.8s;
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-serif-tc);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.85;
  font-weight: 300;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--warm-brown); color: var(--misty-white); }

/* ---- Layout ---- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.section { padding-top: var(--section-pad-desktop); padding-bottom: var(--section-pad-desktop); }

@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .section { padding-top: var(--section-pad-mobile); padding-bottom: var(--section-pad-mobile); }
}

/* ---- Section index label ---- */
.section-index { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.section-index .num {
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 400; color: var(--wood-brown); line-height: 1;
}
.section-index .star { color: var(--champagne-gold); font-size: 1rem; }
.section-title-tc { font-size: 1.5rem; font-weight: 500; letter-spacing: 0.14em; color: var(--text-primary); }
.section-title-en {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.6rem; color: var(--warm-brown); letter-spacing: 0.04em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; font-size: 0.95rem; letter-spacing: 0.16em;
  border-radius: var(--radius-sm);
  transition: all 0.55s var(--ease-gentle);
  font-weight: 400;
}
.btn-primary { background: var(--wood-brown); color: var(--misty-white); }
.btn-primary:hover { background: var(--deep-cocoa); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--mist-brown); }
.btn-ghost:hover { background: rgba(203,180,154,0.18); transform: translateY(-2px); }

/* ---- Gentle Fade System ---- */
.reveal {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity var(--dur-slow) var(--ease-gentle),
              transform var(--dur-slow) var(--ease-gentle),
              filter var(--dur-slow) var(--ease-gentle);
  will-change: opacity, transform, filter;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

.reveal-stagger > * {
  opacity: 0; transform: translateY(20px); filter: blur(5px);
  transition: opacity var(--dur-mid) var(--ease-gentle),
              transform var(--dur-mid) var(--ease-gentle),
              filter var(--dur-mid) var(--ease-gentle);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.27s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.38s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.49s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.60s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.71s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.82s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ---- Lazy image ---- */
.lazy-wrap {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--radius-md); background: var(--milk-tea);
}
.lazy-wrap.is-loading {
  background: linear-gradient(100deg, var(--milk-tea) 30%, var(--misty-grey) 50%, var(--milk-tea) 70%);
  background-size: 220% 100%;
  animation: skel 2.4s var(--ease-gentle) infinite;
}
@keyframes skel { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

.lazy-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.95s var(--ease-gentle), transform 0.95s var(--ease-gentle);
}
.lazy-img.loaded { opacity: 1; transform: translateY(0); }

/* ---- Grain overlay ---- */
.grain-overlay {
  pointer-events: none; position: fixed; inset: 0; z-index: 9999;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================
   HEADER
   ========================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background 0.6s var(--ease-gentle),
              box-shadow 0.6s var(--ease-gentle),
              backdrop-filter 0.6s var(--ease-gentle);
}
.header.is-scrolled {
  background: rgba(247,244,239,0.88); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(227,218,205,0.9);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }

.logo { display: inline-flex; flex-direction: column; line-height: 1; user-select: none; }
.logo-mark {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 2.35rem; letter-spacing: 0.02em; color: var(--misty-white);
  transition: color 0.5s var(--ease-gentle);
}
.logo-sub {
  font-family: var(--font-serif-tc); font-weight: 300;
  font-size: 0.62rem; letter-spacing: 0.42em; margin-top: 6px; padding-left: 4px;
  color: rgba(247,244,239,0.78);
  transition: color 0.5s var(--ease-gentle);
}
.header.is-scrolled .logo-mark { color: var(--text-primary); }
.header.is-scrolled .logo-sub  { color: var(--text-tertiary); }

.nav-desktop { display: flex; align-items: center; gap: 38px; }
.nav-link {
  font-size: 0.95rem; letter-spacing: 0.14em; font-weight: 300;
  color: rgba(247,244,239,0.92); position: relative; padding: 4px 0;
  transition: color 0.5s var(--ease-gentle);
}
.header.is-scrolled .nav-link { color: var(--text-secondary); }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--champagne-gold);
  transition: width 0.55s var(--ease-gentle);
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
  padding: 11px 26px; font-size: 0.9rem;
  color: var(--misty-white); border-color: rgba(247,244,239,0.55);
}
.nav-cta:hover { background: rgba(247,244,239,0.16); }
.header.is-scrolled .nav-cta { color: var(--text-primary); border-color: var(--mist-brown); }
.header.is-scrolled .nav-cta:hover { background: rgba(203,180,154,0.18); }

.menu-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.bar { display: block; width: 26px; height: 1.6px; background: var(--misty-white); transition: all 0.5s var(--ease-gentle); }
.header.is-scrolled .bar { background: var(--text-primary); }
.menu-toggle.is-open .bar:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.menu-toggle.is-open .bar:nth-child(2) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--misty-white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease-gentle), visibility 0.6s var(--ease-gentle);
  z-index: 999;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.mobile-link { font-size: 1.4rem; letter-spacing: 0.2em; color: var(--text-primary); font-weight: 300; }
.mobile-cta { margin-top: 18px; }

/*@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .logo-mark { font-size: 1.95rem; }
  .logo-sub  { font-size: 0.56rem; letter-spacing: 0.34em; }
}*/

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  .header-inner {
    padding: 22px 24px;
  }

  .logo-mark {
    font-size: 1.95rem;
  }

  .logo-sub {
    font-size: 0.56rem;
    letter-spacing: 0.34em;
    padding-left: 2px;
  }
}

/* =========================================
   01 HERO
   ========================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  animation: heroFade 1.8s var(--ease-gentle) both;
}
.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes heroFade {
  from { opacity: 0; transform: scale(1.06); filter: blur(8px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(58,47,38,0.62) 0%, rgba(58,47,38,0.34) 38%, rgba(58,47,38,0.05) 70%, rgba(58,47,38,0) 100%),
    linear-gradient(to bottom, rgba(58,47,38,0.28) 0%, rgba(58,47,38,0) 30%, rgba(58,47,38,0) 70%, rgba(58,47,38,0.32) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; padding-top: 120px; }
.hero-left { max-width: 720px; }
.hero-index {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px;
  opacity: 0; animation: lineUp 1s var(--ease-gentle) 0.5s both;
}
.hero-index .num   { font-family: var(--font-display); font-size: 2rem; color: var(--misty-white); }
.hero-index .star  { color: var(--champagne-gold); font-size: 0.85rem; }
.hero-index .label { font-family: var(--font-display); letter-spacing: 0.4em; font-size: 0.82rem; color: rgba(247,244,239,0.7); }
.hero-title {
  color: var(--misty-white); font-weight: 400;
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  line-height: 1.58; letter-spacing: 0.03em;
  margin-bottom: 30px;
  text-shadow: 0 2px 24px rgba(58,47,38,0.3);
}
.line { display: block; opacity: 0; white-space: nowrap; }
.line-1 { animation: lineUp 1.1s var(--ease-gentle) 0.7s  both; }
.line-2 { animation: lineUp 1.1s var(--ease-gentle) 0.86s both; }
.line-3 { animation: lineUp 1.1s var(--ease-gentle) 1.02s both; }
.hero-sub {
  color: rgba(247,244,239,0.82);
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
  line-height: 2; font-weight: 300; margin-bottom: 42px;
  opacity: 0; animation: lineUp 1.1s var(--ease-gentle) 1.22s both;
}
.hero-cta {
  display: flex; gap: 18px;
  opacity: 0; animation: lineUp 1.1s var(--ease-gentle) 1.42s both;
}
.hero-ghost { color: var(--misty-white); border-color: rgba(247,244,239,0.5); }
.hero-ghost:hover { background: rgba(247,244,239,0.14); }
@keyframes lineUp {
  from { opacity: 0; transform: translateY(22px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: lineUp 1.2s var(--ease-gentle) 1.7s both;
}
.hero-scroll .lbl {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.34em;
  color: rgba(247,244,239,0.78);
}
.scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(247,244,239,0.7), rgba(247,244,239,0));
  animation: scrollPulse 2.6s var(--ease-gentle) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(0.6); opacity: 0.5; }
  50%     { transform: scaleY(1);   opacity: 1; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  .hero-img {
    object-position: center center;
  }

  .hero-scrim {
    background: linear-gradient(
      to bottom,
      rgba(58,47,38,0.43) 0%,
      rgba(58,47,38,0.28) 42%,
      rgba(58,47,38,0.52) 100%
    );
  }

  .hero-content {
    padding-top: 150px;
    padding-bottom: 128px;
  }

  .hero-left {
    max-width: 68%;
  }

  .hero-index {
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 20px;
  }

  .hero-index .num {
    font-size: 1.52rem;
  }

  .hero-index .star {
    font-size: 0.72rem;
  }

  .hero-index .label {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    line-height: 1.7;
  }

  .hero-title {
    font-size: clamp(1.24rem, 5vw, 1.62rem);
    line-height: 1.58;
    margin-bottom: 20px;
  }

  .line {
    white-space: normal;
  }

  .hero-sub {
    font-size: 0.78rem;
    line-height: 2.05;
    max-width: 100%;
    margin-bottom: 26px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.88rem;
  }

  .hero-scroll {
    left: 45%;
    right: auto;
    bottom: 24px;
    transform: translateX(-50%);
  }

  .hero-scroll .lbl {
    font-size: 0.66rem;
    letter-spacing: 0.28em;
  }

  .scroll-line {
    height: 38px;
  }
}

@media (max-width: 420px) {
  .hero-left {
    max-width: 66%;
  }

  .hero-index .num {
    font-size: 1.42rem;
  }

  .hero-index .label {
    font-size: 0.58rem;
    letter-spacing: 0.24em;
  }

  .hero-title {
    font-size: clamp(1.16rem, 5.4vw, 1.48rem);
  }

  .hero-sub {
    font-size: 0.74rem;
  }
}

/* =========================================
   02 PHILOSOPHY
   ========================================= */
.philosophy { background: var(--bg-base); }
.philo-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.philo-image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.philo-image img {
  width: 100%; aspect-ratio: 6 / 5; object-fit: cover;
  transition: transform 2s var(--ease-gentle);
}
.philo-image:hover img { transform: scale(1.04); }
.philo-image::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 75% 20%, rgba(255,244,222,0.32), transparent 60%);
  pointer-events: none;
}
.philo-text { padding-right: 12px; }
.philo-lead {
  margin-top: 34px;
  font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.85;
  color: var(--text-primary); font-weight: 400; letter-spacing: 0.04em;
}
.philo-body { margin-top: 26px; color: var(--text-secondary); font-size: 1.02rem; line-height: 2.1; }
.philo-points {
  margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
}
.philo-points li {
  position: relative; padding-left: 22px;
  font-size: 0.96rem; color: var(--text-tertiary); letter-spacing: 0.04em;
}
.philo-points li::before {
  content: '✦'; position: absolute; left: 0; top: 1px;
  color: var(--champagne-gold); font-size: 0.7rem;
}
.philo-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 40px; font-size: 1rem; letter-spacing: 0.08em;
  color: var(--wood-brown);
  padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: all 0.55s var(--ease-gentle);
}
.philo-link:hover { color: var(--deep-cocoa); border-color: var(--warm-brown); }
.philo-link .arrow { transition: transform 0.55s var(--ease-gentle); }
.philo-link:hover .arrow { transform: translateX(6px); }

@media (max-width: 900px) {
  .philo-grid { grid-template-columns: 1fr; gap: 44px; }
  .philo-text { padding-right: 0; }
  .philo-points { grid-template-columns: 1fr; }
}

/* =========================================
   03 PROCESS
   ========================================= */
.process { background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.process-head { margin-bottom: 64px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.process-step {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 20px 28px;
}
.step-icon {
  width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid var(--foggy-gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--foggy-gold); margin-bottom: 26px;
  background: rgba(251,249,245,0.5);
  transition: all 0.7s var(--ease-gentle);
}
.step-icon svg { width: 42px; height: 42px; }
.process-step:hover .step-icon {
  transform: scale(1.06); border-color: var(--champagne-gold); color: var(--champagne-gold);
  box-shadow: 0 10px 30px -14px rgba(201,168,118,0.5);
}
.step-title { font-size: 1.3rem; font-weight: 500; letter-spacing: 0.22em; color: var(--text-primary); margin-bottom: 10px; }
.step-desc  { font-size: 0.95rem; color: var(--text-tertiary); letter-spacing: 0.06em; }
.step-arrow { position: absolute; right: -10px; top: 38px; color: var(--warm-brown); font-size: 0.8rem; }

@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; gap: 12px; }
  .process-head { margin-bottom: 44px; }
  .process-step { padding: 18px; }
  .step-arrow { display: none; }
}

/* =========================================
   04 STORIES
   ========================================= */
.stories { background: var(--bg-base); }
.stories-top { display: grid; grid-template-columns: 220px 1fr; gap: 56px; }
.stories-head { position: sticky; top: 110px; align-self: start; }
.stories-lead { margin-top: 26px; font-size: 1.05rem; line-height: 2; color: var(--text-secondary); letter-spacing: 0.04em; }
.stories-allbtn {
  display: inline-block; margin-top: 28px; padding: 11px 24px;
  background: var(--wood-brown); color: var(--misty-white);
  border-radius: var(--radius-sm); font-size: 0.86rem; letter-spacing: 0.1em;
  transition: all 0.55s var(--ease-gentle);
}
.stories-allbtn:hover { background: var(--deep-cocoa); transform: translateY(-2px); }
.stories-main { min-width: 0; }
.stories-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
  padding: 7px 16px; font-size: 0.86rem; letter-spacing: 0.06em;
  color: var(--text-tertiary); border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.5s var(--ease-gentle);
}
.filter-tag:hover { color: var(--text-secondary); background: var(--milk-tea); }
.filter-tag.is-active { color: var(--deep-cocoa); background: var(--oat); border-color: var(--warm-brown); }
.view-toggle { display: flex; gap: 4px; }
.vt-btn {
  width: 34px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text-faint);
  transition: all 0.5s var(--ease-gentle);
}
.vt-btn svg { width: 17px; height: 17px; fill: currentColor; }
.vt-btn:hover { color: var(--text-tertiary); }
.vt-btn.is-active { color: var(--wood-brown); background: var(--milk-tea); }

/* Masonry via CSS columns — natural high/low stagger */
/*.masonry { column-gap: 18px; }
.masonry.cols-3 { column-count: 3; }
.masonry.cols-4 { column-count: 4; }*/

.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.masonry.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.masonry.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .masonry,
  .masonry.cols-3,
  .masonry.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .masonry,
  .masonry.cols-3,
  .masonry.cols-4 {
    grid-template-columns: 1fr;
  }
}

.work-media .lazy-wrap {
  aspect-ratio: 4 / 5;
}

.work-media .lazy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, center center);
}

.work-card {
  display: block; width: 100%; margin-bottom: 18px;
  break-inside: avoid; text-align: left;
  opacity: 0; transform: translateY(20px); filter: blur(5px);
  animation: cardIn 0.9s var(--ease-gentle) both;
}
@keyframes cardIn { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.work-media {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.work-media .lazy-wrap { transition: transform 1.1s var(--ease-gentle); }
.work-card:hover .work-media .lazy-wrap { transform: scale(1.045); }
.work-glow {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58,47,38,0.32), rgba(58,47,38,0) 55%);
  opacity: 0; transition: opacity 0.7s var(--ease-gentle);
  pointer-events: none;
}
.work-card:hover .work-glow { opacity: 1; }
.work-title {
  display: block; margin-top: 12px; font-size: 0.98rem; letter-spacing: 0.06em;
  color: var(--text-secondary); transition: color 0.5s var(--ease-gentle);
}
.work-card:hover .work-title { color: var(--deep-cocoa); }

.load-more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.load-more {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.92rem; letter-spacing: 0.08em; color: var(--text-tertiary);
  padding: 12px 26px; border-radius: 999px; border: 1px solid var(--border-soft);
  transition: all 0.55s var(--ease-gentle);
}
.load-more:hover { color: var(--wood-brown); border-color: var(--warm-brown); background: var(--bg-card); }
.lm-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--champagne-gold);
  animation: lmPulse 1.8s var(--ease-gentle) infinite;
}
@keyframes lmPulse {
  0%,100% { opacity: 0.3; transform: scale(0.8); }
  50%     { opacity: 1;   transform: scale(1.1); }
}
.all-loaded {
  text-align: center; margin-top: 40px;
  font-family: var(--font-display); font-style: italic;
  color: var(--text-faint); letter-spacing: 0.1em;
}

@media (max-width: 1100px) {
  .stories-top { grid-template-columns: 1fr; gap: 36px; }
  .stories-head { position: static; }
}
/*@media (max-width: 900px) {
  .masonry.cols-3, .masonry.cols-4 { column-count: 2; }
  .view-toggle { display: none; }
}
@media (max-width: 560px) {
  .masonry.cols-3, .masonry.cols-4 { column-count: 1; }
}*/

/* =========================================
   STORY MODAL
   ========================================= */
.modal-root {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.modal-root.is-open { display: flex; }
.modal-scrim {
  position: absolute; inset: 0; background: rgba(58,47,38,0.42);
  backdrop-filter: blur(2px); opacity: 0;
  transition: opacity 0.5s var(--ease-gentle), backdrop-filter 0.5s var(--ease-gentle);
}
.modal-root.is-active .modal-scrim { opacity: 1; backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; width: 100%; max-width: 940px; max-height: 86vh;
  background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(58,47,38,0.45);
  opacity: 0; transform: translateY(26px) scale(0.985); filter: blur(10px);
  transition: opacity 0.55s var(--ease-gentle),
              transform 0.55s var(--ease-gentle),
              filter 0.55s var(--ease-gentle);
}
.modal-root.is-active .modal-panel { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(247,244,239,0.86); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.5s var(--ease-gentle); backdrop-filter: blur(6px);
}
.modal-close:hover { background: var(--misty-white); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; max-height: 86vh; }
.modal-image { position: relative; background: var(--milk-tea); }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 48px 46px; overflow-y: auto; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.modal-tag {
  font-size: 0.74rem; letter-spacing: 0.12em; color: var(--wood-brown);
  background: var(--milk-tea); padding: 4px 12px; border-radius: 999px;
}
.modal-title {
  font-size: 1.7rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-primary); margin-bottom: 26px; line-height: 1.5;
}
.modal-section { margin-bottom: 24px; }
.modal-label {
  display: block; font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--champagne-gold); margin-bottom: 8px;
}
.modal-text { font-size: 0.98rem; line-height: 2.05; color: var(--text-secondary); font-weight: 300; }
.modal-crystals { display: flex; flex-wrap: wrap; gap: 4px; }
.crystal-chip { font-size: 0.95rem; color: var(--text-tertiary); letter-spacing: 0.04em; }
.crystal-sep  { margin: 0 8px; color: var(--text-faint); }
.modal-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 13px 28px;
  background: var(--wood-brown); color: var(--misty-white);
  border-radius: var(--radius-sm); font-size: 0.92rem; letter-spacing: 0.1em;
  transition: all 0.55s var(--ease-gentle);
}
.modal-cta:hover { background: var(--deep-cocoa); transform: translateY(-2px); }
.modal-cta .arrow { transition: transform 0.5s var(--ease-gentle); }
.modal-cta:hover .arrow { transform: translateX(5px); }

@media (max-width: 768px) {
  .modal-root { padding: 0; align-items: flex-end; }
  .modal-panel {
    max-width: 100%; max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(60px); filter: blur(8px);
  }
  .modal-root.is-active .modal-panel { transform: translateY(0); }
  .modal-grid { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal-image { height: 46vh; }
  .modal-body { padding: 34px 26px 44px; overflow-y: visible; }
  .modal-title { font-size: 1.45rem; }
}

/* =========================================
   05 CUSTOM PROCESS
   ========================================= */
.custom { background: var(--bg-soft); border-top: 1px solid var(--border-soft); }
.custom-head { margin-bottom: 60px; }
.custom-lead { margin-top: 18px; font-size: 1.05rem; color: var(--text-secondary); letter-spacing: 0.04em; }
.custom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.custom-card {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 34px 28px 36px;
  transition: all 0.7s var(--ease-gentle);
}
.custom-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--warm-brown);
}
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card-key {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 400;
  color: var(--warm-brown); line-height: 1;
}
.card-icon { width: 48px; height: 48px; color: var(--foggy-gold); }
.card-icon svg { width: 100%; height: 100%; }
.card-title { font-size: 1.12rem; font-weight: 500; letter-spacing: 0.08em; color: var(--text-primary); margin-bottom: 12px; }
.card-desc { font-size: 0.92rem; line-height: 1.95; color: var(--text-tertiary); font-weight: 300; }
.card-connector { position: absolute; right: -16px; top: 50px; color: var(--warm-brown); font-size: 0.78rem; z-index: 2; }
.custom-cta-wrap { display: flex; justify-content: center; margin-top: 56px; }

@media (max-width: 980px) {
  .custom-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .card-connector { display: none; }
}
@media (max-width: 560px) {
  .custom-grid { grid-template-columns: 1fr; }
  .custom-head { margin-bottom: 40px; }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  position: relative;
  padding-top: 96px; padding-bottom: 36px;
  overflow: hidden;
}
.footer-bg { position: absolute; inset: 0; z-index: 0; }
.footer-bg img { width: 100%; height: 100%; object-fit: cover; }
.footer-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(239,232,222,0.97) 0%, rgba(239,232,222,0.9) 55%, rgba(239,232,222,0.6) 100%);
}
.footer-inner { position: relative; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand .logo .logo-mark { color: var(--text-primary); }
.footer-brand .logo .logo-sub  { color: var(--text-tertiary); }
.footer-tagline {
  margin-top: 22px; font-size: 0.96rem; color: var(--text-tertiary);
  letter-spacing: 0.06em; max-width: 280px; line-height: 1.9;
}
.footer-col-title {
  display: block; font-size: 0.92rem; letter-spacing: 0.16em;
  color: var(--text-primary); font-weight: 500; margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-col a {
  font-size: 0.94rem; color: var(--text-secondary); letter-spacing: 0.05em;
  font-weight: 300; transition: color 0.5s var(--ease-gentle);
}
.footer-col a:hover { color: var(--wood-brown); }
.contact-link { display: inline-flex; align-items: center; gap: 11px; }
.contact-icon { width: 19px; height: 19px; color: var(--wood-brown); display: inline-flex; }
.contact-icon svg { width: 100%; height: 100%; }
.footer-base {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; flex-wrap: wrap; gap: 8px;
}
.footer-base p { font-size: 0.8rem; color: var(--text-faint); letter-spacing: 0.05em; }
.footer-base-en { font-family: var(--font-display); letter-spacing: 0.12em !important; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-scrim {
    background: linear-gradient(to bottom, rgba(239,232,222,0.97) 0%, rgba(239,232,222,0.92) 100%);
  }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}
